Jump to content

Smarty Cache


Recommended Posts

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

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

  • Like 1
Link to comment
Share on other sites

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 281

Fatal 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

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 by freelivingsoul (see edit history)
Link to comment
Share on other sites

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

  • 2 weeks later...
  • 4 months later...

I dont see how  just commenting out line 281: is the correct way to resolve this issue

 

You are absolutely right, it isn't. :D

 

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

  • 2 months later...
×
×
  • Create New...