Support Forum
When using Gutenberg editor the taxonomy field does not work when type is select_advanced
. When the Classic Editor plugin is enabled, the taxonomy field with type of select_advanced
works again. I searched the forums for a related topic but did not receive any results.
My Meta Box plugin version is 4.17.3.
Code
$meta_boxes[] = array(
'id' => 'formats_categories',
'title' => 'Format Categories',
'post_types' => [
'custom_format',
'format',
],
'fields' => array(
array(
'id' => 'formats_category_id',
'type' => 'taxonomy',
'name' => 'Category',
'taxonomy' => 'format_category',
'multiple' => true,
'field_type' => 'select_advanced',
),
),
);
Debugging Information
When Gutenberg editor is used the edit post page has the below JavaScript console errors. On enabling the classic editor, these is no sign of these errors.
Uncaught TypeError: Cannot read property 'length' of undefined
at Object.<anonymous> (metabox-metadata.js?ver=5.1.1:27)
at Function.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.1.1:2)
at initializeBars (metabox-metadata.js?ver=5.1.1:26)
at HTMLDocument.<anonymous> (metabox-metadata.js?ver=5.1.1:13)
at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.1.1:2)
at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.1.1:2)
at Function.ready (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.1.1:2)
at HTMLDocument.K (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.1.1:2)
(anonymous) @ metabox-metadata.js?ver=5.1.1:27
each @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.1.1:2
initializeBars @ metabox-metadata.js?ver=5.1.1:26
(anonymous) @ metabox-metadata.js?ver=5.1.1:13
i @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.1.1:2
fireWith @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.1.1:2
ready @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.1.1:2
K @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.1.1:2
wp-auth-check.min.js?ver=5.1.1:1
Uncaught TypeError: Cannot read property 'hasClass' of undefined
at HTMLDocument.<anonymous> (wp-auth-check.min.js?ver=5.1.1:1)
at HTMLDocument.dispatch (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.1.1:3)
at HTMLDocument.r.handle (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.1.1:3)
at Object.trigger (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.1.1:3)
at Object.a.event.trigger (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.1.1:8)
at HTMLDocument.<anonymous> (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.1.1:3)
at Function.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.1.1:2)
at a.fn.init.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.1.1:2)
at a.fn.init.trigger (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.1.1:3)
at Object.<anonymous> (heartbeat.min.js?ver=5.1.1:1)
Hi, I've just checked and can't replicate the bug:
https://i.imgur.com/VGrQIH1.png
Can you try with no plugins activated and with normal post
?