I was playing with a demo site using WordPress in my localhost with XAMPP. At some point, while installing a plugin called The Events Calendar, the installation failed with the error message:

Reading some articles to get a solution, I found people reported similar problems having a little different error messages, like:
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\tal\dev-2\wp-includes\class-wp-http-curl.php on line 324
Solution: This is neither a problem with the WordPress nor with the Plugin, it’s related to the PHP Configuration in XAMPP. I solved it with the following steps:
- Open php.ini file from the XAMPP folder, in my case it is located at C:\xampp\php
- Search for max_execution_time (the time limit is mentioned here, in my case it was 30)

- Change the parameter to higher value, I set it to 120 which is 2 minutes.
- Restart XAMPP.
This worked for me and I could install the plugin without any further similar problems :-(.
非常感謝您,試用了您的方法,成功排除故障,真是萬分感謝!
谢谢,不客气