Fatal Error: Maximum execution time of 30 seconds exceeded

While trying to upload a slider into my WordPress test site I got  “Fatal error : Maximum execution time of 30 seconds exceeded.” By default, the maximum execution time on web servers is 30 seconds. To fix this we would need to increase the execution time by adding a line in wp-config.php or HTACCESS or php.ini file hosted on your web server.

1. Log in to your Web host Via FTP.

2. Locate the Wp-config.php, located in the root directory on your web server. Before you edit this file make sure to create a back up by (dragging and doping the file to your desktop or on to a desktop folder).

Editing the Wp-config.php file It’s easier than editing the .HTACCESS or the php.ini file

3. Add the following line to the Wp-config.php

set_time_limit(300);

*Important – add this line above “/* That’s all, stop editing! Happy blogging. */” comment.

If editing the .htaccess then add the following line:

php_value max_execution_time 300

If editing the php.ini file then add the following line:

max_execution_time = 300 ;

Once I made the change in wp-config.php file I uploaded the file fine!!

Note: There is no need to make all three changes as any one of the above works fine.

Video Tutorial:

httpvh://youtu.be/cvXIHsyjHIU