Failure when using the secondary location
-
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 285May you help me?
- The topic ‘Failure when using the secondary location’ is closed to new replies.