Every time i tried to update WordPress ,i faced this error:
Fatal error: Maximum execution time of 120 seconds exceeded in G:\wamp\www\wordpress\wp-includes\Requests\Transport\fsockopen.php on line 246
Code of line number 246 is:
$block = fread($socket, Requests::BUFFER_SIZE);
How can i solve this problem?
Every time i tried to update WordPress ,i faced this error:
Fatal error: Maximum execution time of 120 seconds exceeded in G:\wamp\www\wordpress\wp-includes\Requests\Transport\fsockopen.php on line 246
Code of line number 246 is:
$block = fread($socket, Requests::BUFFER_SIZE);
How can i solve this problem?
Share Improve this question edited Aug 4, 2017 at 7:10 Johansson 15.4k11 gold badges43 silver badges79 bronze badges asked Aug 4, 2017 at 6:55 Raihan AkashRaihan Akash 111 bronze badge2 Answers
Reset to default 1This issue generally occurs when php script takes more time for execution than set in php.ini file
You can resolve this issue by using two methods:
Method 1: Editing .htaccess File Manually
Put php_value max_execution_time 600 in .htaccess file 600 is the value of execution time in seconds, you can use yours value, the maximum value is better.
Method 2: You can use https://wordpress/plugins/wp-maximum-execution-time-exceeded/ plugin to maximise the execution tome
Increase the maximum execution time of PHP.
You can do that on php.ini
, on .htaccess
or probably you can do it in the wp-config.php
file.
For mores information, visit this codex page.