Error after asign category to custom post type

Support MB Custom Post Type Error after asign category to custom post typeResolved

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #11177
    dan@brandzu.com.au[email protected]
    Participant

    Hi there,
    I created Custom post type using metabox, But I didn't assign category to it yet..
    So I get back to Meta Box > Post type to add category ability..
    But after I set the category it's show error (screnshot: https://prnt.sc/kokxqf) and all my post are disappear..
    Not only the post in custom post type, but all post..
    We have updated metabox plugin but it didn't help..
    Please help..

    Thank you

    #11184
    dan@brandzu.com.au[email protected]
    Participant

    I turned on wp debug and I got this message:
    Warning: strip_tags() expects parameter 1 to be string, array given in /public_html/wp-includes/formatting.php on line 1981

    Notice: Trying to get property of non-object in /public_html/wp-includes/class-wp-query.php on line 3871

    Notice: Trying to get property of non-object in /public_html/wp-content/plugins/bb-theme-builder/classes/class-fl-theme-builder-rules-location.php on line 143

    Notice: Trying to get property of non-object in /public_html/wp-includes/class-wp-query.php on line 3871

    #11185
    dan@brandzu.com.au[email protected]
    Participant

    This article might help, but I don't know what to do with that.. https://wordpress.stackexchange.com/questions/84061/php-warning-preg-match-expects-php-warning-strip-tags

    #11187
    Anh TranAnh Tran
    Keymaster

    Hi Dan,

    We have resolved this issue on Meta Box Users group on Facebook. Let me quote here in case anyone needed:

    The CPT you created had some un-rendered labels. So I guess when you created the new CPT and you hit the Save button too fast (probably by press Enter), which makes the JS code hasn't finished rendering all the labels and settings. Thus data saved is incorrect and makes WP doesn't understand.

    I tried to find that post ID (using the export tool of WP), and run a wp_delete_post( ID ) to remove it. Everything goes back.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.