[Resolved] WP Cron Schedule Issues after the theme change

Home Forums Support [Resolved] WP Cron Schedule Issues after the theme change

Home Forums Support WP Cron Schedule Issues after the theme change

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #1782607
    HT

    I have contacted hosting support for wp-config.php?

    It is disabled with a PHP constant in the wp-config.php file.

    Error: The DISABLE_WP_CRON constant is set to true. WP-Cron spawning is disabled.

    I have enabled cron jobs from wp-config.php.

    But now it’s giving 403 error šŸ™ and it seems this is not that siteground can help “The 403 response means that something is blocking the WordPress cron from being spawned”.

    Use the same security plugins and .htaccess files for other websites as well without any issue. This issue started with a new theme as I mentioned in the subject.
    Any tips?

    #1783535
    Leo
    Staff
    Customer Support

    Hi there,

    The theme itself should not have any control over this at all.

    Do you get the same issue with a Twenty series WP theme?

    #1783544
    HT

    I didn’t have this issue with other websites (I use the same plugins + .htacess file + the same server (hosting)) but
    Using different themes.

    It’s a bit confusing

    #1784818
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    GP doesn’t use DISABLE_WP_CRON anywhere in its code.

    Maybe a custom function in a child theme? Custom code snippet? Could be another plugin as well possibly.

    #1786379
    HT

    Thank you. I see define('DISABLE_WP_CRON', true); in wp-config.php but it’s not available in other themes which I use.

    #1786416
    Leo
    Staff
    Customer Support

    wp-config.php is not a theme file – it’s located in the wp-includes folder so it’s a WordPress file that comes with your WordPress installation:
    https://wordpress.org/support/article/editing-wp-config-php/
    https://www.wpbeginner.com/beginners-guide/how-to-edit-wp-config-php-file-in-wordpress/

    #1786424
    HT

    I know how to edit the file etc. But my question is the theme never injects some settings into wp-config.php file at all.

    #1786432
    Leo
    Staff
    Customer Support

    No – GP doesn’t use DISABLE_WP_CRON anywhere in its code as Tom mentioned.

    You can check/search the theme file here:
    https://github.com/tomusborne/generatepress

    #1786443
    HT

    Thank you much. Does this mean Theme never interacts with core WordPress files to schedule cron events etc?

    #1786449
    Leo
    Staff
    Customer Support

    I can’t say for other themes but GP doesn’t. I don’t think other themes should either.

    #1786450
    HT

    Well, that is interesting, then how the WordPress cron events are triggered for the GeneratePress theme?

    #1786495
    Leo
    Staff
    Customer Support

    I don’t think the WordPress cron events are related to the theme.

    #1786575
    HT

    I got you. But I thought the theme uses Worpress cron to schedule some tasks. Is that not true?

    #1786595
    Elvin
    Staff
    Customer Support

    Hi Anoop,

    I got you. But I thought the theme uses Worpress cron to schedule some tasks. Is that not true?

    While it’s possible that some themes do have that feature, GeneratePress mainly focuses on styling how your site looks.

    If you check the theme files you’ll find that the contents are mostly page templates, front-end scripts, and stylesheets. (the rest are hooks to add in menu items to dashboard.)

    #1786597
    HT

    OK thank you.

    Maybe a stupid question – How the Themes auto-update is triggered without any hook to Worpress core files?

Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.