Jump to content

Some Tabs Were Not Loaded Correctly


Recommended Posts

Hi there,

 

I'm running Prestashop 1.5.1.0. When I try to add a product and choose save and stay on page after entering a price, the page continually tries to load. If I navigate away from the page and then try to add a new product again, I receive the "Some tabs was not loaded correctly, would you like to reload them?" error. If I press okay it never seems to go away (I'm using Chrome). 

 

I've done some searching on this topic but no one's resolution seems to be working for me. I've turned on force compilation and disabled the cache. I've manually cleared out the cache. I don't have access to my httpd.conf due to hosting on Godaddy. I've turned on and off showing errors in the config.inc.php. I've turned on and off Developer mode in defines.inc.php. Neither of which displayed anything that I could see.

 

If anyone could provide any further advice on how to fix this issue I'd greatly appreciate it as I'm not really able to add products at this point. Thank you everyone! 

Link to comment
Share on other sites

Turn on error reporting, if I recall correctly for 1.5.1 you must go to config.inc.php and set display_errors to on, and PS_DEBUG_SQL to true.

 

Then, open the debug console (f12 on CHrome) and click on the network tab. Access the product page and wait till the error appears. Then, in the network tab, scroll down till you see a bunch of ajax calls like adminproducts.... There should be a red one, click on it and see it's response, paste it here if possible

Link to comment
Share on other sites

Thank you for your help on this matter!

 

I turned on display_errors and set PS_DEBUG_SQL to true and, just as you said, I found several red ajax calls. All of them had a status of net::ERR_EMPTY_RESPONSE and, to no surprise, do not have a response for me to show you. Do you have any advice on where I should go from here? 

Link to comment
Share on other sites

Of course! The red urls are...

 

index.php?controller=AdminProducts&token=d1ff44dbcc779cc1402ea5c1b5d55a0a&id_product=305

&action=Quantities&updateproduct&ajax=1

 

They continue in the same manner with just the action changing for each tab. Is there any more information I could provide that might help?

Edited by pears224 (see edit history)
Link to comment
Share on other sites

So  weird. I'm quite clueless at the moment. Are you using friendly urls? The adminproducts controller is simply failing on everything once called with the ajax parameter

 

can you try accessing the url directly and see what happens? Of course add the index.php... part to the base url of the back office

Link to comment
Share on other sites

I am not using friendly urls but I can turn it on if you think it will effect something?

 

I did access the url directly but it's just blank. I checked it on safari just to make sure that I wasn't going insane or doing something wrong and it populates as expected prior to the errors. I did notice something kind of weird though. A while after getting the popup of tabs not loading correctly, it eventually goes back to "normal" in the aspect that I can enter one product without getting the popup. During this time the red url tells me this instead:

 

2 errors 

  1. Object cannot be loaded (not found)
  2. Object cannot be loaded (not found)

I'm not sure if this helps at all but I'm trying to give you guys as much info as I can!!

Link to comment
Share on other sites

I am not using any overrides either. It's odd because the templates are printed out perfectly before I try to add a product. It didn't use to do this either, we just noticed it starting last week so I'm not sure what changed either to cause this - is it possible that it's something odd in the database? I don't think (although it is possible!) my client would make any changes to the files directly.

Link to comment
Share on other sites

in fact overrides are also a part of modules, so it's worth to double check overrides directory.

 

btw. if you see this popup it's worth to check it with console

you will see there potential errors.

 

ctrl+shift+j in chrome, try to reproduce error and then - you will see probably "red" errors in console log.

then click on error, and go to "response" tab, what you see there?

Link to comment
Share on other sites

Um....what should I be looking for in the overrides folder? 

 

I'm having a empty response error when looking at the console during the error. I went ahead and included a picture of everything that's in the console with the hope it might help.

 

post-782859-0-57963200-1397451150_thumb.png

 

Link to comment
Share on other sites

×
×
  • Create New...