Home / Questions / Why does WordPress show maximum execution time exceeded?
Why does WordPress show maximum execution time exceeded?
This error means a PHP script ran longer than the time limit. Imports, backups and big plugin tasks are the usual causes, and raising the limit is only a short-term fix.
PHP stops any script that runs longer than its max_execution_time limit. WordPress then shows a plain error and leaves the task half done. Imports, backups, bulk edits and some plugin cron jobs hit this limit most often.
Raise the limit
Set max_execution_time to 300 seconds in your host’s PHP settings. You can also add @ini_set( 'max_execution_time', '300' ); to wp-config.php if your host allows it.
Ready to act on this?
Get a written review of your site, or send us your question and we will reply within 24 hours.
Find the slow task
Run the task again with the debug log on, then read the log for the last function that ran. A long import or a plugin that scans every post will show there.
Running big jobs in small batches is usually safer than raising the limit again and again. If a job still times out, contact us and we will look at what is slowing it down.
Related services
Related questions
Not sure where your site stands?
Send us the details and we will reply within 24 hours with a clear next step.