Jump to content

[BUG] Smarty Cache - Causing homepage to go blank after any update to products


Recommended Posts

Hello,

 

I'm having a problem whenever Smarty Cache is enabled.

 

Issue: Homepage goes blank

 

Cause: Caused by inserting a new product or even modify an existing product in BO

 

Remedies:

1) refresh the homepage for a 2nd time (can't expect customers to do this each time a new product is inserted or an existing product is modified)

2) disable smarty cache (this causes the site to be very slow)

 

 

Note: problem occurs in default theme and Best Choice theme by Egg Themes

 

The site is shop.fitnessammo.com

 

We really like Prestashop and are interested in lots of the addons but this is a serious issue for us and without a proper solution, we may have to abandon this platform.

 

Thanks

Jason

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

Try this, open the modules/blockcategories/blockcategories.php and comment or delete the line that says

Tools::enableCache(), Tools::restoreCacheSettings() and Tools::restoreCacheSettings()

Link to comment
Share on other sites

  • 3 weeks later...
  • 6 months later...

I was having the exact same problem as described above, running PS 1.5.3.1

 

Hello,

I'm having a problem whenever Smarty Cache is enabled.

Issue: Homepage goes blank

Cause: Caused by inserting a new product or even modify an existing product in BO

Remedies:
1) refresh the homepage for a 2nd time (can't expect customers to do this each time a new product is inserted or an existing product is modified)
2) disable smarty cache (this causes the site to be very slow)

...

 

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 the answer wasn't readily found out by me.

Link to comment
Share on other sites

  • 1 year later...

I was having the exact same problem as described above, running PS 1.5.3.1

 

 

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 the answer wasn't readily found out by me.

 

Hello,

 

I am using PS 1.5.6.2, and sometimes I have blank page on my site for 5/10 minutes, or I just have to refresh to recover. I asked my hosting about this and they told me that server is automatically blocks my site, because of errors.

 

I checked error log and every 3, 4 minutes I have this:

 

Any ideas what is this? Recommandation was to reinstall smarty cache, but I don't know how, just tried enable/disable from backoffice. Thank you.

[25-Mar-2015 01:04:35 Europe/Bucharest] PHP Notice:  Trying to get property of non-object in /home/site-name/public_html/cache/smarty/compile/cd/bd/c8/cdbdc8d7a9fbdced0d27c19924ad23cabd066e27.file.header.tpl.php on line 182
[25-Mar-2015 01:04:35 Europe/Bucharest] PHP Notice:  Undefined index: product in /home/site-name/public_html/cache/smarty/compile/cd/bd/c8/cdbdc8d7a9fbdced0d27c19924ad23cabd066e27.file.header.tpl.php on line 185
[25-Mar-2015 01:04:35 Europe/Bucharest] PHP Notice:  Trying to get property of non-object in /home/site-name/public_html/cache/smarty/compile/cd/bd/c8/cdbdc8d7a9fbdced0d27c19924ad23cabd066e27.file.header.tpl.php on line 185
[25-Mar-2015 01:04:35 Europe/Bucharest] PHP Notice:  Trying to get property of non-object in /home/site-name/public_html/cache/smarty/compile/cd/bd/c8/cdbdc8d7a9fbdced0d27c19924ad23cabd066e27.file.header.tpl.php on line 185
[25-Mar-2015 01:04:35 Europe/Bucharest] PHP Notice:  Undefined index: imageIds in /home/site-name/public_html/cache/smarty/compile/cd/bd/c8/cdbdc8d7a9fbdced0d27c19924ad23cabd066e27.file.header.tpl.php on line 185
[25-Mar-2015 01:04:35 Europe/Bucharest] PHP Notice:  Trying to get property of non-object in /home/site-namei/public_html/cache/smarty/compile/cd/bd/c8/cdbdc8d7a9fbdced0d27c19924ad23cabd066e27.file.header.tpl.php on line 185
[25-Mar-2015 01:04:35 Europe/Bucharest] PHP Notice:  Undefined index: product in /home/site-name/public_html/cache/smarty/compile/cd/bd/c8/cdbdc8d7a9fbdced0d27c19924ad23cabd066e27.file.header.tpl.php on line 187
[25-Mar-2015 01:04:35 Europe/Bucharest] PHP Notice:  Trying to get property of non-object in /home/site-name/public_html/cache/smarty/compile/cd/bd/c8/cdbdc8d7a9fbdced0d27c19924ad23cabd066e27.file.header.tpl.php on line 187
[25-Mar-2015 01:04:35 Europe/Bucharest] PHP Notice:  Trying to get property of non-object in /home/site-name/public_html/cache/smarty/compile/cd/bd/c8/cdbdc8d7a9fbdced0d27c19924ad23cabd066e27.file.header.tpl.php on line 187
[25-Mar-2015 01:04:35 Europe/Bucharest] PHP Notice:  Undefined index: product in /home/site-name/public_html/cache/smarty/compile/cd/bd/c8/cdbdc8d7a9fbdced0d27c19924ad23cabd066e27.file.header.tpl.php on line 188
[25-Mar-2015 01:04:35 Europe/Bucharest] PHP Notice:  Trying to get property of non-object in /home/site-name/public_html/cache/smarty/compile/cd/bd/c8/cdbdc8d7a9fbdced0d27c19924ad23cabd066e27.file.header.tpl.php on line 188
[25-Mar-2015 01:04:35 Europe/Bucharest] PHP Notice:  Trying to get property of non-object in /home/site-name/public_html/cache/smarty/compile/cd/bd/c8/cdbdc8d7a9fbdced0d27c19924ad23cabd066e27.file.header.tpl.php on line 188
[25-Mar-2015 01:04:35 Europe/Bucharest] PHP Notice:  Undefined index: product in /home/lsite-name/public_html/cache/smarty/compile/cd/bd/c8/cdbdc8d7a9fbdced0d27c19924ad23cabd066e27.file.header.tpl.php on line 189
[25-Mar-2015 01:04:35 Europe/Bucharest] PHP Notice:  Trying to get property of non-object in /home/site-name/public_html/cache/smarty/compile/cd/bd/c8/cdbdc8d7a9fbdced0d27c19924ad23cabd066e27.file.header.tpl.php on line 189
[25-Mar-2015 01:04:35 Europe/Bucharest] PHP Notice:  Trying to get property of non-object in /home/site-name/public_html/cache/smarty/compile/cd/bd/c8/cdbdc8d7a9fbdced0d27c19924ad23cabd066e27.file.header.tpl.php on line 189
[25-Mar-2015 01:04:35 Europe/Bucharest] PHP Notice:  Undefined index: product in /home/site-name/public_html/cache/smarty/compile/cd/bd/c8/cdbdc8d7a9fbdced0d27c19924ad23cabd066e27.file.header.tpl.php on line 190
[25-Mar-2015 01:04:35 Europe/Bucharest] PHP Notice:  Trying to get property of non-object in /home/site-name/public_html/cache/smarty/compile/cd/bd/c8/cdbdc8d7a9fbdced0d27c19924ad23cabd066e27.file.header.tpl.php on line 190
[25-Mar-2015 01:04:35 Europe/Bucharest] PHP Notice:  Trying to get property of non-object in /home/site-name/public_html/cache/smarty/compile/cd/bd/c8/cdbdc8d7a9fbdced0d27c19924ad23cabd066e27.file.header.tpl.php on line 190
Link to comment
Share on other sites

×
×
  • Create New...