Curl error 28

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Curl error 28

Postby dafaher » 30. March 2024 04:06

Hello everyone, I'm sorry to bother you. I was trying to fix this problem on my own since yesterday, but I can't. So I thought maybe someon here could point me in the right direction. I installed the latest version of Xampp on my PC (Windows 11 Pro) and am starting a project in the latest version of Wordpress. The thing is that I need to install the demo of a theme using a plugin called Unyson, and after a long time the installation is truncated and this error appears:

Important: HTTP loopback connections are not enabled on this server.
If you need to contact your web host, tell them that when PHP tries to connect back to the site at the URL `http://localhost/MI_WEB/wp-admin/admin-ajax.php` it gets the error `cURL error 28: Operation timed out after 10009 milliseconds with 0 bytes received`. There may be a problem with the server configuration (e.g. problems with local DNS, mod_security, etc.) preventing connections from working properly.


And if I go to the Wordpress "Site Health" tool, it says:

The REST API has encountered an error
The REST API is a way for WordPress and other applications to communicate with the server. An example is the block editor screen, which relies on this to display and save your posts and pages.

When testing the REST API an error was found:

REST API variable: http://127.0.0.1/MI_WEB/index.php/wp-js ... ntext=edit
REST API response: (http_request_failed) cURL error 28: Operation timed out after 10009 milliseconds with 0 bytes received


I'm going crazy because I really need to use the aforementioned plugin in my project, but it's impossible to move forward. The plugin developer went silent. Just in case, I modified the xampp php.ini and increased the max_execution_time values, etc etc. But nothing. If you guys can think of what the solution to this could be, I would be very grateful; I tried several things on the internet but nothing seems to work. Best regards, and a million thanks in advance!

Daniel.
dafaher
 
Posts: 13
Joined: 06. August 2015 21:00
XAMPP version: 7.4.19-0
Operating System: Windows 8.1 Pro - 64 bits

Re: Curl error 28

Postby Nobbie » 30. March 2024 11:56

You should have googled for Important: HTTP loopback connections are not enabled on this server.. Increasing the execution time is not a solution to a connection error.

Due to similar errors in WordPress plugins i found three major hints you may try:

1) Switch off Windows Firewall.

2) Do not use VirtualHosts in Apache.

3) Edit Windows Hosts file and add:

127.0.0.1 localhost

Try step by step, starting with Firewall.
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 145 guests