Title: Error: Meta Box Loader
Last modified: May 29, 2019

---

# Error: Meta Box Loader

 *  Resolved [dv14](https://wordpress.org/support/users/dv14/)
 * (@dv14)
 * [7 years ago](https://wordpress.org/support/topic/error-meta-box-loader/)
 * Hi – I’m getting the error below and unable to make any updates on website. Any
   ideas to fix this?
 * All plugins, php, wp, etc. are up to date.
 * Error Details
    ============= An error of type E_ERROR was caused in line 918 
   of the file /home/content/p3pnexwpnas12_data02/70/41798770/html/wp-content/themes/
   betheme 14.2/functions/builder/back.php. Error message: Uncaught Error: [] operator
   not supported for strings in /home/content/p3pnexwpnas12_data02/70/41798770/html/
   wp-content/themes/betheme 14.2/functions/builder/back.php:918 Stack trace: #0/
   home/content/p3pnexwpnas12_data02/70/41798770/html/wp-content/themes/betheme 
   14.2/functions/meta-portfolio.php(460): mfn_builder_save(42) #1 /home/content/
   p3pnexwpnas12_data02/70/41798770/html/wp-includes/class-wp-hook.php(288): mfn_portfolio_save_data(
   42) #2 /home/content/p3pnexwpnas12_data02/70/41798770/html/wp-includes/class-
   wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #3 /home/content/p3pnexwpnas12_data02/
   70/41798770/html/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #4 /home/
   content/p3pnexwpnas12_data02/70/41798770/html/wp-includes/post.php(3951): do_action(‘
   save_post’, 42, Object(WP_Post), true) #5 /home/content/p3pnexwpnas12_data02/
   70/41798770/html/wp-includes/post.php(4028): wp_insert_post(Array, false) #6 /
   home/content/p3pnexwpnas12_data02/70/41798770/html/wp-admin/includes/post.php(
   405): wp_update ============= Also received a WordPress automated email: visit
   the page where the error was caught ([http://….com/wp-admin/post.php?post=42&action=edit&meta-box-loader=1&meta-box-loader-nonce=8b78a11794&_locale=user](http://….com/wp-admin/post.php?post=42&action=edit&meta-box-loader=1&meta-box-loader-nonce=8b78a11794&_locale=user))
   and check for any visible issues.
 * Thank you in advance!

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/error-meta-box-loader/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-meta-box-loader/page/2/?output_format=md)

 *  [eazy0174](https://wordpress.org/support/users/eazy0174/)
 * (@eazy0174)
 * [7 years ago](https://wordpress.org/support/topic/error-meta-box-loader/#post-11585628)
 * Did you update any other plugins? This don’t seem a metabox problem, but a theme
   problem.
 * THe file to look for is: wp-content/themes/betheme 14.2/functions/builder/back.
   php row 918
 *  Thread Starter [dv14](https://wordpress.org/support/users/dv14/)
 * (@dv14)
 * [7 years ago](https://wordpress.org/support/topic/error-meta-box-loader/#post-11585914)
 * Hello,
 * Yes, everything is updated. WP 5.2 and PHP 7.2.
 * Row 918 is:
    `$mfn_wraps[ $parent_wrap_ID ]['items'][] = $item;`
 * from this:
 *     ```
       // parent wrap
       				$parent_wrap_ID = $_POST['mfn-item-parent'][$type_k];
       				$mfn_wraps[ $parent_wrap_ID ]['items'][] = $item;
       			}
       		}
       ```
   
 *  [eazy0174](https://wordpress.org/support/users/eazy0174/)
 * (@eazy0174)
 * [7 years ago](https://wordpress.org/support/topic/error-meta-box-loader/#post-11585952)
 * try to disable all plugins and see if it works.
    If works, try to enable one 
   plugin at time and see which one causes problems.
 * I think the problem is betheme 14.2 if you updated it
 *  Plugin Author [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * (@rilwis)
 * [7 years ago](https://wordpress.org/support/topic/error-meta-box-loader/#post-11596141)
 * Hi [@dv14](https://wordpress.org/support/users/dv14/),
 * As [@eazy0174](https://wordpress.org/support/users/eazy0174/) said, the error
   occurs in a theme file. So, please contact the theme author to fix it. It’s not
   our plugin’s bug.
 *  Thread Starter [dv14](https://wordpress.org/support/users/dv14/)
 * (@dv14)
 * [7 years ago](https://wordpress.org/support/topic/error-meta-box-loader/#post-11601637)
 * Thank you for your help, [@eazy0174](https://wordpress.org/support/users/eazy0174/)
   and [@rilwis](https://wordpress.org/support/users/rilwis/). I’ll reach out theme.
 *  [ryandiaz](https://wordpress.org/support/users/ryandiaz/)
 * (@ryandiaz)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/error-meta-box-loader/#post-12035798)
 * Hey [@dv14](https://wordpress.org/support/users/dv14/), did you ever get a resolution
   to this issue? Because I am having the identical problem on my site.
 * The line `$mfn_wraps[ $parent_wrap_ID ]['items'][] = $item;` is throwing the 
   error: **“Uncaught Error: [] operator not supported for strings”**
 *  Thread Starter [dv14](https://wordpress.org/support/users/dv14/)
 * (@dv14)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/error-meta-box-loader/#post-12039672)
 * [@ryandiaz](https://wordpress.org/support/users/ryandiaz/), Yes, we had to update
   the theme, php version, and some other values I recall. I pointed those issues
   to “WordPress Premium Support” and they fixed it.
 *  [ryandiaz](https://wordpress.org/support/users/ryandiaz/)
 * (@ryandiaz)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/error-meta-box-loader/#post-12041079)
 * For anyone using old version of BeTheme and encounters this error. I fixed by
   replacing the below code:
 * `$mfn_wraps[ $parent_wrap_ID ]['items'][] = $item;`
 * with this code:
 *     ```
       if (! isset($mfn_wraps[ $parent_wrap_ID ]['items']) || ! is_array($mfn_wraps[ $parent_wrap_ID ]['items'])) {
        $mfn_wraps[ $parent_wrap_ID ]['items'] = array();
               }
        $mfn_wraps[ $parent_wrap_ID ]['items'][] = $item;
       ```
   
 *  [mdurland28](https://wordpress.org/support/users/mdurland28/)
 * (@mdurland28)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/error-meta-box-loader/#post-12080994)
 * [@ryandiaz](https://wordpress.org/support/users/ryandiaz/) I made the suggested
   changes but still getting an error. Any other input?
 * Mine happens on line 887, not sure that matters?
 * Thanks
    -  This reply was modified 6 years, 7 months ago by [mdurland28](https://wordpress.org/support/users/mdurland28/).
 *  [ryandiaz](https://wordpress.org/support/users/ryandiaz/)
 * (@ryandiaz)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/error-meta-box-loader/#post-12085654)
 * Hey [@mdurland28](https://wordpress.org/support/users/mdurland28/), no it shouldn’t
   matter which line you are getting the error on. Please post the exact error that
   you are seeing, and post all of the code that starts on Line 887, and I will 
   try to assist you!
 *  [mdurland28](https://wordpress.org/support/users/mdurland28/)
 * (@mdurland28)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/error-meta-box-loader/#post-12085777)
 * Thanks [@ryandiaz](https://wordpress.org/support/users/ryandiaz/)! Let me know
   if you need anymore info.
 * Error Details
    ============= An error of type E_ERROR was caused in line 887 
   of the file /home/ajbioozs/public_html/wp-content/themes/betheme/functions/builder/
   back.php. Error message: Uncaught Error: [] operator not supported for strings
   in /home/ajbioozs/public_html/wp-content/themes/betheme/functions/builder/back.
   php:887 Stack trace: #0 /home/ajbioozs/public_html/wp-content/themes/betheme/
   functions/meta-portfolio.php(429): mfn_builder_save(620) #1 /home/ajbioozs/public_html/
   wp-includes/class-wp-hook.php(288): mfn_portfolio_save_data(620) #2 /home/ajbioozs/
   public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, 
   Array) #3 /home/ajbioozs/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(
   Array) #4 /home/ajbioozs/public_html/wp-includes/post.php(3951): do_action(‘save_post’,
   620, Object(WP_Post), true) #5 /home/ajbioozs/public_html/wp-includes/post.php(
   4028): wp_insert_post(Array, false) #6 /home/ajbioozs/public_html/wp-admin/includes/
   post.php(405): wp_update_post(Array) #7 /home/ajbioozs/public_html/wp-admin/includes/
   post.php(1858): edit_post() #8 /home/ajbioozs/public_html/wp-admin/post.php(318):
   post_preview() #9 {main} thrown
 * Here is the code starting on line 887 through 892:
 *  $mfn_wraps[ $parent_wrap_ID ][‘items’][] = $item;
    } }
 *  // $mfn_items | Wraps with Items => Sections ————————————
 *  [mdurland28](https://wordpress.org/support/users/mdurland28/)
 * (@mdurland28)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/error-meta-box-loader/#post-12085780)
 * [@ryandiaz](https://wordpress.org/support/users/ryandiaz/)`By the way this is
   for PHP 7.3
    -  This reply was modified 6 years, 7 months ago by [mdurland28](https://wordpress.org/support/users/mdurland28/).
    -  This reply was modified 6 years, 7 months ago by [mdurland28](https://wordpress.org/support/users/mdurland28/).
 *  [ryandiaz](https://wordpress.org/support/users/ryandiaz/)
 * (@ryandiaz)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/error-meta-box-loader/#post-12095810)
 * Hey [@mdurland28](https://wordpress.org/support/users/mdurland28/),
    Thank you
   for providing that extra information. I see that your Line 887 on back.php has
   the same code that I used to have before I updated it. You said that you made
   my suggested changes, and still receive the same error. Did you undo my suggested
   changes? If so, please do my suggested changes again, and then post all of the
   code in your back.php from Line 887 – 892 again.
 *  [mdurland28](https://wordpress.org/support/users/mdurland28/)
 * (@mdurland28)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/error-meta-box-loader/#post-12120365)
 * [@ryandiaz](https://wordpress.org/support/users/ryandiaz/) changed and still 
   getting this error message when previewing a page in editor
 * The site is experiencing technical difficulties. Please check your site admin
   email inbox for instructions.
 * Here you go with line 887 – 892 suggested changes:
 *  if (! isset($mfn_wraps[ $parent_wrap_ID ][‘items’]) || ! is_array($mfn_wraps[
   $parent_wrap_ID ][‘items’])) {
    $mfn_wraps[ $parent_wrap_ID ][‘items’] = array();}
   $mfn_wraps[ $parent_wrap_ID ][‘items’][] = $item; } }
 *  [mdurland28](https://wordpress.org/support/users/mdurland28/)
 * (@mdurland28)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/error-meta-box-loader/#post-12120367)
 * if (! isset($mfn_wraps[ $parent_wrap_ID ][‘items’]) || ! is_array($mfn_wraps[
   $parent_wrap_ID ][‘items’])) {
    $mfn_wraps[ $parent_wrap_ID ][‘items’] = array();}
   $mfn_wraps[ $parent_wrap_ID ][‘items’][] = $item; } }

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/error-meta-box-loader/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-meta-box-loader/page/2/?output_format=md)

The topic ‘Error: Meta Box Loader’ is closed to new replies.

 * ![](https://ps.w.org/meta-box/assets/icon-128x128.png?rev=1100915)
 * [Meta Box](https://wordpress.org/plugins/meta-box/)
 * [Support Threads](https://wordpress.org/support/plugin/meta-box/)
 * [Active Topics](https://wordpress.org/support/plugin/meta-box/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/meta-box/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/meta-box/reviews/)

 * 20 replies
 * 3 participants
 * Last reply from: [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/error-meta-box-loader/page/2/#post-12563684)
 * Status: resolved