• Hello, from yesterday when I have installed WordPress using softaculous I am facing these two following frustrating errors. I think for these errors some of my plugins like Elementor, itheme security is not working properly.

    The two errors I got in the site health:

    1. A scheduled event has failed

    The scheduled event, wp_https_detection, failed to run. Your site still works, but this may indicate that scheduling posts or automated updates may not work as intended.

    2. `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.`

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @hynix72

    WordPress needs to be active (processing a request) to regularly see what scheduled events its supposed to run and run them if its time for them. Otherwise, it won’t be able to do anything, that’s just nature of how PHP works. A request comes in and processing happens only then. It doesn’t run continuously in the background.

    That being said, we can attach a proper cron mechanism to it (which will fire it up every time interval we specify) ensuring it can detect whether its time to do a scheduled task as well. In the absence of this setup, it tries to send itself a request with the usual traffic it receives for this purpose alone. Some hosts don’t play well with requests sent to itself, which seems to be the case with you.

    Simple fix is to find cron option in your hosting panel and point it towards wp-cron.php on your site. Either by providing the path to it, it exists in root of all WordPress files (where you find wp-config.php) or you set a service to periodically send requests at this url – yoursite.com/wp-cron.php

    Thread Starter hynix72

    (@hynix72)

    Yes @ashfame for this reason I have disabled WordPress cron job using define command and set a cron job ( 5 mins interval) using wget command in cPanel cron option but the problem still exist. What to do now. I am using a litespeed server.

    @hynix72 Can you check your access logs and confirm there is a request to wp-cron.php every 5mins? Scheduled events won’t miss once that’s setup and running.

    Thread Starter hynix72

    (@hynix72)

    how to check the access log please mention.

    Look for logs option in your hosting panel.

    Thread Starter hynix72

    (@hynix72)

    Okay finally I am changing my Hosting Provider lets see if I face another issue or not I am switching to Hostinger. I hope there I will not face this issue.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Scheduled even failed and could not complete loopback request’ is closed to new replies.