Support Forum
After 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/
I'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.
i'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
Hi 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.
Same 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 45
Sorry, 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.