Jump to content

"some Tabs Was Not Loaded Correctly" Error


Recommended Posts

Hi guys,

 

I have this error:

 

(timeout)
A server error occurred while loading the tabs: some tabs could not be loaded.
Please try again by refreshing the page.
If you are still encountering this problem, please check your server logs or contact your hosting provider for assistance.

 

What I did before getting this error:

1. My prestashop 1.6.1.1 is really slow when adding products, so I upgrade to 1.6.1.3

2. After upgrade, this error occur.

 

Here is some picture of the error and console:

http://imgur.com/a/Yw7HI

 

I also attach the same picture below.

post-601561-0-16788500-1449025316_thumb.jpg

post-601561-0-63677400-1449025313_thumb.jpg

post-601561-0-82937100-1449025307_thumb.jpg

 

I already ask my hosting provider about this but they said it is not hosting problem.

 

 

Can anyone please help figure it out?

 

 

Thanks a lot!

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

  • 2 months later...

I switched from Safari to Firefox and also my cart said changes had been made to the features.tpl. I reinstalled the TPL plus using firefox and have loaded 4 products without the error. So maybe the browser and the .tpl were the problems. Thank you for your time on this and fast response. I truly appreciated it. 

Link to comment
Share on other sites

It's mostly caused by bad hosting.

 

Frontend javascript makes an ajax call, but once the request times out, the page breaks. The timeout is caused by a slow server or browser.

 

Using an ajax call is necessary to verify the integrity of the data btw.

 

Hi mdekker,

 

I think you are right, it might be a timeout. I attached a screenshot of the console, the status is always canceled after 30s.

 

What do you think is the fix for this? Will increasing the max execution time helps? I tried to increase to 60 but I don't think it do anything.

 

Any help is appreciated.

 

Thanks!

 

post-601561-0-39168300-1457747784_thumb.png

Link to comment
Share on other sites

Hi mdekker,

 

I think you are right, it might be a timeout. I attached a screenshot of the console, the status is always canceled after 30s.

 

What do you think is the fix for this? Will increasing the max execution time helps? I tried to increase to 60 but I don't think it do anything.

 

Any help is appreciated.

 

Thanks!

 

attachicon.gifScreen Shot 2016-03-11 at 1.27.55 PM.png

60 seems low for prestashop. Try 128M

 

If that does not work go to your performance page and check the bottom . See if any files are missing. 

Link to comment
Share on other sites

@pinwheel

Great that it is solved.

 

Looks like we exactly have the two cases here, for you it's the browser and in the case of @syaphy it looks like the server.

 

Thanks for the clear timeline. You can clearly see that the client (browser) tries to send the XHR's, but it takes around 15 seconds (grey area), before the server itself accepts the connection. Seen the other amount of outstanding connections (a browser allows around 6 max for HTTP/1.1), it makes sense that some of those connections do timeout.

 

In fact, your browser sends more requests than the server can handle and I'm a bit worried about the performance. It is very low.

Here's my server:

attachicon.gifxhrs.png

 

You can see that the ajax calls are very late btw, because the page is just slow in general, but clearly the server is much faster than the browser itself and this is the situation you would like to reach. They are all under 100ms, but my server is running state-of-the-art software (PHP 7.0.4), I'm on fiber internet and the server is less than a kilometer from here, so normally it would be around 200-500ms, I think. And that is the performance you should aim for.

 

The slow loading of the product page in the browser itself is the top priority for PrestaShop 1.7 btw, so if it were your browser, it would be solved by upgrading to PS 1.7 in a few months.

 

Here you will have to crank up the server's performance. Increasing the max_execution_time will probably not help, because it only allows PHP to take longer before responding and the server is already lagging behind.

 

I'd suggest to have a talk with your hosting provider to see if they can assign more resources, upgrade your PHP (7 if PS 1.6.1.4 or higher), move your site to another server or maybe it is necessary to upgrade your plan. 

 

Hi mdekker,

 

Thank you so much for the explanation! I have one question, is using PHP 7 will be significantly faster that PHP 5.5 or 5.4?

I am using PHP 5.5 right now, and if it will be faster, I will try to change to PHP 7.

 

If that didn't work, my last resort is to change hosting from my current hosting *cough* HawkHost *cough*.

Link to comment
Share on other sites

  • 5 months later...
  • 1 month later...
  • 2 weeks later...

in a 1.6.1.6 version

 

in js/admin you have a function ProductTabsManager()

There is a timeOut to 300000 i set it 45000 to give this script enough time to load My Tabs.

 

The message disappear but still have slowness to load the features Tabs, i also see a post with get rid of crontab in hook DisplayBackOfficeHeader.

So i go to module -> position and disables CronTask it works a little better...

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