Post going into Draft status
-
Hi there.
I’ve been noticing lately that republished posts are getting stuck in “Draft” status instead of properly updating the public date.
Is this just me or a known issue?
-
If they’re republished how would they be drafts?
Check Debug mode and see what the messages are next run.No, I’ve set the following options:
“If checked, the oldest published posts will be recycled if there are no eligible posts. “
…and…
“If checked, recycled posts will be re-saved as “publish” to trigger any hooks. If not, only the post date is changed to NOW.”
Here is the most recent log events:
2019-01-14 20:45:50 - DEBUG: aps_auto_post_hook triggered, looking for eligible posts... 2019-01-14 20:45:50 - DEBUG: no eligible posts, entering Recycle Posts Mode. 2019-01-14 20:45:50 - DEBUG: recycle posts WP_Query Array ( [posts_per_page] => 1 [cat] => 20,24,21,22,27,23,25,26,1,7,6,16,19,11,17,9,12,13,15,18,14 [author] => 6 [post_type] => Array ( [0] => post ) [ignore_sticky_posts] => 1 [order] => ASC [date_query] => Array ( [before] => 1 days ago ) [post_status] => publish [orderby] => post_date ) 2019-01-14 20:45:50 - DEBUG: found 1 results. 2019-01-14 20:45:50 - DEBUG: processing post Mejores Cargadores Solares PortátilesThere are no errors in the log entries (infact it looks like it worked fine going by the logs above) but the published post goes into DRAFT status everytime instead.
This has been happening on numerous sites over the past few months but this is the first time I’ve had a chance to report it. I have previously been disabling the plugin to stop my published posts becoming drafts because of it.
I used to work great.
The log events don’t show what happens next after it found the 1 result.
Please post the next few lines so we know.
Basically every log entry at the same time, until the next trigger.
The logged DEBUG events should explain what happened.This is the full debug info:
2019-01-14 20:45:50 - DEBUG: aps_auto_post_hook triggered, looking for eligible posts... 2019-01-14 20:45:50 - DEBUG: no eligible posts, entering Recycle Posts Mode. 2019-01-14 20:45:50 - DEBUG: recycle posts WP_Query Array ( [posts_per_page] => 1 [cat] => 20,24,21,22,27,23,25,26,1,7,6,16,19,11,17,9,12,13,15,18,14 [author] => 6 [post_type] => Array ( [0] => post ) [ignore_sticky_posts] => 1 [order] => ASC [date_query] => Array ( [before] => 1 days ago ) [post_status] => publish [orderby] => post_date ) 2019-01-14 20:45:50 - DEBUG: found 1 results. 2019-01-14 20:45:50 - DEBUG: processing post Mejores Cargadores Solares PortátilesHmm the next event should be a call to wp_update_post and then the DEBUG log reports success or failure. If that didn’t happen, then check your server logs for that time to see if there was a non-recoverable error.
I can’t be bothered to look into this any further.
The only thing I have noticed is that this problem happens on all WP Multisite sub-sites but the plugin works fine on standard WP sites.
That’s kind of an important piece of information.
APS is not coded for multisite.
The topic ‘Post going into Draft status’ is closed to new replies.