Hello -
I am getting the following error whenever I try to save, edit, publish, or preview new or existing pages.
PHP Fatal error: Uncaught Error: [] operator not supported for strings in /nas/content/live/trusting/wp-content/themes/betheme/functions/builder/back.php:918\nStack trace:\n
#0 /nas/content/live/trusting/wp-content/themes/betheme/functions/meta-portfolio.php(477): mfn_builder_save(1500)\n
#1 [internal function]: mfn_portfolio_save_data(1500)\n
#2 /nas/content/live/trusting/wp-includes/class-wp-hook.php(288): call_user_func_array('mfn_portfolio_s...', Array)\n
#3 /nas/content/live/trusting/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)\n
#4 /nas/content/live/trusting/wp-includes/plugin.php(465): WP_Hook->do_action(Array)\n
#5 /nas/content/live/trusting/wp-includes/post.php(3951): do_action('save_post', 1500, Object(WP_Post), true)\n
#6 /nas/content/live/trusting/wp-includes/post.php(4028): wp_insert_post(Array, false)\n
#7 /nas/content/live/trusting/wp-admin/includes/post.php(405): wp_update_post(Array)\n
#8 /nas/content/live/trusting/wp-admin/post.php(218): edit_post()\n
#9 {main}\n thrown in /nas/content/live/trusting/wp-content/themes/betheme/functions/builder/back.php on line 918, referer: https://www.trustingpixels.com/wp-admin/post.php?post=1500&action=edit
The corresponding code on line 918 in back.php is:
$mfn_wraps[ $parent_wrap_ID ]['items'][] = $item;
I believe this is related to the moving from PHP 7.0 to 7.2 on my wordpress host (I cannot rollback to 7.0 due to host restriction.
WordPress Version: 5.1.1
PHP version: 7.2.20-2
BeTheme version: 14.3
(I understand this is not the current version of BeTheme, however, the original developer my client hired to deploy this site did not create a child theme and instead extensively modified the theme core code itself. I am working to upgrade the theme to the current version, however, it will take a good deal of time to get the custom code working.
Please let me know if anything can me modified in the meantime.
Thanks -
Steve
Comments