Failure after update to mb-core 1.4.9
- This topic has 5 replies, 5 voices, and was last updated 2 years, 3 months ago by
Niemand.
-
AuthorPosts
-
December 24, 2022 at 3:07 AM #40016
Niemand
ParticipantAfter updating MetaBox to 1.4.9 my site is generating this error -
An error of type E_ERROR was caused in line 45 of the file /var/www/bubbles/wp-content/plugins/mb-core/vendor/meta-box/meta-box-template/src/Parser.php. Error message: Uncaught TypeError: Return value of MBTemplate\Parser::parse_files() must be of the type array, null returned in /var/www/bubbles/wp-content/plugins/mb-core/vendor/meta-box/meta-box-template/src/Parser.php:45 Stack trace: #0 /var/wwwbubbles/wp-content/plugins/mb-core/vendor/meta-box/meta-box-template/src/Parser.php(11): MBTemplate\Parser->parse_files() #1 /var/www/bubbles/wp-content/plugins/mb-core/vendor/meta-box/meta-box-template/src/Register.php(45): MBTemplate\Parser->parse() #2 /var/www/bubbles/wp-content/plugins/mb-core/vendor/meta-box/meta-box-template/src/Register.php(17): MBTemplate\Register->parse() #3 /var/www/bubbles/wp-includes/class-wp-hook.php(308): MBTemplate\Register->register_meta_boxes(Array) #4 /var/www/bubbles/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #5 /var/www/bubbles/wp-content/plugins/meta-box/inc/core.php(25): apply_filters('rwmb_meta_boxes', Array) #6 /var/www/
December 25, 2022 at 12:58 AM #40022Mira Web Services
ParticipantI'm seeing this exact error as well with Meta Box AIO. I've had to revert Meta Box AIO back to version 1.16.8 in the meantime.
December 25, 2022 at 2:32 AM #40023Davor Mlinarić
Participanti'm getting this error, wp is not latest version.
..pects at least 1 parameter, 0 given in /var/www/vhosts/motoreni.hr/httpdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-template/src/Parser.php on line 38
December 26, 2022 at 8:07 AM #40031Anh Tran
KeymasterHi guys, can you please drop me a message with a temporary admin account and FTP details to debug and check the issue? Currently, I can't replicate this bug on our environments. Thanks.
December 28, 2022 at 12:53 AM #40044Pascal ransch
ParticipantSame error for me too :
[27-Dec-2022 17:42:28 UTC] PHP Warning: array_merge() expects at least 1 parameter, 0 given in /var/www/restricted/ssh/iomapr/www/wp-content/plugins/mb-core/vendor/meta-box/meta-box-template/src/Parser.php on line 38
[27-Dec-2022 17:42:28 UTC] PHP Warning: array_merge(): Argument #2 is not an array in /var/www/restricted/ssh/iomapr/www/wp-content/plugins/mb-core/vendor/meta-box/meta-box-template/src/Parser.php on line 39
[27-Dec-2022 17:42:28 UTC] PHP Warning: array_map(): Argument #2 should be an array in /var/www/restricted/ssh/iomapr/www/wp-content/plugins/mb-core/vendor/meta-box/meta-box-template/src/Parser.php on line 42
[27-Dec-2022 17:42:28 UTC] PHP Warning: call_user_func_array() expects parameter 2 to be array, null given in /var/www/restricted/ssh/iomapr/www/wp-content/plugins/mb-core/vendor/meta-box/meta-box-template/src/Parser.php on line 43
[27-Dec-2022 17:42:28 UTC] PHP Fatal error: Uncaught TypeError: Return value of MBTemplate\Parser::parse_files() must be of the type array, null returned in /var/www/restricted/ssh/iomapr/www/wp-content/plugins/mb-core/vendor/meta-box/meta-box-template/src/Parser.php:45
Stack trace:
#0 /var/www/restricted/ssh/iomapr/www/wp-content/plugins/mb-core/vendor/meta-box/meta-box-template/src/Parser.php(11): MBTemplate\Parser->parse_files()
#1 /var/www/restricted/ssh/iomapr/www/wp-content/plugins/mb-core/vendor/meta-box/meta-box-template/src/Register.php(45): MBTemplate\Parser->parse()
#2 /var/www/restricted/ssh/iomapr/www/wp-content/plugins/mb-core/vendor/meta-box/meta-box-template/src/Register.php(17): MBTemplate\Register->parse()
#3 /var/www/restricted/ssh/iomapr/www/wp-includes/class-wp-hook.php(308): MBTemplate\Register->register_meta_boxes(Array)
#4 /var/www/restricted/ssh/iomapr/www/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#5 /var/www/restricted/ssh/iomapr/www/wp-content/plugins/meta-box/inc/core.php(25): apply_filters('rwmb_meta in /var/www/restricted/ssh/iomapr/www/wp-content/plugins/mb-core/vendor/meta-box/meta-box-template/src/Parser.php on line 45December 30, 2022 at 3:39 PM #40067Niemand
ParticipantSorry, not access I can grant.
I can tell you though that we were on a server with PHP7.2 and transferred to a server with 7.4, and find that the issue is no longer present. So likely you have an issue with PHP version support.
-
AuthorPosts
- You must be logged in to reply to this topic.