Site logo

Archived topic

WP Cron Schedule Issues after the theme change

15 replies · Started by HT on May 16, 2021

Viewing posts 1–15 of 16

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?

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?

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

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.

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

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.

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

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

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

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

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

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.)

OK thank you.

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

This archived topic is closed to new replies.