Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong warning: The WordPress CRON jobs system is disabled. #25477

Open
mahnunchik opened this issue Apr 6, 2020 · 14 comments
Open

Wrong warning: The WordPress CRON jobs system is disabled. #25477

mahnunchik opened this issue Apr 6, 2020 · 14 comments
Labels
[Plugin] Super Cache A fast caching plugin for WordPress. [Type] Bug When a feature is broken and / or not performing as intended

Comments

@mahnunchik
Copy link

I've faced with incorrect warning:

The WordPress CRON jobs system is disabled. This means the garbage collection system will not work unless you run the CRON system manually.

Yep, the variable DISABLE_WP_CRON set to true. But cron works through system cron https://developer.wordpress.org/plugins/cron/hooking-wp-cron-into-the-system-task-scheduler/#macos-and-linux

How to remove incorrect warning?

@mahnunchik
Copy link
Author

Hi @donnchawp How to hide incorrect warning?

@donnchawp
Copy link
Contributor

I think the warning should stay but it should be possible to dismiss it. Some users will have hosts that have the cron system disabled entirely and they'll wonder why garbage collection isn't working.

On the other hand, if it's dismissable, the user may forget that cron is disabled and wonder why their garbage collection has stopped working.

@mahnunchik
Copy link
Author

For example I have system cron set up: https://developer.wordpress.org/plugins/cron/hooking-wp-cron-into-the-system-task-scheduler/

It requires to set: define('DISABLE_WP_CRON', true);

@d19dotca
Copy link

d19dotca commented Mar 27, 2021

@donnchawp said:

I think the warning should stay but it should be possible to dismiss it.

It is not dismissible yet, unfortunately. I am in the same boat, WP cron is disabled but I have system crons running instead for improved performance. This error reported by Super Cache is misleading.

image

@d-packs
Copy link

d-packs commented May 25, 2022

I recommend adding a checkbox in the plugin settings "This site is using real cron in conjunction with define('DISABLE_WP_CRON', true), please disable the CRON warning". This would show consideration towards your power users.

@kraftbj kraftbj added the [Plugin] Super Cache A fast caching plugin for WordPress. label Aug 12, 2022
@kraftbj kraftbj transferred this issue from Automattic/wp-super-cache Aug 12, 2022
@mahnunchik
Copy link
Author

Any news?

@d-packs
Copy link

d-packs commented Aug 13, 2022

This issue has nothing to do with Super Cache. However if moving it to this component solves it faster I'm game.

@jeherve jeherve added the [Type] Bug When a feature is broken and / or not performing as intended label Aug 15, 2022
@JeffBurris
Copy link

JeffBurris commented Sep 3, 2022

This issue has nothing to do with Super Cache. However if moving it to this component solves it faster I'm game.

Well for me it has a bit to do with Super Cache because I never get the error until I install Super Cache on any site. I suppose you're saying all Super Cache is doing to expose it is implementing garbage cleanup, thereby exposing an erroneous error inherent in Wordpress? I've used another caching plugin with garbage cleanup and not noticed the error (but I need to do free now) , so does that suggest they had solved it on a plugin level, as might W Super Cache?

@gaswirth
Copy link

This issue only occurs for me when using Super Cache. In fact, the only place the error string appears (The WordPress CRON jobs system is disabled. This means the garbage collection system will not work unless you run the CRON system manually.) is in Super Cache's main wp-cache.php plugin file. We, too, are using a system CRON setup for performance, and our client thinks there's something wrong with her site, where it's just this erroneous error.

@d-packs
Copy link

d-packs commented Jan 20, 2023

I suppose you're saying all Super Cache is doing to expose it is implementing garbage cleanup

I'm saying I experienced the issue without having SuperCache installed. I'm not using that plugin at all.

@JeffBurris
Copy link

JeffBurris commented Jan 22, 2023 via email

@jeherve
Copy link
Member

jeherve commented Jan 23, 2023

@JeffBurris When you comment on a GitHub issue, you are automatically subscribed to all updates on that issue. If you'd rather not receive updates for each comment here, I would recommend clicking on the "Unsubscribe" button in the sidebar of the issue page.

@boltronics
Copy link

I don't think we even need to go so far as to have a checkbox in the plugin (although I wouldn't complain if such a thing existed). I think just having the user set another variable similar to DISABLE_WP_CRON would be sufficient. eg. having something likeOS_CRON_CONFIGURED manually set to true by the administrator.

This way, it's a trivial matter of adding a single if statement to wp-cache.php, which would hopefully allow this issue to be resolved very quickly.

@madalinignisca
Copy link

Would be wonderful if this warning can be turned off by a constant for all of us which run the cron from the system cron (I use wp-cli on linux system cron for example for this).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Plugin] Super Cache A fast caching plugin for WordPress. [Type] Bug When a feature is broken and / or not performing as intended
Projects
None yet
Development

No branches or pull requests

10 participants