- This topic has 15 replies, 4 voices, and was last updated 4 years, 3 months ago by
Leo.
-
AuthorPosts
-
May 16, 2021 at 5:15 am #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?May 16, 2021 at 7:23 pm #1783535Leo
StaffCustomer SupportHi 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?
May 16, 2021 at 7:38 pm #1783544HT
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
May 17, 2021 at 8:06 am #1784818Tom
Lead DeveloperLead DeveloperHi 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.
May 17, 2021 at 5:52 pm #1786379HT
Thank you. I see
define('DISABLE_WP_CRON', true);
in wp-config.php but it’s not available in other themes which I use.May 17, 2021 at 6:16 pm #1786416Leo
StaffCustomer Supportwp-config.php
is not a theme file – it’s located in thewp-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/May 17, 2021 at 6:23 pm #1786424HT
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.May 17, 2021 at 6:26 pm #1786432Leo
StaffCustomer SupportNo – 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/generatepressMay 17, 2021 at 6:29 pm #1786443HT
Thank you much. Does this mean Theme never interacts with core WordPress files to schedule cron events etc?
May 17, 2021 at 6:31 pm #1786449Leo
StaffCustomer SupportI can’t say for other themes but GP doesn’t. I don’t think other themes should either.
May 17, 2021 at 6:34 pm #1786450HT
Well, that is interesting, then how the WordPress cron events are triggered for the GeneratePress theme?
May 17, 2021 at 7:23 pm #1786495Leo
StaffCustomer SupportI don’t think the WordPress cron events are related to the theme.
May 17, 2021 at 8:47 pm #1786575HT
I got you. But I thought the theme uses Worpress cron to schedule some tasks. Is that not true?
May 17, 2021 at 9:12 pm #1786595Elvin
StaffCustomer SupportHi 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.)
May 17, 2021 at 9:18 pm #1786597HT
OK thank you.
Maybe a stupid question – How the Themes auto-update is triggered without any hook to Worpress core files?
-
AuthorPosts
- You must be logged in to reply to this topic.