Troubleshooting in PublishPress Future

If your posts are not being unpublished at the correct time, this guide will help. Please follow through all the steps to check that your site is ready to unpublish content on schedule.


Step #1. Disable all caching plugins and options

Caching plugins and services and the most common cause of problems with PublishPress Future. If posts are not expiring correctly, please test your site with all caching layers disabled.


Step #2. Are your cron jobs working?

PublishPress Future relies on cron jobs to unpublish your content. This post has technical details on how it works.

  • Using WP Cron? Go to “Future” in your WordPress admin menu and then clicking the “Diagnostics” tab. You will see a green check mark if WP Cron is enabled.
  • Using a server-level cron job? Please check with your hosting company if you are using cron jobs on your server.
  • Check your site's wp-config.php file. Some developers and hosting companies add lines that will disable cron on your site. For example: define(‘DISABLE_WP_CRON’, true);

Step #3. Are cron tasks being created?

Next, check your cron tasks. PublishPress Future will show whether or not a cron job has been successfully set up for your posts to expire. In the image below, “Cron event scheduled” means that everything is working correctly.

Cron Scheduled
Cron Scheduled

You can confirm this by going to “Future” in your WordPress admin menu and then clicking the “Diagnostics” tab. If you do not see an event called postExpiratorExpire then your unpublishing has not been scheduled correctly.

Cron Schedule
Cron Schedule

Step #4. Check your debug logs

PublishPress Future also has a debug option. Go to Future > Diagnostics and click “Enable Debugging”. After you have done that, you will see the logs under Future > View Debug Logs.

Is the information in those logs correct? These logs can be read by non-technical users. For example, the first line in that image shows that a post with the ID of “10” is set to “delete” on “Fri, 03 Sep 2021”.

Debug Log
Debug Log

Professional publishing plugins for WordPress! Get PublishPress