I am having the same issue as well with posts not expiring.
Just tried installing with the latest version on WordPress 5.6.2, and the post/page did not expire on testing.
-
This reply was modified 5 years, 3 months ago by
sebtlee.
Adding the following to my .htaccess file fixed my issue with posts not expiring:
# Exclude the WP CRON and other scripts from authentication
<FilesMatch “(wp-cron.php|another-script.php)$”>
Satisfy Any
Order allow,deny
Allow from all
Deny from none
</FilesMatch>
@sebtlee, I have used your solution but did not work. Do you have any suggestion?
Hi @axelseaa can you help with this. Your plugin is great. I have it installed on about 30 of my client’s sites, but now none work.
@nazmulhassann20 –
Hmm, that did the trick for me. Not sure I know enough about CRON jobs and hosting to help but…
You could try installing a plugin like ‘WP Control’ to see what’s happening with your CRON jobs.
The only other thing I use is a plugin called “Scheduled Post Trigger’, so if WordPress fails to execute a CRON job, the next time someone loads a page on your website it checks to see if there are any failed CRON jobs and tries to run them again.
Have the same issue. Seems to be a Gutenberg issue. My custom posts, which do not utilize Gutenberg, work just fine.
Have noticed posts created with the Gutenberg editor are not being added to the Diagnostics table even though the debug log indicates it is scheduled and then processed after the specific date/time has passed.
Also noticed that if I go to the post list, click the quick edit link, and update the post, it is then added to the Diagnostic table and the post expire properly.
Anyone have any ideas?
version 5.3 is for normal use, since I have updated wordpress to 5.7.1 it no longer works
Hi @sanhpv
Try going to Post Expirator > Diagostics. If an expiration is set, you will see an entry for “postExpiratorExpire”.
You can also check your cron with a plugin such as “WP Crontrol”: https://ww.wp.xz.cn/plugins/wp-crontrol/. If an expiration is set, that plugin will show a hook called “postExpiratorExpire” that is counting down to your expiry date.
Closing after 2 weeks with no response.
Please feel free to follow up in a new support ticket if this is still an issue.