• Resolved bwlazlo

    (@bwlazlo)


    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) but after firing the post is still Published (screenshot here)

    Any suggestions on a solution?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter bwlazlo

    (@bwlazlo)

    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: https://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

    (@andergmartins)

    Hi @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

    (@bwlazlo)

    @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.