Question: I was trying to import the [Wordpress Theme Unit Testing Data](http://codex.wordpress.org/Theme_Unit_Test) when this error occured and its driving me nuts.

```
Fatal error: Maximum execution time of 60 seconds exceeded in E:\WebServer\w3programmers\wp-includes\class-http.php on line 1511

```

List of things I've tried:

1. Changed the `max_execution_time` to a hour! in the php.ini
2. Changed it to unlimited (0)
3. Changed it in my htaccess file
4. Tried Changing it with `set_time_limit()` in the config file
5. Tried Changing it with `ini_set()`
6. Tried using this plugin [WP Maximum Execution Time Exceeded](https://wordpress.org/plugins/wp-maximum-execution-time-exceeded/)

Nothing works. I even tried running the import from the Command Line using the WP-Cli tool.
Yes, even the cli failed with the same error. I checked by echoing the return value of `ini_get("max_execution_time")` at the start of my config file. and yes, it does output the value I set in the `php.ini` and other places.

I thought the PHP was hardcoded to allow limitless execution time in the cli. Is this a PHP Bug? or a Wordpress Bug?

I'm using XAMPP on Windows. PHP 5.5.11.

Answer: 
I ran into the same problem, searched and found this solution that fixed it for me: [WordPress 4.2 Fatal error – Maximum execution time of 60 seconds exceeded](http://simpleglyph.in/wordpress-4-2-fatal-error-maximum-execution-time-of-60-seconds-exceeded/)

Basically, it instructs you to add `set_time_limit(1000)` or however many seconds you want to the line before the error in the script that times out so in your case add it on line 1510 in your class-http.php file.

I realize this is 6 months after you asked but maybe it'll help someone else with this problem!
I got this sloved for me by changing set\_time\_limit call inside wp\_get\_http() in wp-includes/deprecated.php, like this:

```
set_time_limit(1200); // Limit to 20 minutes

```

More on the source of the error [here](https://stackoverflow.com/a/37156901/2504037).