webbit Posted August 30, 2013 Share Posted August 30, 2013 Hi. In the admin of Prestashop 1.5.3.1 there is a setting for Smarty Cache. It says Should be enabled except for debugging. If I enable this, as recommended I get Error 500 all the time. Any info on this would be much appreciated. Cheers Link to comment Share on other sites More sharing options...
vekia Posted August 31, 2013 Share Posted August 31, 2013 if you see internal server error 500 you should follow these steps: PrestaShop 1.5.3+ open config/defines.inc.php find this line define('_PS_MODE_DEV_', false); change to look like this: define('_PS_MODE_DEV_', true); then refresh your website. if you see additional error messages - please paste error code here 1 Link to comment Share on other sites More sharing options...
webbit Posted September 2, 2013 Author Share Posted September 2, 2013 Hi Vekia Please see following error after implementing your suggestion Notice: Undefined index: unifunc in /home3/ourtaste/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281Fatal error: Function name must be a string in /home3/ourtaste/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281 Link to comment Share on other sites More sharing options...
freelivingsoul Posted September 2, 2013 Share Posted September 2, 2013 (edited) After following your suggestion I get this error: Fatal error: Function name must be a string in /home/ifixmobi/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281 What seems to be happening is every time I navigate to a new product I'll get this error and then if I refresh the page I'll see what I'm supposed to, but then the next time I go to the link the same thing happens. There must be some simple fix for this? Does anybody know what it is? I wonder if it matters that I'm using an ip address for my store. So, my store url is http://184.154.224.19/~ifixmobi/ I continue to get the above error when navigating around the store. If I get the error and then refresh the page then the correct page is displayed. Obviously I can't give this to my customer like this. Can anyone help with this? Edited September 2, 2013 by freelivingsoul (see edit history) Link to comment Share on other sites More sharing options...
freelivingsoul Posted September 2, 2013 Share Posted September 2, 2013 I ended up just commenting out line 281: $_template->properties['unifunc']($_template); in tools/smarty/sysplugins/smarty_internal_templatebase.php Link to comment Share on other sites More sharing options...
vekia Posted September 5, 2013 Share Posted September 5, 2013 so you solved issue by: commenting out line 281: $_template->properties['unifunc']($_template); in tools/smarty/sysplugins/smarty_internal_templatebase.php ? are you sure that it doesn't affect other things? everything works as you expected? Link to comment Share on other sites More sharing options...
webbit Posted September 10, 2013 Author Share Posted September 10, 2013 I dont see how just commenting out line 281: is the correct way to resolve this issue Link to comment Share on other sites More sharing options...
vekia Posted September 10, 2013 Share Posted September 10, 2013 this change shouldn't affect other part of website, so you can comment it out (with doubled backslash) //$_template->properties['unifunc']($_template); Link to comment Share on other sites More sharing options...
webbit Posted September 17, 2013 Author Share Posted September 17, 2013 I commented out line 281 Then turned on smarty cache, as mentioned in my original post and my category menus disappeared Why is this happening Link to comment Share on other sites More sharing options...
vekia Posted September 17, 2013 Share Posted September 17, 2013 i checked this solution provided by @freelivingsoul and for me - menu works well, i think that you've got problem somewhere else Link to comment Share on other sites More sharing options...
Tekker Posted September 28, 2013 Share Posted September 28, 2013 (edited) idd, does let me disappear menu as well, with commenting out line 281. And I have the same 500 error when enabling cash Edited September 28, 2013 by Tekker (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted September 28, 2013 Share Posted September 28, 2013 idd, does let me disappear menu as well, with commenting out line 281. And I have the same 500 error when enabling cash and when you turn on error reporting, what error message you see? Link to comment Share on other sites More sharing options...
TCJET Posted February 11, 2014 Share Posted February 11, 2014 I dont see how just commenting out line 281: is the correct way to resolve this issue You are absolutely right, it isn't. I'm running PS 1.5.3.1 and I was having the issue described above. I found an issue tracker page related to this problem: http://forge.prestashop.com/browse/PSCFV-10040 After modifying my classes/modules/Module.php file to reflect the following commits, the site works perfectly well: https://github.com/PrestaShop/PrestaShop/commit/242556e176502ec61271a3945e1337917bc88f93 https://github.com/PrestaShop/PrestaShop/commit/ccb3179c1ae04b6bd41d571f0b1f950d6fd49f13 I hope that this was helpful to someone, as it took me a while to find this answer. Link to comment Share on other sites More sharing options...
pereca Posted April 11, 2014 Share Posted April 11, 2014 Dear all, Can somebody tell me if it is possible to change the location of the Smarty cache on the server to different folder, e.g. tmp? thanks in advance, Cheers, Link to comment Share on other sites More sharing options...
Recommended Posts