Maximum execution time of 30 seconds exceeded – WordPress

Maximum execution time of 30 seconds exceeded – WordPress

"Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\wp\wp-includes\class-http.php on line 1153"
or
"Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\wp\wp-includes\class-http.php on line 1498"

While running WordPress PHP on a local server, the Maximum execution time error while can be encountered while trying to install a plugin.

How to fix?

You need to increment the value of max_execution_time in php.ini ( C:/xampp/php/php.ini ).

If you see this error and you are not on the local webserver, then you could also goto /wp-includes/class-http.php and simply add  set_time_limit (50); where 50 will be the maximum allowed execution time for a script.

There is also a 3rd option that you download the plugin form wordpress and them upload it to your website manually.