Fatal error: Maximum execution time of 30 seconds exceeded

后端 未结 16 1131
逝去的感伤
逝去的感伤 2020-11-22 01:27

I am downloading a JSON file from an online source and and when it runs through the loop I am getting this error:

Fatal error: Maximum execution time

16条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-11-22 01:35

    I ran into this problem while upgrading to WordPress 4.0. By default WordPress limits the maximum execution time to 30 seconds.

    Add the following code to your .htaccess file on your root directory of your WordPress Installation to over-ride the default.

    php_value max_execution_time 300  //where 300 = 300 seconds = 5 minutes
    

提交回复
热议问题