Server Timeout - Script Taking Too Long
A process (like a plugin task or a large database query) is taking so long that the server stopped it. This is usually caused by heavy plugins, a large database, or slow hosting.
Why this happens
Your hosting server enforces a maximum time a script is allowed to run, usually 30-60 seconds. If a plugin task, a database query, or an import process takes longer than that limit, PHP forcibly stops it and this error appears - even if the task would have eventually finished on its own.
Step-by-step fix
- Open wp-config.php and add this line: set_time_limit(300);
- If you have access to your hosting's .htaccess file, you can also add: php_value max_execution_time 300
- Check any recently installed or updated plugins - temporarily disable them to see if that's the cause.
- If the issue persists, contact your hosting provider - server resources may be limited.
How to prevent it happening again
- Run large imports, exports, or migrations during off-peak hours when server load is lower.
- Break large bulk operations (like importing thousands of products) into smaller batches.
- Choose hosting with a reasonably high default execution time limit if you regularly run heavy tasks.
😩 Still stuck, or want it fixed without doing it yourself?
I fix WordPress errors like this every day. Send me your error and I'll get your site back up - most fixes are completed within 24 hours.