|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
barat Smarty n00b
Joined: 11 Jul 2012 Posts: 2
|
Posted: Wed Jul 11, 2012 9:59 am Post subject: Smarty 2.6.18, PHP 5.3.14 and Undefined variable |
|
|
Hello,
I have a problem with smarty.
I moved from one server which was PHP 5.2.17 to a new one where PHP is 5.3.14.
From now I have a problem - page is almost not displaying and in apache error log i have lot of:
Quote: | Undefined variable: XXX in /home/admin/domains/XXX/public_html/index.php on line XX |
The funniest thing is that those vars are set - everything works on the old server.
Do I need to downgrade PHP to 5.2, or there is some other sollution?
Can someone help me?
I'm not using smarty at all - all new projects are on Kohana 3 without using template systems. This one is Old, it was "in my company" before I came, and in future will be re-writen, but now I have to make it work again.
EDIT:
It seems to work now ... i just downgraded PHP to 5.2.17 on the server ... I hope that this will be premanent fix. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Jul 11, 2012 1:46 pm Post subject: |
|
|
Is the variable on that page undefined? On your newer PHP version you could have had your error reporting set differently to show all notices. |
|
Back to top |
|
barat Smarty n00b
Joined: 11 Jul 2012 Posts: 2
|
Posted: Thu Jul 12, 2012 1:34 pm Post subject: |
|
|
It's not that.
i changed error display method in php.ini to ignore Deprecated and Notice.
It's just something with passing with reference in PHP5.2 and PHP5.3 I think. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
|
Back to top |
|
|
|
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
|