While working with WordPress, you may come across different types of errors.

One of these is the API request timeout error.

This is an error which usually occurs when you’re trying to view the plugins or themes installed on your WordPress site. If you encounter this issue, you can easily fix it by editing the http.php file which you’ll find in the wp-includes folder.

The steps you’ll need to follow include –

1. Log in to your cPanel interface.
2. Navigate to the Files section.
3. Click on the File Manager icon.
4. Go to your WordPress installtion.
5. Open the wp-includes folder.
6. Find and right-click on the http.php file.
7. Choose the Edit option, as a popup menu displays.
8. In the next popup, click Edit to open the text editor.
9. Now, locate the following line:

‘timeout’ => apply_filters( ‘http_request_timeout’, 5),

10. Replace that line with the following –

‘timeout’ => apply_filters( ‘http_request_timeout’, 30),

11. Click the Save Changes button at the top.

That’s how you can edit the http.php file to get rid of the timeout error issue in question. You should go to WordPress and refresh the page to find out whether the problem has gone. Hopefully, it’s been fixed.

Check our wordpress blog hosting packages.

Leave a Reply

Your email address will not be published.