mosher27 Posted January 30, 2013 Share Posted January 30, 2013 When I click on anyone of our products it displays a white screen. If I then refresh the page, it loads fine and everytime I click on it again during that session it will continue to load fine. I have enabled error reporting but no errors are being thrown. Anyone else experience this? www.m2scientifics.com Link to comment Share on other sites More sharing options...
Guest Posted January 30, 2013 Share Posted January 30, 2013 I had a similar problem, but in the back office. It turned out to be a problem caused by a module . Have you recently upgraded or installed any modules? I uninstalled modules one at a time until i found the culprit. I then deleted the offending module Cleared caches, re-installed the module and all is well again. Link to comment Share on other sites More sharing options...
mosher27 Posted January 30, 2013 Author Share Posted January 30, 2013 We have over 126 modules, is there a good way to find errors another way? Link to comment Share on other sites More sharing options...
Guest Posted January 30, 2013 Share Posted January 30, 2013 Lots, of modules yes. But have any just been upgraded or installed or have you just upgraded the shop?. Start with those. Link to comment Share on other sites More sharing options...
mosher27 Posted January 30, 2013 Author Share Posted January 30, 2013 We went through and uninstalled all that we weren't using as well as the recent ones that we put in. I cleared the cache and we are still having the problem. Firebug shows "NetworkError: 500 Internal Server Error - http://www.m2scientifics.com/products/genericproductpage" Then when we reload the page, the error goes away and everything is fine. Link to comment Share on other sites More sharing options...
El Patron Posted January 31, 2013 Share Posted January 31, 2013 what version of prestashop? always start with that please...now I have to give two examples or wander off and not answer... turn on errors, in 1.5.3 (config/defines.inc.php make it look like this define('_PS_MODE_DEV_', true); if (_PS_MODE_DEV_) { @ini_set('display_errors', 'on'); define('_PS_DEBUG_SQL_', true); /* Compatibility warning */ define('_PS_DISPLAY_COMPATIBILITY_WARNING_', true); } pre 1.5.3 config/config.inc.php @ini_set('display_errors', 'on'); define('_PS_DEBUG_SQL_', true); then again you could have just looked at your hosting error log Link to comment Share on other sites More sharing options...
mosher27 Posted February 1, 2013 Author Share Posted February 1, 2013 Its version 1.5.3. Like I said I enabled the error reporting already and nothing shows. This is what I am seeing in the Apache Logs and Error Logs Error Log [Wed Jan 30 17:28:58 2013] [warn] RSA server certificate CommonName (CN) `m2scientifics.com' does NOT match server name!? Apache Log 68.188.147.13 - - [30/Jan/2013:01:24:22 -0700] "GET m2scientifics.com/admin815/ajaxfilemanager/ajaxfilemanager.php HTTP/1.1" 200 6914 "http://m2scientifics.com/admin815/index.php?controller=AdminProducts&id_category=2&id_product=943&updateproduct&token=2c52bf603113474fba46d016cef7d09e" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0" 0 "x-httpd-php5-3" "/var/chroot/home/content/40/10262940/html/admin815/ajaxfilemanager/ajaxfilemanager.php" 3739880 Now this is just a random error that I pulled from the file, but almost every single one is along the same lines, but I have no idea what they mean. I think it may have something to do with the .htaccess file, but Im not sure. Link to comment Share on other sites More sharing options...
mosher27 Posted February 1, 2013 Author Share Posted February 1, 2013 (edited) Finally got Prestashop to throw an error. Warning: Function addCSS() is deprecated in /home/content/40/10262940/html/modules/footercustom/footercustom.php on line 1203 in /home/content/40/10262940/html/classes/Tools.php on line 1777 Fatal error: Function name must be a string in /home/content/40/10262940/html/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281 And this is line 281 $_template->properties['unifunc']($_template); Edited February 1, 2013 by mosher27 (see edit history) Link to comment Share on other sites More sharing options...
mosher27 Posted February 1, 2013 Author Share Posted February 1, 2013 UPDATE I found that it has to do with the force compile. It was set to never recompile with cache on. If i set it to Recompile templates if the files have been updated, the error goes away. 1 Link to comment Share on other sites More sharing options...
hsrcoughlan Posted June 5, 2013 Share Posted June 5, 2013 Hi, I found that if you turn of the 'Smarty' Cache it sorts out the problem. Henry Link to comment Share on other sites More sharing options...
vekia Posted June 5, 2013 Share Posted June 5, 2013 Hi, I found that if you turn of the 'Smarty' Cache it sorts out the problem. Henry but when you turn it on back, the problem still occur? Maybe the problem is with old smarty cache files, and after "recompilation" eveything will work fine, can you check , please? Link to comment Share on other sites More sharing options...
asdqwerty Posted September 23, 2013 Share Posted September 23, 2013 I have this same problem and I am getting these errors: Notice: Undefined index: unifunc in /dir/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281Fatal error: Function name must be a string in /dir/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281 I have "Recompile templates if the files have been updated " setting turned on. When I've reloaded the page once I don't need to again afterwards, I'm assuming thats because it gets cached. It is still a problem I want to go away tho. I'm using Prestashop 1.5.5.0 Link to comment Share on other sites More sharing options...
asdqwerty Posted September 24, 2013 Share Posted September 24, 2013 Bump Link to comment Share on other sites More sharing options...
hsrcoughlan Posted September 24, 2013 Share Posted September 24, 2013 Honestly, turn of the smarty cache, it really docent make that much of a difference or sign up for cloud flare or something ! but make sure that smarty cache is off! Link to comment Share on other sites More sharing options...
TCJET Posted February 11, 2014 Share Posted February 11, 2014 UPDATE I found that it has to do with the force compile. It was set to never recompile with cache on. If i set it to Recompile templates if the files have been updated, the error goes away. This makes it feel like the problem goes away, but every time you load a page you've never visited before, you'll get a blank page the first time (because it's generating the cache file). Hi, I found that if you turn of the 'Smarty' Cache it sorts out the problem. Henry Yes, this does fix the problem, but your performance will suffer greatly (at least it does for our ~2k product store). but when you turn it on back, the problem still occur? Maybe the problem is with old smarty cache files, and after "recompilation" eveything will work fine, can you check , please? No, this doesn't solve any problems, because the issue only occurs when compiling the cache files. I'm running PS 1.5.3.1 and I was having the issue described above. After searching for quite a while, 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 solution. 1 Link to comment Share on other sites More sharing options...
laziali Posted August 12, 2014 Share Posted August 12, 2014 (edited) hello, i get the same error report. it really is a problem with the force complie and for me it all started when i hooked a module in header.tpl using {hook h='hookname'}...if i delete that from the tpl file it all goes back to normal. however i need that module so i will have to find a solution about this, or try to hook it somehow else. Edited: yes it turns out it really was a hook problem. The above solution from TCJET worked at once for me.Thanks1 Edited August 12, 2014 by laziali (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now