Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

White page with new version
Goto page 1, 2, 3  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
adn
Smarty Regular


Joined: 31 May 2011
Posts: 91

PostPosted: Mon Oct 14, 2013 7:04 pm    Post subject: White page with new version Reply with quote

Hi all,

I tried the new version 3.1.15 and I get a white page Sad

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
View user's profile Send private message Visit poster's website
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Mon Oct 14, 2013 8:00 pm    Post subject: Reply with quote

check your php error log?
Back to top
View user's profile Send private message Visit poster's website
adn
Smarty Regular


Joined: 31 May 2011
Posts: 91

PostPosted: Tue Oct 15, 2013 4:52 pm    Post subject: Reply with quote

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 Sad

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
View user's profile Send private message Visit poster's website
adn
Smarty Regular


Joined: 31 May 2011
Posts: 91

PostPosted: Tue Oct 15, 2013 5:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
adn
Smarty Regular


Joined: 31 May 2011
Posts: 91

PostPosted: Tue Oct 15, 2013 5:52 pm    Post subject: Reply with quote

I did another test by emptying all the caches (compiled tpl and cache) , same result Sad

I think there is a problem with this new version
_________________
http://www.letsGarden.info
Back to top
View user's profile Send private message Visit poster's website
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Wed Oct 16, 2013 7:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Wed Oct 16, 2013 9:32 pm    Post subject: Reply with quote

Anytime you upgrade you should empty compiled and cached data. Anything could change.
Back to top
View user's profile Send private message Visit poster's website
adn
Smarty Regular


Joined: 31 May 2011
Posts: 91

PostPosted: Thu Oct 17, 2013 7:51 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Thu Oct 17, 2013 8:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Fri Oct 18, 2013 2:15 pm    Post subject: Reply with quote

Are you upgrading Smarty 2 to Smarty 3 by chance?

You can also test everything, see what you get:

$smarty->testInstall();
Back to top
View user's profile Send private message Visit poster's website
adn
Smarty Regular


Joined: 31 May 2011
Posts: 91

PostPosted: Sat Oct 19, 2013 11:22 am    Post subject: Reply with quote

@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
View user's profile Send private message Visit poster's website
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Sat Oct 19, 2013 12:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
adn
Smarty Regular


Joined: 31 May 2011
Posts: 91

PostPosted: Sat Oct 19, 2013 8:36 pm    Post subject: Reply with quote

Yes I understood but the problem is that this test put my website completely out! All pages become white, a nightmare Sad

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
View user's profile Send private message Visit poster's website
adn
Smarty Regular


Joined: 31 May 2011
Posts: 91

PostPosted: Wed Oct 23, 2013 6:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Wed Oct 23, 2013 6:38 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP