Support Forum
Support › Meta Box Builder › Meta Box builder not working after updateResolved
Hi, I just updated Meta Box plugin to Version 5.3.1 and Meta Box AIO to Version 1.11.10.
I already had a custom post type set up via Meta Box, and a group of custom fields created for that post type via the Custom Fields Builder.
When I edit one of these posts all the custom fields are still displayed.
When I go to Meta Box > Custom Fields and edit the Group, the Fields tab says "No fields. Select fields on the left to add them to this field group."
And the the column on the left from where I usually drag the fields just says "{{ group }}".
The Settings tab shows none of my settings.
The Code tab, interestingly still shows the code, see below.
I am not finished with editing this Custom Fields Group in the Builder, still wanted to add a few things. Is there anything I can do to get the fields back to the builder?
Thanks in advance.
add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' );
function your_prefix_register_meta_boxes( $meta_boxes ) {
$prefix = '';
$meta_boxes[] = array (
'title' => esc_html__( 'Tour Information', 'text-domain' ),
'id' => 'hls_tour_info',
'post_types' => array(
0 => 'hls-ve-tour',
),
'context' => 'normal',
'priority' => 'high',
'fields' => array(
array (
'id' => $prefix . 'hls_info_intro',
'name' => esc_html__( 'Tour Intro', 'text-domain' ),
'type' => 'wysiwyg',
'desc' => esc_html__( 'Intro - keep the formatting simple / use plain text', 'text-domain' ),
),
array (
'id' => $prefix . 'hls_info_tour_duration',
'type' => 'text',
'name' => esc_html__( 'Tour Duration', 'text-domain' ),
),
array (
'id' => $prefix . 'hls_info_quote',
'type' => 'textarea',
'name' => esc_html__( 'Quote', 'text-domain' ),
'desc' => esc_html__( 'A short quote or interesting highlight/fact about the tour.', 'text-domain' ),
'required' => 1,
),
array (
'id' => $prefix . 'hls_info_overview',
'name' => esc_html__( 'Tour Overview', 'text-domain' ),
'type' => 'wysiwyg',
),
array (
'id' => $prefix . 'hls_info_included',
'name' => esc_html__( 'Included in the tour', 'text-domain' ),
'type' => 'wysiwyg',
'desc' => esc_html__( 'Use a list with bullets for clarity. Extra information can be added above or below the list if required.', 'text-domain' ),
'std' => '<ul>
<li>list</li>
</ul>',
),
array (
'id' => $prefix . 'hls_info_pricing',
'name' => esc_html__( 'Pricing', 'text-domain' ),
'type' => 'wysiwyg',
'desc' => esc_html__( 'Use a list with bullets for clarity. Extra information can be added above or below the list if required.', 'text-domain' ),
'std' => '<ul>
<li>R 000.00 per person</li>
</ul>',
),
array (
'id' => $prefix . 'hls_info_price',
'type' => 'text',
'name' => esc_html__( 'Price', 'text-domain' ),
'desc' => esc_html__( 'Package price, for example: "R 123.00 per person."', 'text-domain' ),
'required' => 1,
),
array (
'id' => $prefix . 'hls_info_price_featured',
'type' => 'text',
'name' => esc_html__( 'Price or Subtitle on Featured Blocks', 'text-domain' ),
'desc' => esc_html__( 'Featured package price, for example: "From R 123.00 per person."', 'text-domain' ),
'required' => 1,
),
array (
'id' => $prefix . 'hls_info_booking_link',
'type' => 'url',
'name' => esc_html__( 'Link/URL to booking page', 'text-domain' ),
'required' => 1,
),
array (
'id' => $prefix . 'hls_info_gallery',
'type' => 'image_advanced',
'name' => esc_html__( 'Upload Photos for Gallery Slider', 'text-domain' ),
'desc' => esc_html__( 'Square format, maximum 1080 x 1080px', 'text-domain' ),
'max_file_uploads' => 10,
'max_status' => 1,
),
),
);
return $meta_boxes;
}
`
Hi,
Please try to deactivate all plugins except Meta Box, Meta Box AIO then check the issue again. If it still happens, please turn on debug and open the Console tab of the browser then let me know if there are error messages.
Recent updates also broke my MB Builder. When I go edit a custom field group, no fields load and the {{variables}} are not updated.
Console errors below.
I have reverted to the last version I have which is 1.11.7 and works fine
Thanks for looking into it.
Uncaught ReferenceError: hljs is not defined
at builder.js?ver=3.2.7:697
angular.min.js?ver=1.6.9:42 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.6.9/$injector/modulerr?p0=Builder&p1=Error%3A%20%5B%24injector%3Anomod%5D%20http%3A%2F%2Ferrors.angularjs.org%2F1.6.9%2F%24injector%2Fnomod%3Fp0%3DBuilder%0A%20%20%20%20at%20https%3A%2F%2Fdomain.com%2Fwp-content%2Fplugins%2Fmeta-box-aio%2Fvendor%2Fmeta-box%2Fmeta-box-builder%2Fassets%2Fjs%2Fangular.min.js%3Fver%3D1.6.9%3A7%3A76%0A%20%20%20%20at%20https%3A%2F%2Fdomain.com%2Fwp-content%2Fplugins%2Fmeta-box-aio%2Fvendor%2Fmeta-box%2Fmeta-box-builder%2Fassets%2Fjs%2Fangular.min.js%3Fver%3D1.6.9%3A26%3A408%0A%20%20%20%20at%20b%20(https%3A%2F%2Fdomain.com%2Fwp-content%2Fplugins%2Fmeta-box-aio%2Fvendor%2Fmeta-box%2Fmeta-box-builder%2Fassets%2Fjs%2Fangular.min.js%3Fver%3D1.6.9%3A25%3A439)%0A%20%20%20%20at%20https%3A%2F%2Fdomain.com%2Fwp-content%2Fplugins%2Fmeta-box-aio%2Fvendor%2Fmeta-box%2Fmeta-box-builder%2Fassets%2Fjs%2Fangular.min.js%3Fver%3D1.6.9%3A26%3A182%0A%20%20%20%20at%20https%3A%2F%2Fdomain.com%2Fwp-content%2Fplugins%2Fmeta-box-aio%2Fvendor%2Fmeta-box%2Fmeta-box-builder%2Fassets%2Fjs%2Fangular.min.js%3Fver%3D1.6.9%3A42%3A332%0A%20%20%20%20at%20r%20(https%3A%2F%2Fdomain.com%2Fwp-content%2Fplugins%2Fmeta-box-aio%2Fvendor%2Fmeta-box%2Fmeta-box-builder%2Fassets%2Fjs%2Fangular.min.js%3Fver%3D1.6.9%3A8%3A7)%0A%20%20%20%20at%20g%20(https%3A%2F%2Fdomain.com%2Fwp-content%2Fplugins%2Fmeta-box-aio%2Fvendor%2Fmeta-box%2Fmeta-box-builder%2Fassets%2Fjs%2Fangular.min.js%3Fver%3D1.6.9%3A42%3A180)%0A%20%20%20%20at%20gb%20(https%3A%2F%2Fdomain.com%2Fwp-content%2Fplugins%2Fmeta-box-aio%2Fvendor%2Fmeta-box%2Fmeta-box-builder%2Fassets%2Fjs%2Fangular.min.js%3Fver%3D1.6.9%3A46%3A250)%0A%20%20%20%20at%20c%20(https%3A%2F%2Fdomain.com%2Fwp-content%2Fplugins%2Fmeta-box-aio%2Fvendor%2Fmeta-box%2Fmeta-box-builder%2Fassets%2Fjs%2Fangular.min.js%3Fver%3D1.6.9%3A22%3A19)%0A%20%20%20%20at%20Uc%20(https%3A%2F%2Fdomain.com%2Fwp-content%2Fplugins%2Fmeta-box-aio%2Fvendor%2Fmeta-box%2Fmeta-box-builder%2Fassets%2Fjs%2Fangular.min.js%3Fver%3D1.6.9%3A22%3A332)
at angular.min.js?ver=1.6.9:7
at angular.min.js?ver=1.6.9:43
at r (angular.min.js?ver=1.6.9:8)
at g (angular.min.js?ver=1.6.9:42)
at gb (angular.min.js?ver=1.6.9:46)
at c (angular.min.js?ver=1.6.9:22)
at Uc (angular.min.js?ver=1.6.9:22)
at we (angular.min.js?ver=1.6.9:21)
at HTMLDocument.<anonymous> (angular.min.js?ver=1.6.9:336)
at i (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,underscore&ver=5.4.1:2)
Hi, @pza how did you revert back to the previous version / where can I get a copy? I'm on a tight project deadline - no time to troubleshoot the Builder issue now.
Hey guys, it's just the browser cache problem. Please use Ctrl-F5 or clear the browser cache and refresh again.
Well this is embarrassing, a hard refresh is usually the first thing I make my clients do when troubleshooting an issue...
Thanks everyone for your contributions.