Support Forum
Hello,
I notice Meta Box got updated overnight, and now I'm receiving an error from WordPress.
Here are the details sent by WordPress:
Error Details
=============
An error of type E_ERROR was caused in line 17 of the file /home4/ddxvjvmy/public_html/wp-content/plugins/meta-box/inc/helpers/array.php. Error message: Uncaught TypeError: RWMB_Helpers_Array::map(): Return value must be of type array, string returned in /home4/ddxvjvmy/public_html/wp-content/plugins/meta-box/inc/helpers/array.php:17
Stack trace:
#0 /home4/ddxvjvmy/public_html/wp-content/plugins/meta-box/inc/fields/datetime.php(170): RWMB_Helpers_Array::map('November 16, 20...', 'RWMB_Datetime_F...', Array)
#1 /home4/ddxvjvmy/public_html/wp-content/plugins/meta-box/inc/field.php(533): RWMB_Datetime_Field::meta(495, true, Array)
#2 /home4/ddxvjvmy/public_html/wp-content/plugins/meta-box/inc/field.php(23): RWMB_Field::call(Array, 'meta', 495, true)
#3 /home4/ddxvjvmy/public_html/wp-content/plugins/meta-box/inc/field.php(533): RWMB_Field::show(Array, true, 495)
#4 /home4/ddxvjvmy/public_html/wp-content/plugins/meta-box/inc/meta-box.php(208): RWMB_Field::call('show', Array, true, 495)
#5 /home4/ddxvjvmy/public_html/wp-admin/includes/template.php(1409): RW_Meta_Box->show(Object(WP_Post), Array)
#6 /home4/ddxvjvmy/public_html/wp-admin/includes/post.php(2249): do_meta_boxes(Object(WP_Screen), 'normal', Object(WP_Post))
#7 /home4/ddxvjvmy/public_html/wp-admin/edit-form-blocks.php(316): the_block_editor_meta_boxes()
#8 /home4/ddxvjvmy/public_html/wp-admin/post.php(187): require('/home4/ddxvjvmy...')
#9 {main}
thrown
So far the effect I've observed is that when editing a specific post, I get a blank page and can't edit it...
Hello Olivier,
Thanks for your feedback.
This issue has been noticed and it will be fixed in the next update. Hopefully, it will be available soon.
Thank you Peter. I posted in another thread but should have probably posted here.
You mentioned that the latest version of Meta Box fixed the issue. What is the latest version? My dashboard still shows Version 5.6.12 and that's the one that caused the error. I see no update available.
I'm using Meta Box Pro but not AIO.
Here is the error header from WordPress:
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.1.1
Active theme: GeneratePress Child (version 0.1)
Current plugin: Meta Box (version 5.6.12)
PHP version 8.0.25
Hello,
This issue has been fixed in this commit https://github.com/wpmetabox/meta-box/commit/7ca1d85f7a685cdfabd85bdb65691b638ab4c747
You can try to apply the code on your site while waiting for the new update of Meta Box.
Thanks.
Custom Field settings "Advanced Location Rules" is not working. Can't select which page or post with the new update.
@Shaun: Your issue might not relate to this topic, please create a new topic and share some details about that (screenshot). I will help you to check it.