Solution to wordpress REST API fail and loopcack fail

If your server serves multiple web domains and you also host wordpress you probably have those two errors:

The REST API encountered an error Performance The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages. The REST API request failed due to an error. Error: [] cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received – Your site could not complete a loopback request Performance Loopback requests are used to run scheduled events, and are also used by the built-in editors for themes and plugins to verify code stability. The loopback request to your site failed, this means features relying on them are not currently working as expected. Wystąpił błąd: (0) cURL error 28: Operation timed out after 10000 milliseconds with 0 bytes received

The solution is simple, add to /etc/hosts your new wordpress installation domain.

IP_SERVER NEW_DOMAIN

Τυχαία εικόνα

save-the-earth-decades.jpg

You are here with: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Your IP: 216.73.216.11

Made in Linux :)

Hits: 225

Φόρτος CPU: 0.01 | 0.02 | 0