最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - Getting a fatal error while updating

programmeradmin0浏览0评论

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 badge
Add a comment  | 

2 Answers 2

Reset to default 1

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

发布评论

评论列表(0)

  1. 暂无评论