You may receive a message such as “Maximum execution time of 30 seconds exceeded” or “Maximum execution time of 60 seconds exceeded”. This means that it is taking too long for a process to complete and it is timing out.
There are a number of ways to fix this error:
Method 1: Edit file wp-config.php
Add the following to wp-config.php:
set_time_limit(300);
This method involves adding a line of code to the wp-config.php file. This file is located in the root directory of your WordPress installation. It’s important to back up this file before making any changes. You can use an FTP client to connect to your website and edit the file.
Method 2: Edit file .htaccess
This file is also located in the root directory of your WordPress installation. Similar to wp-config.php, it’s recommended to create a backup before editing.
Add the following to .htaccess:
php_value max_execution_time 300
Method 3: Editing php.ini
This method involves editing the php.ini file. This file location varies depending on your web hosting provider. You may need to contact your hosting provider for instructions on how to edit this file.
Add the following to php.ini:
max_execution_time = 300
Important Notes: It’s generally recommended to increase the maximum execution time only as much as needed. A high execution time can negatively impact website performance.
Learn More from ThimPress Knowledge Base Articles:
- How to Increase WordPress Memory Limit: 3 Easy Methods
- How to Share WordPress Site Access with Thimpress Support Securely
- How To Troubleshoot ActionScheduler Errors: Step-by-Step Guide
- How to Update WordPress Theme Safely: A Step-by-Step Guide
- How to Update Your PHP Version (and Why It’s Crucial)
- Loco Translate Guide: How to Translate Your WordPress Theme
- How to Fix “Broken Theme and/or Stylesheets Missing” Error in WordPress
- One-Click Installation: Launch A WordPress Site in Minutes
- How to Extend Support for ThimPress Product on ThemeForest
- ThimPress’s Documentation Portal
Contact US | ThimPress:
Website: https://thimpress.com/
Fanpage: https://www.facebook.com/ThimPress
YouTube: https://www.youtube.com/c/ThimPressDesign
Twitter (X): https://twitter.com/thimpress