简体   繁体   中英

PHP Fatal error: Maximum execution time of -1 seconds exceeded in

Been getting this error on my server all of a sudden -

Fatal error: Maximum execution time of -1 seconds exceeded in

This is happening inside my wordpress site. It shows up across many files so it's not isolated to one in particular.

Googling hasn't given me any results for the "-1 seconds" issue which is rather odd. I've tried increasing the time limit on the scripts but it doesn't resolve the issue.

I've found that refreshing the page many times will eventually give me the page I want.

I ended up reinstalling Wordpress, and I get the same issue again. I'm starting to think it's not a Wordpress issue, but have no idea where to start diagnosing the issue.

Try this in your php code(add top)

set_time_limit(0);
ini_set('max_execution_time', 0);

if you are getting error again and again increase the time limit and see

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM