Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/wolfslender/curl-timeout-fix/archive/refs/heads/main.zipcURL Timeout Fix Plugin
Description
The cURL Timeout Fix plugin is a simple solution to resolve the error cURL error 28: Operation timed out after X milliseconds with 0 bytes received that occurs when WordPress tries to connect to external services and the timeout is exceeded. This plugin adjusts the cURL timeout to a higher value to avoid this error.
Features
- Adjusts the cURL timeout to 30 seconds.
- Retries failed requests up to 3 times.
- Quick solution for connection issues in WordPress with external APIs or third-party services.
- No additional configuration required; simply activate it and you're good to go.
Requirements
- WordPress 4.0 or higher.
- PHP 5.6 or higher.
Installation
- Download the
curl-timeout-fix.phpfile. - Upload the file to the
/wp-content/plugins/directory of your WordPress installation. - Activate the plugin through the Plugins menu in the WordPress admin panel.
Usage
Once activated, the plugin will automatically adjust the cURL timeout for WordPress requests. No additional configuration is needed.
Uninstallation
To uninstall the plugin:
- Deactivate the plugin from the Plugins menu in WordPress.
- Remove the
curl-timeout-fix.phpfile from the/wp-content/plugins/directory.
Notes
This plugin can be particularly useful for WordPress installations on servers with slow network configurations or when making requests to external services with high latency.
Contributions
If you would like to improve this plugin or report any issues, you can do so on GitHub.
License
This plugin is available under the GPL-3.0-or-later License. For more details, please refer to the LICENSE file.
For support, bug reports, and feature requests, please use the GitHub Issues page or contact us through our support channels.
Changelog
1.1
- Adjusted the cURL timeout to 30 seconds.
- Added retry logic for failed requests (up to 3 retries).
1.0
- Initial release with basic timeout adjustment functionality.
Credits
Developed by Alexis Olivero
Privacy Policy
This plugin does not collect any personal data from your visitors or send any data to external services.