Wordpress: RestAPI/loopback request are needed?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Paul&John
    Confirmed User
    • Aug 2005
    • 8643

    #1

    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
    
    The REST API is one way that WordPress and other applications communicate with the server. For example, the block editor screen relies on the REST API to display and save your posts and pages.
    
    When testing the REST API, an error was encountered:
    
    REST API Endpoint: https://www.domain.com/wp-json/wp/v2/types/post?context=edit
    REST API Response: (http_request_failed) stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure stream_socket_client(): Failed to enable crypto stream_socket_client(): unable to connect to ssl://www.domain.com:443 (Unknown error)
    Code:
    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.
    Error: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure stream_socket_client(): Failed to enable crypto stream_socket_client(): unable to connect to ssl://www.domain.com:443 (Unknown error) (http_request_failed)
    Checkec openssl and it wasn't enabled even on 7.3 so I guess the issue is with some kind of ssl certificate? (got it via Cloudflare).. but my question is - are these two things really needed, or can I just ignore this?

    Thanks
    Use coupon 'pauljohn' for a $1 discount at already super cheap NameSilo!
    Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies here
  • NoWhErE
    Too lazy to set a custom title
    • Sep 2005
    • 10583

    #2
    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
    skype: lordofthecameltoe

    Comment

    • Mr Pheer
      So Fucking Banned
      • Dec 2002
      • 22083

      #3
      I had that issue and I had to click "Force HTTPS" for my domain in my server's control panel.

      Comment

      • fuzebox
        making it rain
        • Oct 2003
        • 22351

        #4
        Are you using cloudflare for ssl?

        Comment

        • Paul&John
          Confirmed User
          • Aug 2005
          • 8643

          #5
          Originally posted by NoWhErE
          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
          Loads fine via secure connection

          Originally posted by fuzebox
          Are you using cloudflare for ssl?
          Yes I'm on CF.
          Use coupon 'pauljohn' for a $1 discount at already super cheap NameSilo!
          Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies here

          Comment

          • Mr Pheer
            So Fucking Banned
            • Dec 2002
            • 22083

            #6
            Originally posted by Paul&John
            Loads fine via secure connection



            Yes I'm on CF.
            Try setting SSL to Flexible

            Comment

            • Paul&John
              Confirmed User
              • Aug 2005
              • 8643

              #7
              Already on Flexible, also using a plugin for it: Flexible SSL for CloudFlare (Fix For CloudFlare Flexible SSL Redirect Loop For WordPress)
              Use coupon 'pauljohn' for a $1 discount at already super cheap NameSilo!
              Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies here

              Comment

              • Paul&John
                Confirmed User
                • Aug 2005
                • 8643

                #8
                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.
                Use coupon 'pauljohn' for a $1 discount at already super cheap NameSilo!
                Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies here

                Comment

                • Colmike9
                  (>^_^)b
                  • Dec 2011
                  • 7230

                  #9
                  Someone mentioned before that a plugin named Rocket does this after a PHP upgrade. Might be that or some other plugin.
                  Join the BEST cam affiliate program on the internet!
                  I've referred over $1.7mil in spending this past year, you should join in.
                  I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..

                  Comment

                  • Paul&John
                    Confirmed User
                    • Aug 2005
                    • 8643

                    #10
                    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
                    Use coupon 'pauljohn' for a $1 discount at already super cheap NameSilo!
                    Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies here

                    Comment

                    • fuzebox
                      making it rain
                      • Oct 2003
                      • 22351

                      #11
                      Originally posted by Paul&John
                      Yes I'm on CF.
                      Are you also running ssl on your server? 99% of Wordpress + SSL issues are because of cloudflare and the fact that the site can't access itself as it doesn't go through the SSL proxy.

                      Comment

                      • jamezon
                        Confirmed User
                        • Apr 2019
                        • 136

                        #12
                        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

                        Comment

                        • Freedom6995
                          Friends of Venus founder
                          • Jul 2010
                          • 1975

                          #13
                          Originally posted by Paul&John
                          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
                          Disable your plugins and see what happens.

                          Comment

                          • fris
                            Too lazy to set a custom title
                            • Aug 2002
                            • 55679

                            #14
                            should be it at least 7.4 for wp, 8.0 really.

                            which host is still at 7.3?
                            Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                            Comment

                            • Colmike9
                              (>^_^)b
                              • Dec 2011
                              • 7230

                              #15
                              Originally posted by Paul&John
                              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
                              What's the difference between "Select" XML Sitemap Generator for Google vs the non-select version?
                              Join the BEST cam affiliate program on the internet!
                              I've referred over $1.7mil in spending this past year, you should join in.
                              I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..

                              Comment

                              • Paul&John
                                Confirmed User
                                • Aug 2005
                                • 8643

                                #16
                                Originally posted by Freedom6995
                                Disable your plugins and see what happens.
                                Too afraid to fuck up something, my guess is that none of those has to do anything with it except 'Flexible SSL for CloudFlare'.. but without that one the site wont work.

                                Originally posted by fris
                                should be it at least 7.4 for wp, 8.0 really.

                                which host is still at 7.3?
                                Thats an unmanaged VPS at OVH.. but I got a managed one at a big adult host and my php there is even on a lower version (7.2)

                                Originally posted by Colmike9
                                What's the difference between "Select" XML Sitemap Generator for Google vs the non-select version?
                                Accidentally put the 'select' on the list, there is only one xml plugin.
                                Use coupon 'pauljohn' for a $1 discount at already super cheap NameSilo!
                                Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies here

                                Comment

                                • fris
                                  Too lazy to set a custom title
                                  • Aug 2002
                                  • 55679

                                  #17
                                  Originally posted by fuzebox
                                  Are you also running ssl on your server? 99% of Wordpress + SSL issues are because of cloudflare and the fact that the site can't access itself as it doesn't go through the SSL proxy.
                                  yes if you are using ssl on your server stop.

                                  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.
                                  Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                                  Comment

                                  • Mr Pheer
                                    So Fucking Banned
                                    • Dec 2002
                                    • 22083

                                    #18
                                    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.

                                    Comment

                                    • fris
                                      Too lazy to set a custom title
                                      • Aug 2002
                                      • 55679

                                      #19
                                      Originally posted by Paul&John
                                      Too afraid to fuck up something, my guess is that none of those has to do anything with it except 'Flexible SSL for CloudFlare'.. but without that one the site wont work.



                                      Thats an unmanaged VPS at OVH.. but I got a managed one at a big adult host and my php there is even on a lower version (7.2)



                                      Accidentally put the 'select' on the list, there is only one xml plugin.
                                      no host should be using an out of date version like 7.2, i thought vacares was bad enough for only 7.3
                                      Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                                      Comment

                                      • Paul&John
                                        Confirmed User
                                        • Aug 2005
                                        • 8643

                                        #20
                                        Originally posted by Mr Pheer
                                        Just out of curiosity... are you using an adblocker in your browser?
                                        I have adblock disabled on my own sites.. I think the issue will be with the CF flexible thingy and not having a certificate on my server. So will setup lets encrypt via virtualmin then switch to FULL mode at CF.
                                        Use coupon 'pauljohn' for a $1 discount at already super cheap NameSilo!
                                        Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies here

                                        Comment

                                        • Paul&John
                                          Confirmed User
                                          • Aug 2005
                                          • 8643

                                          #21
                                          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.
                                          Use coupon 'pauljohn' for a $1 discount at already super cheap NameSilo!
                                          Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies here

                                          Comment

                                          • fris
                                            Too lazy to set a custom title
                                            • Aug 2002
                                            • 55679

                                            #22
                                            curl module should really be on all php installs
                                            Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                                            Comment

                                            • Paul&John
                                              Confirmed User
                                              • Aug 2005
                                              • 8643

                                              #23
                                              To tell you the truth I always thought it comes already with php
                                              Use coupon 'pauljohn' for a $1 discount at already super cheap NameSilo!
                                              Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies here

                                              Comment

                                              Working...