• Resolved mtarr

    (@mtarr)


    I’ve been using PPR successfully to schedule updates, but I recently moved to dedicated WordPress hosting, and yesterday’s scheduled update didn’t happen, and the plug-in then failed to allow me to set up any schedule revision. When I investigated, PublishPress Revisions Settings gave the message “Scheduled Revisions are not available because WP-Cron is disabled on this site.”

    My host advised that “wp_cron is enabled on the hosting despite the plugin saying it isn’t – it’s enabled at a deeper level on the server, but disabled in the wp-config.php file which is why the plugin thinks it’s off. Other crons are working fine.” They suggest that the plugin might be manually checking the wp-config.php to see if WP_CRON is enabled or not and outright stopping it from working if not.

    The linked page explains the problem in more detail.

    Any ideas how I might get round this?

    • This topic was modified 2 years, 6 months ago by mtarr.
    • This topic was modified 2 years, 6 months ago by mtarr. Reason: added internal link

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    Hi @mtarr

    Can you try check your wp-config.php file and see if you find something like this:
    define(‘DISABLE_WP_CRON’, true);

    If yes, change the value from true to false.

    Thanks,

    Thread Starter mtarr

    (@mtarr)

    Thanks for the idea, Riza. I’ll pass it to the host technical support guy — with the new hosting arrangement I can’t get access to the file!

    Thread Starter mtarr

    (@mtarr)

    Reply from my host:

    “Per our previous discussion, this *is* in place, but it’s enabled deeper on the server. This is set here to prevent users from making changes to this as we rely on wp_cron internally to make sure certain things are working, such as cache clearing and WordPress auto-updating.

    “So in essence, whilst that does exist in wp-config.php, wp_cron is enabled anyway and as such they shouldn’t outright stop their plugin from working just because it has that in the wp-config.php.”

    IOW, it seems as if I’ll have to change hosting platform or stop using the plug-in. Not a happy bunny!

    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    If you take a look at Revisions > Settings > Scheduled Revisions, there is a setting labeled “Use WP-Cron scheduling.”

    You can try disabling that, nothing the disclaimer that the alternate scheduling mechanism will not work on all sites. We had a lot of conflicts with object caching plugins; that’s why we went to WP-Cron.

    Plugin Author Kevin Behrens

    (@kevinb)

    @mtarr Since your host is actually using the WP-Cron queue with its own triggering mechanism, you can re-enable that solution by adding the following code snippet to your theme’s functions.php (or an equivalent code module you maintain):

    add_filter('revisionary_wp_cron_disabled', function($cron_disabled) { return false; });

    Can you ask your host if they provide some flag by which a plugin could detect this WP-Cron implementation?

    Thread Starter mtarr

    (@mtarr)

    Thanks for the idea, Riza, but I’d already tried that.

    Problem with your idea, Kevin, is that I don’t have access to edit functions.php.

    To resolve a PHP version problems, 34sp.com had moved me to their dedicated WordPress hosting package, which is designed for security, and has proved a pain. Not only does PublishPress not work as intended, but earlier today I found a problem with My Calendar … I had two sites with a common calendar, with one calling up the other’s database. I was told this was explicitly disallowed, though there might be a complicated workround.

    At that stage I pulled the plug, and asked them to go back to their original hosting package. They’ve done that, the DNS has re-pointed successfully, and all the plug-ins now work.

    I’m closing this thread, but I’ll leave my problem page around in case it helps others.

    Thanks for all your input.

    • This reply was modified 2 years, 6 months ago by mtarr.
    Plugin Author Kevin Behrens

    (@kevinb)

    @mtarr Please update to Revisions 3.1.6, which we released this afternoon. It includes an accommodation for your WP-Cron usage. Go to Revisions > Settings > Scheduled Revisions and ensure “Site uses a custom trigger for WP-Cron tasks” is checked.

    Thread Starter mtarr

    (@mtarr)

    Thanks, Kevin … as I said in my email reply an hour before you wrote “At that stage I pulled the plug, and asked them to go back to their original hosting package. They’ve done that, the DNS has re-pointed successfully, and all the plug-ins now work.”

    I’ve sent your information to 34sp, so that they know for next time someone has a problem that PublishPress can be made to work, but the solution came too late for me. My decision to revert was confirmed by the fact that I had discovered a problem with another plug-in that was caused by the greater security settings on the dedicated WP hosting.

    Well done for sorting the problem, though. Much appreciated, and gives a good feeling about the product, which I’m obviously still using, though in a different hosting environment.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WP-Cron issue with PublishPress Revisions’ is closed to new replies.