imokweb Posted November 19, 2012 Share Posted November 19, 2012 (edited) Hy there! My 1.5.2 PS shows blank page when the cache is enabled. By hitting refresh it displays the correct content, but it does this with every single page... i have tried putting the cache to a 777 permission, but the problem persists. Thank you for your help! This is the page: http://winteroutlet.ro/ PS: i took out the cache for the moment, because the site is live, and can not let it run like this. Edited November 19, 2012 by imokweb (see edit history) Link to comment Share on other sites More sharing options...
shacker Posted November 24, 2012 Share Posted November 24, 2012 try t oclear all cache before enable it. use this free tool http://catalogo-onlinersi.net/en/back-office-prestashop-modules/93-clear-smarty-prestashop-module.html Link to comment Share on other sites More sharing options...
imokweb Posted December 3, 2012 Author Share Posted December 3, 2012 Thanks, it did not solve the issue. I ran it before and after enabling the cache, no change. Link to comment Share on other sites More sharing options...
Mr S Posted December 3, 2012 Share Posted December 3, 2012 edit your /config/defines.inc.php than enable caching see what error messages you get than reset back the defines.inc.php and disable caching because its a live shop @ini_set('display_errors', 'on'); define('_PS_DEBUG_SQL_', true); /* Compatibility warning */ define('_PS_DISPLAY_COMPATIBILITY_WARNING_', true); Link to comment Share on other sites More sharing options...
imokweb Posted March 1, 2013 Author Share Posted March 1, 2013 Sorry for the late answer, I decided eventually to disable the cache. By editing the /config/defines.inc.php file I got this error: Fatal error: Function name must be a string in /home/hongam47/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281 there I found: $_template->properties['unifunc']($_template); I tried to delete it, but now the menu disappeared from some pages. Also, the All Specials modules link (which should take me to prices-drop) takes me to the Home page. At the SEO and URL tab in the administration interface, Seo has all three options on, and in the prices drop url everything is set to prices-drop. The search gives this link: ?orderby=position&orderway=desc&search_query=a&submit_search=Search, and also takes me to the Home page. I mentioned these errors, because I'm thinking maybe there is a connection I don't see yet. With display errors on I did not get any error for the last two bugs. Thanks. Link to comment Share on other sites More sharing options...
Mr S Posted March 1, 2013 Share Posted March 1, 2013 Try this code at line 281 the three lines go right before the $_template-> it should give you more information about the error. if(!is_string($_template)) { die('This needs to be a string: ['.$_template.']'); } $_template->properties['unifunc']($_template); Link to comment Share on other sites More sharing options...
Raj_Malhotra Posted September 2, 2013 Share Posted September 2, 2013 Try this code at line 281 the three lines go right before the $_template-> it should give you more information about the error. if(!is_string($_template)) { die('This needs to be a string: ['.$_template.']'); } $_template->properties['unifunc']($_template); Iam faceing the same problem Error: Catchable fatal error: Object of class Smarty_Internal_Template could not be converted to string in /home/content/48/9309048/html/MyWebSites/IndiaPartyStore/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 283 Link to comment Share on other sites More sharing options...
shacker Posted September 5, 2013 Share Posted September 5, 2013 i think the ps 1.5.5 solve this issue Link to comment Share on other sites More sharing options...
ricardoferreira.net Posted November 4, 2013 Share Posted November 4, 2013 I know this isn't the best solution but since i can't update the version of prestashop because my theme, in modules\blockcategories\blockcategories.php, i comment lines with: Tools :: enableCache() and Tools :: restoreCacheSettings() , solved this problem. Hope it helps. Link to comment Share on other sites More sharing options...
shacker Posted November 4, 2013 Share Posted November 4, 2013 thanks for share Link to comment Share on other sites More sharing options...
Flaviese Posted November 13, 2013 Share Posted November 13, 2013 In my case it does not solve completely the problem, if I comment Tools :: enableCache() and Tools :: restoreCacheSettings() , because categories on the left column disappers! Is there a way to "Force" them? Link to comment Share on other sites More sharing options...
ricardoferreira.net Posted November 13, 2013 Share Posted November 13, 2013 In my case it does not solve completely the problem, if I comment Tools :: enableCache() and Tools :: restoreCacheSettings() , because categories on the left column disappers! Is there a way to "Force" them? Maybe you have a diferent module for displaying the categories on the left?! Link to comment Share on other sites More sharing options...
Flaviese Posted November 13, 2013 Share Posted November 13, 2013 I don't know, also the search module disappeared. I have solved turning off smarty cache via phpmyadmin ( http://www.prestashop.com/forums/topic/259651-solved-i-am-unable-to-turn-off-smarty-cache/ ) Here is the web site http://degiorgistore.com Link to comment Share on other sites More sharing options...
Flaviese Posted November 13, 2013 Share Posted November 13, 2013 ..and there was also another issue linked with the commenting action of that row. All the link to pages like index.php?id=XXX where no more accepted. You should force them in the rewritten mode. Link to comment Share on other sites More sharing options...
Recommended Posts