Jump to content

A Server Error Occurred While Loading The Tabs


Recommended Posts

Hi,

 

I just started with prestashop and it was going well until I got an eror an my products (backend). When I add or modify a product I got this error:

 

A server error occurred while loading the tabs: some tabs could not be loaded.

 

When I open my console I see this:

 

jquery-1.11.0.min.js:4 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
http://localhost:1234/shop2/admin759n6dbwz/index.php?controller=AdminProduc…ction=Combinations&updateproduct&ajax=1&rand=1452874162449&_=1452874161697 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
(program):2 'webkitMovementX' is deprecated. Please use 'movementX' instead.
(program):2 'webkitMovementY' is deprecated. Please use 'movementY' instead.
 
Don't know what to do.
Link to comment
Share on other sites

Thank you.

 

I found what causes the problem:

 

 PHP Warning:  file_get_contents(C:\xampp\htdocs\shop2/cache/smarty/compile\99\2c\29\992c2990d94f2db9122a761b53fe2db89eb355a3.file.header.tpl.php): failed to open stream: No such file or directory in C:\xampp\htdocs\shop2\tools\smarty\sysplugins\smarty_internal_templatebase.php on line 156

 
PHP Fatal error:  Uncaught  --> Smarty: Invalid compiled template for 'header.tpl' <-- 
  thrown in C:\xampp\htdocs\shop2\tools\smarty\sysplugins\smarty_internal_templatebase.php on line 182
 
I think this has something to do with acces to the folders.
 
But I can't get it to work. When i go and look to my local xamp folder the read only is marked below. This is some windows feature but I can't get it off.
Maybe when I publisch the website it will work if all folders have the right permissions.
Link to comment
Share on other sites

  • 3 months later...

I had a similar problem when trying to add a product:

 

I would get the message "A server error occurred while loading the tabs: some tabs could not be loaded." and the PHP log file on the server would say "Smarty: Invalid compiled template for 'header.tpl'".

 

I figured it had something to do with the way template files are compiled for caching and therefore tried the following:

 

1. I went to Advanced Parameters > Performance

 

2. I set Template Compilation to "Recompile templates if the files have been updated". (Previously, it was set to "Force compilation".)

 

This worked for me (though I'm not sure why exactly).

 

I should perhaps also note that other settings I use are:

Smarty - Cache = YES

Smarty - Clear cache = Clear cache everytime something has been modified

Smart cache for CSS = NO

Use Cache = NO

 

Thomas

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...