Title: Error message
Last modified: December 5, 2022

---

# Error message

 *  Resolved [verbre](https://wordpress.org/support/users/verbre/)
 * (@verbre)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-message-970/)
 * Hello, since the latest version of Metabox (5.6.9) several of my sites are giving
   an error message which disturbs the display of the worpdress admin
 * Warning: The declaration of RWMB_Sidebar_Field::query($field) must be compatible
   with RWMB_Object_Choice_Field::query($meta, $field) in /home/clients/c916262d399c9e1d3018b6634561ccc0/
   sites/imagieprod.com/wp-content/plugins/meta- box /inc/fields/sidebar.php at 
   line 38

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/error-message-970/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-message-970/page/2/?output_format=md)

 *  Plugin Author [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * (@rilwis)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-message-970/#post-16263861)
 * Thanks for your feedback. This bug is [fixed here](https://github.com/wpmetabox/meta-box/commit/037312578b7c9be597737589a98f164a057c39d9)
   and will be available in the new version today.
 *  [drakking](https://wordpress.org/support/users/drakking/)
 * (@drakking)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-message-970/#post-16263961)
 * [@rilwis](https://wordpress.org/support/users/rilwis/)
 * Hi,
 * Update 5.6.10 is not compatible with Metabox AIO.
 * Fatal error: Declaration of MB_Comment_Meta_Box::is_edit_screen($screen = null)
   must be compatible with RW_Meta_Box::is_edit_screen($screen = null): bool in ************************/
   wp-content/plugins/meta-box-aio/vendor/meta-box/mb-comment-meta/inc/class-mb-
   comment-meta-box.php on line 37
 *  [chiefbrody2001](https://wordpress.org/support/users/chiefbrody2001/)
 * (@chiefbrody2001)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-message-970/#post-16264004)
 * Had same issue as drakking mentions above.
 *  Plugin Author [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * (@rilwis)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-message-970/#post-16264058)
 * It’s fixed in the latest version. Please update.
 *  [philbgs](https://wordpress.org/support/users/philbgs/)
 * (@philbgs)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-message-970/#post-16264526)
 * Website is working fine after last update, but still receiving fatal error to
   access WordPress plateform.
 *  Thread Starter [verbre](https://wordpress.org/support/users/verbre/)
 * (@verbre)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-message-970/#post-16264593)
 * The version 5.6.11 have a fatal error :
 * `Fatal error: Uncaught TypeError: Return value of RWMB_Update_Option::get_api_key()
   must be of the type string, null returned in /home/clients/250d932eb38e3315e188024ff2c4dec1/
   web/wp-content/plugins/meta-box/inc/update/option.php:28 Stack trace: #0 /home/
   clients/250d932eb38e3315e188024ff2c4dec1/web/wp-content/plugins/meta-box/inc/
   update/checker.php(135): RWMB_Update_Option->get_api_key() #1 /home/clients/250d932eb38e3315e188024ff2c4dec1/
   web/wp-content/plugins/meta-box/inc/update/checker.php(83): RWMB_Update_Checker-
   >request('plugins') #2 /home/clients/250d932eb38e3315e188024ff2c4dec1/web/wp-
   includes/class-wp-hook.php(310): RWMB_Update_Checker->check_updates(Object(stdClass))#
   3 /home/clients/250d932eb38e3315e188024ff2c4dec1/web/wp-includes/plugin.php(205):
   WP_Hook->apply_filters(Object(stdClass), Array) #4 /home/clients/250d932eb38e3315e188024ff2c4dec1/
   web/wp-includes/option.php(2018): apply_filters('pre_set_site_tr...', Object(
   stdClass), 'update_plugins') #5 /home/clients/250d932eb38e3315e188024ff2c4dec1/
   web/wp-includes/u in /home/clients/250d932eb38e3315e188024ff2c4dec1/web/wp-content/
   plugins/meta-box/inc/update/option.php on line 28`
 *  Thread Starter [verbre](https://wordpress.org/support/users/verbre/)
 * (@verbre)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-message-970/#post-16264600)
 * And with php8 wordpress crash with this error
 *  Plugin Author [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * (@rilwis)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-message-970/#post-16264666)
 * Hi [@verbre](https://wordpress.org/support/users/verbre/) ,
 * Can you please try [this fix](https://github.com/wpmetabox/meta-box/commit/ec9c052b54b86c5069d0a63fc541f3310c560dc7)?
 *  [philbgs](https://wordpress.org/support/users/philbgs/)
 * (@philbgs)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-message-970/#post-16264716)
 * Same issue with the fix, Tran.
 *  Thread Starter [verbre](https://wordpress.org/support/users/verbre/)
 * (@verbre)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-message-970/#post-16264869)
 * Hi Tran Ngoc Tuan Anh
 * with the fix its ok (php 7.4 and php8)
 * ajout `, ''` line 28
 *  Thread Starter [verbre](https://wordpress.org/support/users/verbre/)
 * (@verbre)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-message-970/#post-16264878)
 * [@philbgs](https://wordpress.org/support/users/philbgs/)
 * be careful, check that you have correctly entered ‘x2 and not ” because I made
   a mistake in my entry and correctly entered it is ok for my sites
    -  This reply was modified 3 years, 4 months ago by [verbre](https://wordpress.org/support/users/verbre/).
    -  This reply was modified 3 years, 4 months ago by [verbre](https://wordpress.org/support/users/verbre/).
 *  [philbgs](https://wordpress.org/support/users/philbgs/)
 * (@philbgs)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-message-970/#post-16264917)
 * Thank you Verbre, but I did a copy/paste
    return defined( ‘META_BOX_KEY’ ) ? 
   META_BOX_KEY : $this->get( ‘api_key’, ” );
 * .. and it’s still not working. The only way for the backend and website to work
   is removing the plugin.
 *  Thread Starter [verbre](https://wordpress.org/support/users/verbre/)
 * (@verbre)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-message-970/#post-16264996)
 * [@philbgs](https://wordpress.org/support/users/philbgs/)
    because with a copy
   paste the ‘ ‘ turns into “
    -  This reply was modified 3 years, 4 months ago by [verbre](https://wordpress.org/support/users/verbre/).
 *  [philbgs](https://wordpress.org/support/users/philbgs/)
 * (@philbgs)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-message-970/#post-16265082)
 * I’ve tried both of them
    return defined( ‘META_BOX_KEY’ ) ? META_BOX_KEY : $this-
   >get( ‘api_key’, ” ); return defined( ‘META_BOX_KEY’ ) ? META_BOX_KEY : $this-
   >get( ‘api_key’, ” );
 * … same thing, same critical error.
 *  [philbgs](https://wordpress.org/support/users/philbgs/)
 * (@philbgs)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-message-970/#post-16265099)
 * I mean the second one with 2x ‘

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/error-message-970/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-message-970/page/2/?output_format=md)

The topic ‘Error message’ is closed to new replies.

 * ![](https://ps.w.org/meta-box/assets/icon-128x128.png?rev=1100915)
 * [Meta Box](https://wordpress.org/plugins/meta-box/)
 * [Support Threads](https://wordpress.org/support/plugin/meta-box/)
 * [Active Topics](https://wordpress.org/support/plugin/meta-box/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/meta-box/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/meta-box/reviews/)

## Tags

 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 17 replies
 * 6 participants
 * Last reply from: [Kuratorium Oświaty w Olsztynie](https://wordpress.org/support/users/koolsztyn/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/error-message-970/page/2/#post-16710068)
 * Status: resolved