Support Forum
Support › Meta Box AIO › Critical error when updating to latest version of Meta Box AIO
Hi there,
An error occurs when updating to the latest version of Meta Box AIO (website crashes too). Just confirming the main Meta Box plugin is also up to date.
Please see error below - thanks!
Fatal error: Uncaught TypeError: RWMB_Meta_Box_Registry::make(): Argument #1 ($settings) must be of type array, string given, called in /Applications/XAMPP/xamppfiles/htdocs/firesmartbc.ca/wp-content/plugins/meta-box/inc/core.php on line 29 and defined in /Applications/XAMPP/xamppfiles/htdocs/firesmartbc.ca/wp-content/plugins/meta-box/inc/meta-box-registry.php:16 Stack trace: #0 /Applications/XAMPP/xamppfiles/htdocs/firesmartbc.ca/wp-content/plugins/meta-box/inc/core.php(29): RWMB_Meta_Box_Registry->make('About Us') #1 /Applications/XAMPP/xamppfiles/htdocs/firesmartbc.ca/wp-includes/class-wp-hook.php(308): RWMB_Core->register_meta_boxes('') #2 /Applications/XAMPP/xamppfiles/htdocs/firesmartbc.ca/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #3 /Applications/XAMPP/xamppfiles/htdocs/firesmartbc.ca/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /Applications/XAMPP/xamppfiles/htdocs/firesmartbc.ca/wp-settings.php(617): do_action('init') #5 /Applications/XAMPP/xamppfiles/htdocs/firesmartbc.ca/wp-config.php(98): require_once('/Applications/X...') #6 /Applications/XAMPP/xamppfiles/htdocs/firesmartbc.ca/wp-load.php(50): require_once('/Applications/X...') #7 /Applications/XAMPP/xamppfiles/htdocs/firesmartbc.ca/wp-admin/admin.php(34): require_once('/Applications/X...') #8 /Applications/XAMPP/xamppfiles/htdocs/firesmartbc.ca/wp-admin/plugins.php(10): require_once('/Applications/X...') #9 {main} thrown in /Applications/XAMPP/xamppfiles/htdocs/firesmartbc.ca/wp-content/plugins/meta-box/inc/meta-box-registry.php on line 16
Hello,
Please edit the file wp-content/plugins/meta-box/inc/meta-box-registry.php
line 16
and replace the code
public function make( array $settings ) {
with this one
public function make( $settings ) {
Let me know how it goes.
Hello, I did that and still get the same error. Cheers
Hello,
I'm not able to reproduce the issue on my demo site. Can you please deactivate all plugins except Meta Box, MB AIO, switch to the standard theme of WordPress (Twenty TwentyTwo) and check this issue again?
If it does not help, please share your site credentials and FTP to this contact form https://metabox.io/contact/
I will take a closer look.
got a critical error when trying to add a new CPT
`Aktuelles Plugin: Meta Box AIO (Version 1.16.7) PHP-Version 7.4.30 Fehler-Details ============== Ein Fehler vom Typ E_ERROR wurde in der Zeile 111 der Datei /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-post-type/src/Edit.php verursacht. Fehlermeldung: Uncaught Error: Class 'RWMB_Update_Option' not found in /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-post-type/src/Edit.php:111 Stack trace: #0 /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-post-type/src/Edit.php(24): MBCPT\Edit->is_premium_user() #1 /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-includes/class-wp-hook.php(310): MBCPT\Edit->register_upgrade_meta_box('mb-post-type') #2 /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #3 /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-admin/includes/meta-boxes.php(1599): do_action('add_meta_boxes', 'mb-post-type', Object(WP_Post)) #5 /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-admin/edit-form-advanced.php(271): register_and_do_post_meta_boxes(Objec
@Tobias: your issue does not relate to this topic and it is resolved in the new version of Meta Box AIO 1.16.8. Please update the plugin and let me know how it goes.
Hello Peter,
I've replaced
public function make( array $settings ) {
with this one
public function make( $settings ) {
and now I get
Fatal error: Uncaught TypeError: Argument 1 passed to RW_Meta_Box::__construct() must be of the type array, string given, called in /homepages/6/d770262890/htdocs/clickandbuilds/DTB/wp-content/plugins/meta-box/inc/meta-box-registry.php on line 19 and defined in /homepages/6/d770262890/htdocs/clickandbuilds/DTB/wp-content/plugins/meta-box/inc/meta-box.php:49 Stack trace: #0 /homepages/6/d770262890/htdocs/clickandbuilds/DTB/wp-content/plugins/meta-box/inc/meta-box-registry.php(19): RW_Meta_Box->__construct('rwmb_the_value(...') #1 /homepages/6/d770262890/htdocs/clickandbuilds/DTB/wp-content/plugins/meta-box/inc/core.php(29): RWMB_Meta_Box_Registry->make('rwmb_the_value(...') #2 /homepages/6/d770262890/htdocs/clickandbuilds/DTB/wp-includes/class-wp-hook.php(308): RWMB_Core->register_meta_boxes('') #3 /homepages/6/d770262890/htdocs/clickandbuilds/DTB/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #4 /homepages/6/d770262890/htdocs/clickandbuilds/DTB/wp-includes/plugin.php(517): WP_Hook->do_action(Array in /homepages/6/d770262890/htdocs/clickandbuilds/DTB/wp-content/plugins/meta-box/inc/meta-box.php on line 49
Hello,
If you revert the code and the issue still happens, can you please let me know how to reproduce the issue on your site? Somehow I do not see that on my demo site.
Just sent the details - thank you
Here is my original eror
Fatal error: Uncaught TypeError: Argument 1 passed to RWMB_Meta_Box_Registry::make() must be of the type array, string given, called in /homepages/6/d770262890/htdocs/clickandbuilds/DTB/wp-content/plugins/meta-box/inc/core.php on line 29 and defined in /homepages/6/d770262890/htdocs/clickandbuilds/DTB/wp-content/plugins/meta-box/inc/meta-box-registry.php:16 Stack trace: #0 /homepages/6/d770262890/htdocs/clickandbuilds/DTB/wp-content/plugins/meta-box/inc/core.php(29): RWMB_Meta_Box_Registry->make('rwmb_the_value(...') #1 /homepages/6/d770262890/htdocs/clickandbuilds/DTB/wp-includes/class-wp-hook.php(308): RWMB_Core->register_meta_boxes('') #2 /homepages/6/d770262890/htdocs/clickandbuilds/DTB/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #3 /homepages/6/d770262890/htdocs/clickandbuilds/DTB/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /homepages/6/d770262890/htdocs/clickandbuilds/DTB/wp-settings.php(617): do_action('init') #5 /homepages/6/d770262890/htdocs/clickandbuilds/DTB/wp-config.p in /homepages/6/d770262890/htdocs/clickandbuilds/DTB/wp-content/plugins/meta-box/inc/meta-box-registry.php on line 16
Do you need website credentials?
@Ambr: There could be something wrong when you use the code to output the field value or use the Meta Box template. Follow the error log
RWMB_Meta_Box_Registry->make('About Us')
I've accessed the database and deleted a page About Us and a Meta Box template name About Us then I can use the last version of Meta Box. Can you please check it on your live site?