syaphy Posted December 2, 2015 Share Posted December 2, 2015 (edited) 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. 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 December 2, 2015 by syaphy (see edit history) Link to comment Share on other sites More sharing options...
Designinfo.in Posted December 9, 2015 Share Posted December 9, 2015 I have the same problem Did you solve your issue ? Link to comment Share on other sites More sharing options...
syaphy Posted December 11, 2015 Author Share Posted December 11, 2015 I have the same problem Did you solve your issue ? I think it really is a server problem, because when I change server, everything is good. I used HawkHost as my first server, now I switched to InMotion. Link to comment Share on other sites More sharing options...
tuk66 Posted December 14, 2015 Share Posted December 14, 2015 I already ask my hosting provider about this but they said it is not hosting problem. Haha. They always say this notwithstanding the fact. You have to investigate it himself. Link to comment Share on other sites More sharing options...
pinwheel Posted March 11, 2016 Share Posted March 11, 2016 The server is mine and no other websites have this problem. But the prestashop does when i'm adding products. Only products does this happen with. I feel it's a fault in prestashop without any fix in sight. Link to comment Share on other sites More sharing options...
pinwheel Posted March 11, 2016 Share Posted March 11, 2016 I own the server and don't have problem with other shopping carts. Only prestashop seems to be having a problem. I have checked the settings, increased the execution time still nothing. Link to comment Share on other sites More sharing options...
pinwheel Posted March 12, 2016 Share Posted March 12, 2016 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 More sharing options...
syaphy Posted March 12, 2016 Author Share Posted March 12, 2016 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! Link to comment Share on other sites More sharing options...
pinwheel Posted March 12, 2016 Share Posted March 12, 2016 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! Screen 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 More sharing options...
syaphy Posted March 17, 2016 Author Share Posted March 17, 2016 @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: xhrs.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 More sharing options...
Rudra123 Posted September 9, 2016 Share Posted September 9, 2016 I got same error. see my js issue : http://prntscr.com/cg0pyk any one can get solution please help me. Link to comment Share on other sites More sharing options...
JayLab Posted November 1, 2016 Share Posted November 1, 2016 and to have a good configuration server what are the good parameters for prestashop on a 5.6 php version ? Link to comment Share on other sites More sharing options...
JayLab Posted November 15, 2016 Share Posted November 15, 2016 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 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