• Hi,

    I have a strange 3 Errors on site. This is from WP Site Health:

    A scheduled event has failed
    
    The scheduled event, wp_privacy_delete_old_export_files, failed to run. Your site still works, but this may indicate that scheduling posts or automated updates may not work as intended.
    The REST API encountered an unexpected result
    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.
    Your site could not complete a loopback request
    
    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 returned an unexpected http status code, 403, it was not possible to determine if this will prevent features from working as expected.

    I have only 5 plugins but deactivated all of them to check for the solutions, also forced wordpress update but the errors are still there.
    Do anyone know what is going on? The page is working fine no errors in the console just Site Health is freaking out.

    • This topic was modified 2 years, 6 months ago by maryando.
Viewing 4 replies - 1 through 4 (of 4 total)
  • You are the second person who had this problem. You can see if the REST is working by issuing <<yoursite>>/wp-json/wp/v2/posts . if it working you will get a json string back of all your posts. You can change post to pages if you want a list of all your pages.

    The REST API allows your site to share information without having to visit the site. To make changes using REST you would have to be authenticated. It could be something is making a request but lacks the authority to do what it wants. I don’t think REST is needed unless you are dealing with remote data or using Dynamic blocks. I think there are plugins to turn the REST API off.

    You can use the REST API locally if you are storing a nounce on you page. A nounce is a temporary value stored in your sites page. If allows components to update without your page refreshing. The nounce has a time limit then a new one must be issued. If something doesn’t use it in time it expires and will not allow the rest api to complete it function.

    There are different things that might cause the REST API to issue errors. It hard to say if it just something that lacked authority or some other issue.

    The scheduling is a different issue. Can’t really say what is causing it. My guess is it probably a plugin try to update. Not sure if this helped you any.

    Thread Starter maryando

    (@maryando)

    Hi thanks for your reply and valuable ideas!
    Yes the REST is working after issuing wp-json/wp/v2/posts I have a posts outputted in the array. However I’ve changed the only one administrator last time and when I first time issued the wp-json/wp/v2/posts I had an empty array outputted, so created two brand new posts under this current admin and array is outputting them nicely.

    I have no idea what’s causing this. I have deactivated 5 plugins I have and changed my theme to default one but still (there are only two themes) the same errors.

    I will probably install a fresh copy of WP and move all my content there to just get rid of those annoying errors. As you’ve said I don’t need API, so website will still works, but I don’t like when something is not working as it should.

    Thanks so much!

    It really depends on what you are doing if you need the REST API. It will play a bigger part in wordpress in the future. Turning it off may cause you problems in the future. I think everything is trending to more dynamic content. If you want to use your data in a mobile app, create a headless website, or access your data from a desktop app. it will probably be essential. I think presently there is more of a need for dynamic content. For example, if you have a shopping cart and you want it to reflect what the user has ordered without reloading the site every time they change the cart. Just bear in mind that turning it off might result in even more headaches in the future.

    Thread Starter maryando

    (@maryando)

    Yes I know what API does but this is a simple portfolio website, but the errors annoying me so much. I have moved all the content to the fresh WP installation and guess what! The errors are not there, but soon as I moved the DB they are showing back again.
    This site is built on Elementor and Astra Child Theme and I think this might be the problem. I never had anything like this building my custom theme and writing the code myself. But with those page builders there are always millions of problems.
    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Scheduled Event Failed, REST API and loopback Site Health Errors’ is closed to new replies.