• locker17

    (@locker17)


    Hello, I always get an error from HTTP Api calls Astra_Theme_Background_Updater->test_cron() as unauthorized.

    For what is this updater?
    On your classes page it says “Gets the current cron status”. What does that mean? Am I able to switch this off? How?

Viewing 1 replies (of 1 total)
  • Hi @locker17,

    To begin with, the Astra_Theme_Background_Updater->test_cron() function checks whether WordPress can run background tasks like cron jobs, such as updating the theme. When it says “Gets the current cron status,” it’s testing if the system that handles these scheduled tasks is functioning correctly.

    The “unauthorized” error you’re seeing typically happens when something is blocking these background tasks on your server. This could be due to security plugins, firewall settings, or specific server configurations that prevent WordPress from running these automatic updates.

    While I wouldn’t recommend disabling the updater, as it’s important for backward compatibility and smooth updates, here are a couple of ways to resolve the error:

    1. If you’re using Cloudflare or another firewall, make sure that requests to wp-cron.php are allowed.
    2. You can also update your .htaccess file or add credentials to the wp_remote_post call to allow requests to wp-cron.php.

    Let me know if this helps, or if you need further assistance!

    Kind regards,
    Aradhy

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.