View previous topic :: View next topic |
Author |
Message |
adn Smarty Regular
Joined: 31 May 2011 Posts: 91
|
Posted: Mon Oct 14, 2013 7:04 pm Post subject: White page with new version |
|
|
Hi all,
I tried the new version 3.1.15 and I get a white page
If I desactivate the template cache and the cache, it works but not in the normal production mode. I have deleted all caches but nothing change.
Am I alone to get this problem? What could be the problem? How to debug as it works in debug mode? _________________ http://www.letsGarden.info |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Mon Oct 14, 2013 8:00 pm Post subject: |
|
|
check your php error log? |
|
Back to top |
|
adn Smarty Regular
Joined: 31 May 2011 Posts: 91
|
Posted: Tue Oct 15, 2013 4:52 pm Post subject: |
|
|
Hi mohrt,
With previous versions without emptying cache, new versions works, ascending compatibility was ok. But here not.
I did another quick test and nothing appears in my apache log
The problem is that I have no test environment. If I put the new lib in prod everything is down which is not really fine and for how long I don't know because no error appears.
An impacting modification is done in this version _________________ http://www.letsGarden.info |
|
Back to top |
|
adn Smarty Regular
Joined: 31 May 2011 Posts: 91
|
Posted: Tue Oct 15, 2013 5:37 pm Post subject: |
|
|
I created a hidden mode to test and same result, a white page and no error in apache log. I didn't empty the cache. Should the cache 3.1.14 be compatible with 3.1.15 code?
OK with
$smarty->setCaching(FALSE);
$smarty->setCompileCheck(TRUE);
$smarty->setDebugging(TRUE);
$smarty->setMergeCompiledIncludes(TRUE);
$smarty->setUseSubDirs(TRUE);
KO with
$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT);
$smarty->setCompileCheck(TRUE);
$smarty->setDebugging(TRUE);
$smarty->setMergeCompiledIncludes(TRUE);
$smarty->setUseSubDirs(TRUE); _________________ http://www.letsGarden.info |
|
Back to top |
|
adn Smarty Regular
Joined: 31 May 2011 Posts: 91
|
Posted: Tue Oct 15, 2013 5:52 pm Post subject: |
|
|
I did another test by emptying all the caches (compiled tpl and cache) , same result
I think there is a problem with this new version _________________ http://www.letsGarden.info |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Wed Oct 16, 2013 7:47 pm Post subject: |
|
|
Did you check also php error log or just apache log?
It's strange that you get a white page but no errors.
So it does work if you disable caching and does it also work with caching enabled and when debugging is true?
That was not clear from your previous posts. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Oct 16, 2013 9:32 pm Post subject: |
|
|
Anytime you upgrade you should empty compiled and cached data. Anything could change. |
|
Back to top |
|
adn Smarty Regular
Joined: 31 May 2011 Posts: 91
|
Posted: Thu Oct 17, 2013 7:51 pm Post subject: |
|
|
The php error log wasn't activated on my server, now done
My scenario
- tail -f of the php errors and httpd
- I re-upload smarty and re-transfert the libs folder.
- I empty the compiled templates
- I empty the cache
Still a white page
I added some traces and the problem appears somewhere in display() method.
If I put setCaching(FALSE) it is ok but ko with setCaching(Smarty::CACHING_LIFETIME_CURRENT)
The php error log file is absolutely empty, no error _________________ http://www.letsGarden.info |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Thu Oct 17, 2013 8:39 pm Post subject: |
|
|
Can you make please a test with caching enabled,
but $smarty->setMergeCompiledIncludes(FALSE);
You must manually delete the compiled templates after this change. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Fri Oct 18, 2013 2:15 pm Post subject: |
|
|
Are you upgrading Smarty 2 to Smarty 3 by chance?
You can also test everything, see what you get:
$smarty->testInstall(); |
|
Back to top |
|
adn Smarty Regular
Joined: 31 May 2011 Posts: 91
|
Posted: Sat Oct 19, 2013 11:22 am Post subject: |
|
|
@moshrt,
From 3.1.14 to 3.1.15 and the testInstall with the 3.1.15 code is ok
@U.Tews,
I did a quick test with setMergeCompiledIncludes(FALSE) but without emptying the cache because I am in production and I guess I cannot mix the 2 solutions. The result is the same
To do the test I add an option in my url and then I use the new lib instead of the old one for this page. _________________ http://www.letsGarden.info |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sat Oct 19, 2013 12:25 pm Post subject: |
|
|
For the test with setMergeCompiledIncludes(FALSE) it is necessary to delete existing compiled templates and cache files. Otherwise this test makes no sense |
|
Back to top |
|
adn Smarty Regular
Joined: 31 May 2011 Posts: 91
|
Posted: Sat Oct 19, 2013 8:36 pm Post subject: |
|
|
Yes I understood but the problem is that this test put my website completely out! All pages become white, a nightmare
OK I tested setMergeCompiledIncludes(FALSE) and empty the compiled tpl folder manually. Nothing change, still white pages and still ok when I don't use the cache. _________________ http://www.letsGarden.info |
|
Back to top |
|
adn Smarty Regular
Joined: 31 May 2011 Posts: 91
|
Posted: Wed Oct 23, 2013 6:15 pm Post subject: |
|
|
I just see that my page returns a 500 code in that case
What can generate this error code? _________________ http://www.letsGarden.info |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Oct 23, 2013 6:38 pm Post subject: |
|
|
adn wrote: | I just see that my page returns a 500 code in that case
What can generate this error code? |
check your apache error log |
|
Back to top |
|
|