Title: Posts not Drafting
Last modified: June 20, 2022

---

# Posts not Drafting

 *  Resolved [bwlazlo](https://wordpress.org/support/users/bwlazlo/)
 * (@bwlazlo)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/posts-not-drafting/)
 * Hello – I use your plug-in 30 plus sites but am running into a problem on 2 of
   them. On one site I’m running v.2.7.3 and it is working fine. I was running the
   latest version 2.7.6 when I was alerted to the problem.
 * We use the plug-in on a custom post type. I enabled the logs (screenshot [here](https://drive.google.com/file/d/1LabRajEeWt6BUe0BzhhVW-dCtXstX_ME/view?usp=sharing))
   but after firing the post is still Published (screenshot [here](https://drive.google.com/file/d/1JYsev8xHojGtm1evN7spudxHmgmwTGzV/view?usp=sharing))
 * Any suggestions on a solution?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [bwlazlo](https://wordpress.org/support/users/bwlazlo/)
 * (@bwlazlo)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/posts-not-drafting/#post-15754134)
 * EDIT:
 * I am now noticing this error in my logs:
    `wordpress_1 | [Mon Jun 20 20:10:45.307306
   2022] [php7:warn] [pid 35] [client 172.23.0.1:59486] PHP Warning: Invalid argument
   supplied for foreach() in /var/www/html/wp-admin/includes/plugin.php on line 
   1779, referer: http://localhost:8082/wp-admin/edit.php?post_type=event-custom`
 * and here is the specific function from that file:
 *     ```
       function remove_menu_page( $menu_slug ) {
       	global $menu;
   
       	foreach ( $menu as $i => $item ) {
       		if ( $menu_slug === $item[2] ) {
       			unset( $menu[ $i ] );
       			return $item;
       		}
       	}
   
       	return false;
       }
       ```
   
 *  Plugin Author [andergmartins](https://wordpress.org/support/users/andergmartins/)
 * (@andergmartins)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/posts-not-drafting/#post-15762154)
 * Hi [@bwlazlo](https://wordpress.org/support/users/bwlazlo/), I was checking and
   those error messages in the log might not be related to our plugin, or to the
   issue you reported.
 * Regarding the posts not expiring, please could you check if there are any cron
   event waiting to run for those posts?
 *  Thread Starter [bwlazlo](https://wordpress.org/support/users/bwlazlo/)
 * (@bwlazlo)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/posts-not-drafting/#post-15762391)
 * [@andergmartins](https://wordpress.org/support/users/andergmartins/) thanks for
   the reply and the suggestion to check cron events. While I didn’t see any errors
   with cron I did figure out that v2.7.5 of the plug-in was buggy with our custom
   theme.
 * We’ve had success with a slightly older version so calling it a win.
 * Thanks for the assistance.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Posts not Drafting’ is closed to new replies.

 * ![](https://ps.w.org/post-expirator/assets/icon-256x256.png?rev=3118683)
 * [Schedule Post Changes With PublishPress Future: Unpublish, Delete, Change Status, Trash, Change Categories](https://wordpress.org/plugins/post-expirator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-expirator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-expirator/)
 * [Active Topics](https://wordpress.org/support/plugin/post-expirator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-expirator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-expirator/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [bwlazlo](https://wordpress.org/support/users/bwlazlo/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/posts-not-drafting/#post-15762391)
 * Status: resolved