I am trying to use mobile menu to create a menu, since I’m not a fan of the one that comes with my theme, Blocksy. However, the menu elements do not display when I press the hamburger icon. Rather, I get a long error message inside the menu.
Below is part of the error message I’m getting:
Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 3 passed in C:\xampp\htdocs\test-site\wp-includes\class-wp-hook.php on line 292 and exactly 4 expected in C:\xampp\htdocs\test-site\wp-content\themes\blocksy\inc\menus.php:61 Stack trace: #0 C:\xampp\htdocs\test-site\wp-includes\class-wp-hook.php(292): {closure}(Array, Object(WP_Post), Object(stdClass)) #1 C:\xampp\htdocs\test-site\wp-includes\plugin.php(212): WP_Hook->apply_filters(Array, Array) #2 C:\xampp\htdocs\test-site\wp-content\plugins\mobile-menu\includes\class-wp-mobile-menu-walker-nav-menu.php(27):