parista Posted February 3, 2015 Share Posted February 3, 2015 Hi every body, I want to upgrade my version (1.6.9) to the latest one (1.6.11) using 1 click upgrade module. But at the right side explanation, there is a warning (not checked in green) for the php.ini PHP's max_execution_time setting has a high value or is disabled entirely (current value: 2880 seconds) I looked some forums and i saw that i have to fix some points in PHP.ini file. I am hosted by OVH and they don't allow you to make configuration for shared hostings. I will contact them but what i don't know what to ask exactly about what execution time setting must be setted. In the fallowing tutorial link, the author suggest to disable the “max_input_time” and increase the “max_execution_time” to 300 seconds. https://www.prestashop.com/blog/en/where-is-php-ini-file/ If i make this change, can i have a problem after? The value of 2880 seconds is not better than 300 seconds? Thanks for your help. Link to comment Share on other sites More sharing options...
bellini13 Posted February 4, 2015 Share Posted February 4, 2015 2880 seconds is 48 minutes, which should be plenty of time. But I highly suggest that you do not upgrade your live store, without first testing the upgrade on a test copy of your store. Link to comment Share on other sites More sharing options...
stevent Posted February 23, 2015 Share Posted February 23, 2015 Hello everybody, i'm testing the upgrade on localhost with WAMP. I have exacty the same problem ; PHP's max_execution_time setting has a high value or is disabled entirely (current value: 2880 seconds) When I try to find php.ini i just find this : C:\wamp\bin\apache\apache2.4.9\bin\php.ini ; Maximum execution time of each script, in seconds ; http://php.net/max-execution-time ; Note: This directive is hardcoded to 0 for the CLI SAPI max_execution_time = 120 I change it but that solve not my problem. Can anybody help me ?! thank you verry much ! Link to comment Share on other sites More sharing options...
bellini13 Posted February 23, 2015 Share Posted February 23, 2015 what value does phpinfo give you? Link to comment Share on other sites More sharing options...
stevent Posted February 23, 2015 Share Posted February 23, 2015 (edited) 120 but the result is always the same in prestashop Edited February 23, 2015 by stevent (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted February 23, 2015 Share Posted February 23, 2015 120 but the result is always the same in prestashop which is what exactly? Link to comment Share on other sites More sharing options...
stevent Posted February 24, 2015 Share Posted February 24, 2015 (edited) thanks for hour help, there is a screenshot of my result Edited February 24, 2015 by stevent (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted February 24, 2015 Share Posted February 24, 2015 Ok, I see. Have you tried ignoring the 'warning' and just running the upgrade? Or will it not allow you? Link to comment Share on other sites More sharing options...
stevent Posted February 24, 2015 Share Posted February 24, 2015 I dont see thé button thats The problèm Link to comment Share on other sites More sharing options...
bellini13 Posted February 24, 2015 Share Posted February 24, 2015 the auto upgrade module attempts to disable max execution time by setting the time limit to zero, and setting max_execution_time to 0 in AdminSelfUpgrade.php public function __construct() { @set_time_limit(0); @ini_set('max_execution_time', '0'); apparently your hosting environment does not like this, so I would suggest you remove these lines of code from the module, and just manually reconfigure your PHP to use an acceptable value. 120 seconds is 2 minutes, no clue if that is long enough for your store, you will just have to do trial and error and find the right value Link to comment Share on other sites More sharing options...
Magdelis Posted February 26, 2015 Share Posted February 26, 2015 Backoffice very slow and work from home, unexpected logouts. Link to comment Share on other sites More sharing options...
bellini13 Posted February 26, 2015 Share Posted February 26, 2015 Backoffice very slow and work from home, unexpected logouts. and what does this have to do with the topic we are discussing? Link to comment Share on other sites More sharing options...
tony1dk Posted July 9, 2015 Share Posted July 9, 2015 That didn't work any other way of bypassing these checks ? got the same error the auto upgrade module attempts to disable max execution time by setting the time limit to zero, and setting max_execution_time to 0 in AdminSelfUpgrade.php public function __construct() { @set_time_limit(0); @ini_set('max_execution_time', '0'); apparently your hosting environment does not like this, so I would suggest you remove these lines of code from the module, and just manually reconfigure your PHP to use an acceptable value. 120 seconds is 2 minutes, no clue if that is long enough for your store, you will just have to do trial and error and find the right value Link to comment Share on other sites More sharing options...
kamaaina Posted September 5, 2015 Share Posted September 5, 2015 I have same issue need to upgrade to vers 1.6.1.1 - anyone have an answer to this as yet? - PHP's max_execution_time setting has a high value or is disabled entirely (current value: 2880 seconds) Link to comment Share on other sites More sharing options...
bellini13 Posted September 5, 2015 Share Posted September 5, 2015 I have same issue need to upgrade to vers 1.6.1.1 - anyone have an answer to this as yet? - PHP's max_execution_time setting has a high value or is disabled entirely (current value: 2880 seconds) what exactly is your issue, and does my reply back on Feb 24th address it? Link to comment Share on other sites More sharing options...
mds Posted January 19, 2019 Share Posted January 19, 2019 (edited) Dont waste your time looking around, firstly check the last modules installed , disable or uninstall them, then try to come back to the upgrade page, you should see all checks marked green. If you recently installed more than one module, its better to tweak around disabling and uninstalling the modules to see which is exhausting the max_execution_time If no success, then look into the settings of the server max_execution_time to see if it has the right settings. You may need to add it to the php.ini file in the root. it may be worthwhile consulting your host to see if there are any restrictions but that's after all the above has been explored. Edited January 19, 2019 by mds (see edit history) 1 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