Jump to content

Error 500 but only on the first time you visit a page


Recommended Posts

Hi,

 

I have noticed I get an error 500 message but only the first time I visit a page. If I click back and then click the item again it is fine.

 

I turned on the debug mode and got this error

Notice: Undefined index: unifunc in /home/sites/website.com/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281 Fatal error: Function name must be a string in /home/sites/website.com/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281

 

Anyone know what this can be?

 

Many thanks

Link to comment
Share on other sites

  • 4 months later...
  • 4 weeks later...
  • 7 months later...

This is not the ideal option as it REALLY slows down the performance:

DISABLE THE SMART CACHE !

 

Maybe my experience will help you. 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.

Edited by TCJET (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...