Custom Fields
Re-Envisioned
Support MB Custom Post Type Error after asign category to custom post type

This topic contains 3 replies, has 2 voices, and was last updated by  Anh Tran 5 months, 3 weeks ago.

  • Creator
    Topic
  • #11177
    Resolved
    dan@brandzu.com.au
    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #11184

    dan@brandzu.com.au
    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
    Participant
    #11187

    Anh 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 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.