![]() |
Wordpress: RestAPI/loopback request are needed?
Hi!
Just upgraded PHP7.3 to 7.4 for one of my wordpress sites and now I'm getting these two 'critical issues' under site-health: Code:
The REST API encountered an error Performance Code:
Your site could not complete a loopback request Performance Thanks :) |
Not sure if needed, but have you tried opening the URL in the first message to see if SSL is indeed working?
In your post it's: https://www.domain.com/wp-json/wp/v2...t?context=edit so replace "domain.com" with your site and see if SSL works. If not, contact your host |
I had that issue and I had to click "Force HTTPS" for my domain in my server's control panel.
|
Are you using cloudflare for ssl?
|
Quote:
Quote:
|
Quote:
|
Already on Flexible, also using a plugin for it: Flexible SSL for CloudFlare (Fix For CloudFlare Flexible SSL Redirect Loop For WordPress)
|
PS: this issue wasnt reported by Wordpress before the upgrade from PHP 7.3 to PHP 7.4 so I guess it has something to do with it.
|
Someone mentioned before that a plugin named Rocket does this after a PHP upgrade. Might be that or some other plugin.
|
I dont have that one, the list of plugins I'm using:
Easy WP Meta Description Flexible SSL for CloudFlare Official StatCounter Plugin (not sure why I added this, I always just manually add the code into the footer on my other blogs) Widget Options Select XML Sitemap Generator for Google XML Sitemap Generator for Google |
Quote:
|
if you dont use rest api , its not a bad idea trying to disable it and see if things work. as far is know, its anyway mostly used by sneaky bots and hackers to brute force . not sure about newer versions of wp, i allways use classic editor and older versions of wp to keep things fast and simple..for newer plugins rest api might be necessary
|
Quote:
|
should be it at least 7.4 for wp, 8.0 really.
which host is still at 7.3? |
Quote:
|
Quote:
Quote:
Quote:
|
Quote:
cloudflare uses the http url on your server, so if you have ssl enabled, and you have cloudflare you might either get massive redirect loops, or stuff breaking. |
Just out of curiosity... are you using an adblocker in your browser?
If so, disable it for your site. I had an issue yesterday with certain plugins not working, wordpress was throwing errors, and it was my adblocker the whole time. And I can duplicate it. Error connecting to WordPress REST API. Disable ad-blocker for this page or unblock /wp-json/wp-statistics/v2/metabox in the ad-blocker configuration. |
Quote:
|
Quote:
|
Seems like the solution was easier after all. So at first I requested a lets encrypt certificate, enabled FULL mode at Cloudflare then disabled the Flexible plugin but didn't helped. Did a little more googling and installing php-curl module for 7.4 solved it. Interestingly curl wasn't installed for php 7.3.
|
curl module should really be on all php installs
|
To tell you the truth I always thought it comes already with php :)
|
All times are GMT -7. The time now is 07:43 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc