• Custom post type was created correctly and the issue starts when trying to do a delete. ie: There are 5 movies(custom post type) in the trash can. I hit “Empty Trash” button, and the error message of “Invalid Post Type” shows up.

    However, I can delete each movie individually, by hitting “Delete Permanently”. Just can NOT use “empty trash” button, where you delete all movies at once.

    This was working from 4.01 – 4.1.3. Not working 4.2 and later.

Viewing 7 replies - 1 through 7 (of 7 total)
  • I get the same “Invalid post type” message when using the search bar on the upper right side of the “Posts” page. The first search works well, but if I change the search terms and click “Search Posts” again, then I get the blank screen with the “Invalid post type” error message. This problem also occurs with “Pages” and WooCommerce searches as well.

    Is anyone else having this problem?

    Thread Starter Alan.W

    (@alanw-1)

    Anyone else with similar “Invalid post type” message? I am surprise not more people is reporting this issue. I can reproduce the problem easily with a fresh install of 4.2 and adding a new post type.

    Thread Starter Alan.W

    (@alanw-1)

    Additional information:
    When I try “Empty Trash” on a custom post type, then the “Invalid Post Type” message shows up. The URL is below:

    https://xxxxxxxxx.com/wp-admin/edit.php?s=&post_status=trash&post_type=Array&_wpnonce=692d2ee3e5&_wp_http_referer=%2Fwp-admin%2Fedit.php%3Fpost_status%3Dtrash%26post_type%3Dbattery&action=-1&m=0&delete_all=Empty+Trash&paged=1&mode=list&action2=-1

    If you look closely, the argument “post_type=Array” is the problem. Did the code change from a string to Array?

    Please simply clear your browsers. Really.

    Thread Starter Alan.W

    (@alanw-1)

    Thanks for the reply, Pioneer. But why would clearing the browser help? You think this is cause by a cookie or old url??

    You think this is cause by a cookie or old url??

    Minimally, yes.

    Doesn’t work for me.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Custom Post Type not working after upgrading to 4.2’ is closed to new replies.