Hello, there is a issue where the navigation doesnt have its aria-label set and its just blank, I have included the error that ARC a11y tool on chrome flags.
Description: The attribute aria-label
is missing a value, and doesn’t have a default
<nav style="font-style:normal;font-weight:400;" class="o-hide-on-mobile has-normal-font-size items-justified-center no-wrap wp-block-navigation has-normal-font-size is-horizontal is-content-justification-center is-nowrap is-layout-flex wp-container-core-navigation-is-layout-1 wp-block-navigation-is-layout-flex has-classic-menu has-classic-menu-location--secondary" aria-label=""></nav>
Hi,
I am using CMiNB on a multilingual website developed with Polylang. I set up a primary menu per each language, added it to my header and all works fine: I click on the language switcher and the menu changes to the right language.
I then set up a secondary menu per each language, added it to my footer and it works fine for two languages, not for the third, despite there’s no technical difference among them (to be honest, in other tests the footer menu was working only for the main language, not sure why).
The error is:
Fatal error: Uncaught TypeError: Return value of WebManDesign\CMiNB\Block::get_classic_menu_blocks() must be of the type array, none returned in C:\xampp\htdocs\wp-content\plugins\classic-menu-in-navigation-block\includes\Block.php:285
Stack trace: #0 C:\xampp\htdocs\wp-content\plugins\classic-menu-in-navigation-block\includes\Block.php(144): WebManDesign\CMiNB\Block::get_classic_menu_blocks(‘secondary’) #1 C:\xampp\htdocs\wp-includes\class-wp-hook.php(326): WebManDesign\CMiNB\Block::render_block_data(Array) 2 C:\xampp\htdocs\wp-includes\plugin.php(205): WP_Hook->apply_filters(Array, Array) #3 C:\xampp\htdocs\wp-includes\class-wp-block.php(239): apply_filters(‘render_block_da…’, Array, Array, Object(WP_Block)) 4 C:\xampp\htdocs\wp-includes\class-wp-block.php(244): WP_Block->render() #5 C:\xampp\htdocs\wp-includes\blocks.php(1484): WP_Block->render() #6 C:\xampp\htdocs\wp-includes\blocks.php(1522): render_block(Array) #7 C:\xampp\htdocs\wp-includes\blocks\template-part.php(144) do_blocks(‘<!– wp:group {…’) #8 C:\xa in C:\xampp\htdocs\wp-content\plugins\classic-menu-in-navigation-block\includes\Block.php on line 285
May you help me?
]]>