hrac5552 Posted February 2, 2012 Share Posted February 2, 2012 Hi , I have an error on my page : Fatal error: Maximum execution time of 20 seconds exceeded in /domains1/******/public/www_root/obchod/backoffice/tabs/AdminTranslations.php on line 421 . I am getting this error when I want to translate modules . Can you help me ? Thank you very much Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 2, 2012 Share Posted February 2, 2012 Hi hrac, This is a hosting related issue, as your server is currently configured to wait 20 seconds to complete any request, and if not completed by then you receive a timeout error (even if it would have completed in 21 seconds). If you give your hosting provider a call and ask them to increase your max_execution_time value to 60 seconds, that should resolve this for you. I hope this helps. -Mike 1 Link to comment Share on other sites More sharing options...
hrac5552 Posted February 3, 2012 Author Share Posted February 3, 2012 Hi Mike , thx for your answer . I alerady asked my webhoster . He said that they can not give me more execution time . Because of that I ask . Can I set it anyway ? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 3, 2012 Share Posted February 3, 2012 Hi hrac, Who is your hosting provider? That's pretty strange for them to refuse to do so, especially when 20 seconds is the default value. If they're not willing to edit that value for you in your php.ini file, I would honestly recommend that you consider switching hosts, and can even provide you a link to a preferred rate with one of my personal favorite hosting providers. -Mike Link to comment Share on other sites More sharing options...
hrac5552 Posted February 3, 2012 Author Share Posted February 3, 2012 My hosting provider is from Slovakia . I am too I have a hosting called optimum and they said that they can not give me more than 20 seconds . What can I do with that ? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 3, 2012 Share Posted February 3, 2012 To be perfectly honest, not much. While most sites shouldn't ever take 20 seconds to load under normal conditions, that limit is far too low for a time when you have a lot of traffic or your hosting server is trying to handle a heavy load. Before this thread, I think the lowest I had seen for any of our users was 40 seconds. Like I said, if you're interested I would be happy to recommend you to a host that is much better suited to PrestaShop. -Mike Link to comment Share on other sites More sharing options...
hrac5552 Posted February 3, 2012 Author Share Posted February 3, 2012 So I can not set it on my own ? I will think of it . But I want to stay with this provider . Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 3, 2012 Share Posted February 3, 2012 So I can not set it on my own ? I will think of it . But I want to stay with this provider . If you have access to your php.ini file, then you can set it on your own. Otherwise your hosting provider will need to do it for you. -Mike Link to comment Share on other sites More sharing options...
hrac5552 Posted February 5, 2012 Author Share Posted February 5, 2012 Hi , they have setted it to 30 seconds for me , but same error . Now with 30 sec. . They wrote me that I can add following < ? echo "a"; flush(); ob_flush(); ? > to the code and t will solve it . But I don not know how to use it . Can you help me ? Link to comment Share on other sites More sharing options...
dhurley Posted July 20, 2012 Share Posted July 20, 2012 in top of the application you could add, dont know where, but this is how I would do it if I could not edit the php.ini file ini_set("max_execution_time", 300); // 300 = five min Link to comment Share on other sites More sharing options...
saan_punk Posted November 15, 2013 Share Posted November 15, 2013 Thanks mate Hi hrac,This is a hosting related issue, as your server is currently configured to wait 20 seconds to complete any request, and if not completed by then you receive a timeout error (even if it would have completed in 21 seconds). If you give your hosting provider a call and ask them to increase your max_execution_time value to 60 seconds, that should resolve this for you.I hope this helps.-Mike 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