Fatal Error

Support MB Frontend Submission Fatal Error

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #32887
    shmaltzshmaltz
    Participant

    I got this error when trying to save a post on the frontend:

    [28-Dec-2021 02:27:20 UTC] PHP Fatal error:  Uncaught Error: Cannot use object of type WP_Error as array in /htdocs/wp-content/plugins/meta-box/inc/fields/taxonomy.php:219
    Stack trace:
    #0 /htdocs/wp-content/plugins/meta-box/inc/fields/taxonomy.php(180): RWMB_Taxonomy_Field::add_term()
    #1 /htdocs/wp-content/plugins/meta-box/inc/field.php(576): RWMB_Taxonomy_Field::value()
    #2 /htdocs/wp-content/plugins/meta-box/inc/field.php(247): RWMB_Field::call()
    #3 /htdocs/wp-content/plugins/meta-box/inc/meta-box.php(307): RWMB_Field::process_value()
    #4 [internal function]: RW_Meta_Box->save_field()
    #5 /htdocs/wp-content/plugins/meta-box/inc/meta-box.php(290): array_map()
    #6 /htdocs/wp-includes/class-wp-hook.php(305): RW_Meta_Box->save_post()
    #7 /htdocs/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #8 /htdocs/wp-includes/plugin.php(470): WP_Hook->do_action()
    #9 /var/w in /htdocs/wp-content/plugins/meta-box/inc/fields/taxonomy.php on line 219
    #32893
    Long NguyenLong Nguyen
    Moderator

    Hi,

    It looks like you create a new term when submitting a post on the front end but I do not see that issue on my site. Can you please deactivate all plugins except Meta Box, MB extensions and switch to the standard theme of WordPress then re-check this issue?

    #33775
    shmaltzshmaltz
    Participant

    This error happens when
    1. Creating a new term when submitting post on frontend, AND
    2. Photo is uploaded to post featured image.

    #33809
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Can you please share a screen record of the issue? And the code that creates the fields on your site. You can also try again with a fresh WP install to prevent any conflict settings/data.

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