dongliantong3229 2014-09-05 06:44
浏览 126

尽管正确设置了php.ini,但最大执行时间错误

I have been struggling with this for past one hour. I am using WAMP Local server on windows maching so everything is under my control. I am getting maximum execution time 60 seconds error when trying to import Wordpress xml file.

I have set these values in php.ini:

max_execution_time = 1200
memory_limit = 512M
max_input_time = -1

I have also edited my wp-config file : set_time_limit(0);

I restarted server after making changes. Still I get error

) Fatal error: Maximum execution time of 60 seconds exceeded in C:\wamp\www\xxa\wp-includes\wp-db.php on line 1285

Thanks Ahmar

  • 写回答

3条回答 默认 最新

  • duanpingzu7194 2014-09-05 07:00
    关注

    This problem can arise when the inital check performed by the plugin takes more than 30 seconds.

    Please try either:

    1. Adapting the wp-config.php: set_time_limit(60);

    Important – If you are making changes in wp-config.php, then add this line above the “/* That’s all, stop editing! Happy blogging. */” comment.

    1. Adapting the /.htaccess file of your WordPress installation php_value max_execution_time 60

    2. Adapting the php.ini file max_execution_time = 60;

    Preferably the changes are made in the wp-config.php file.

    Please let me know if that solves the issue.

    Thanks

    评论

报告相同问题?