Jump to content

White screen when clicking on page, refresh and it loads fine


Recommended Posts

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

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

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

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 by mosher27 (see edit history)
Link to comment
Share on other sites

  • 4 months later...

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

  • 3 months later...

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 281

Fatal 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

  • 4 months later...

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.

  • Like 1
Link to comment
Share on other sites

  • 6 months later...

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 by laziali (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...