Connection timed out is one of the often occurred problems in WordPress. Sometimes it throws error message “Maximum execution time of 30 seconds exceeded” or “Maximum execution time of 60 seconds exceeded”. You received this error because your site is taking longer time for the process to complete. You can fix this issue in three ways.
Also Read: How to disable comments in WordPress
First Method: Edit wp-config.php file
In WordPress root directory you can see the wp-config.php file. Open that file in the code editor and add the following code.
Second Method: Edit .htaccess file
Open your site root directory .htaccess file and put the following code,
php_value max_execution_time 300
(Note: Please take the backup before edit .htaccess file)
Third Method: Edit php.ini
If you have access to php.ini, you can edit it otherwise contact your hosting provider and ask them to edit it. Add the following in php.ini file,
max_execution_time = 300
I hope these methods will help you to fix the maximum execution time issue. If you have any query please put it in the below comment box.