TheBrooklynWay Posted July 3, 2013 Share Posted July 3, 2013 (edited) 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 July 3, 2013 by TheBrooklynWay (see edit history) Link to comment Share on other sites More sharing options...
Dh42 Posted July 3, 2013 Share Posted July 3, 2013 Can you turn on error reporting in Prestashop and see what it out puts? Link to comment Share on other sites More sharing options...
TheBrooklynWay Posted July 3, 2013 Author Share Posted July 3, 2013 How do I do that? I'm using prestashop 1.5.4.1 Link to comment Share on other sites More sharing options...
Dh42 Posted July 3, 2013 Share Posted July 3, 2013 Have a look at this, it should explain http://blog.dh42.com/prestashop-error-reporting/ Link to comment Share on other sites More sharing options...
TheBrooklynWay Posted July 3, 2013 Author Share Posted July 3, 2013 Thanks here's the error: Fatal error: Function name must be a string in /home/divabell/public_html/fitnessammoshop/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281 Link to comment Share on other sites More sharing options...
TheBrooklynWay Posted July 3, 2013 Author Share Posted July 3, 2013 btw here's what's on line 281 in that file: $_template->properties['unifunc']($_template); Link to comment Share on other sites More sharing options...
Dh42 Posted July 3, 2013 Share Posted July 3, 2013 Are you running memcache on your site? Is it enabled under performance? Link to comment Share on other sites More sharing options...
Dh42 Posted July 3, 2013 Share Posted July 3, 2013 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 More sharing options...
TheBrooklynWay Posted July 3, 2013 Author Share Posted July 3, 2013 That line isn't in the file Also I'm not using memcache as it's not installed on my server Link to comment Share on other sites More sharing options...
TheBrooklynWay Posted July 4, 2013 Author Share Posted July 4, 2013 bump Link to comment Share on other sites More sharing options...
TheBrooklynWay Posted July 4, 2013 Author Share Posted July 4, 2013 Anyone have any ideas? Really love this platform but we have to abandon this platform if this can't be fixed which is a shame b/c this platform has a lot going for it. Link to comment Share on other sites More sharing options...
xgaldes Posted July 25, 2013 Share Posted July 25, 2013 did you find a solution i get same problem ? Link to comment Share on other sites More sharing options...
TCJET Posted February 11, 2014 Share Posted February 11, 2014 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 blankCause: Caused by inserting a new product or even modify an existing product in BORemedies: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 More sharing options...
eduard02 Posted March 25, 2015 Share Posted March 25, 2015 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 More sharing options...
Recommended Posts