• Hello, does the WP Mega Menu plugin works with Ascend? I can’t make it work (I’ve read all the docs available…)

Viewing 8 replies - 1 through 8 (of 8 total)
  • hannah

    (@hannahritner)

    Hey,
    Where exactly are you getting stuck? I just tested this plugin and had no issue.

    Hannah

    Thread Starter troxx

    (@troxx)

    It works on the backend, but absolutely nothing show on the frontend – that’s why I tought it may be not working with Ascend (JS conflict or maybe conflict with your mega menu). I am also using Elementor on this site, but nothing changes if I switch it off. Now, I can see some errors in the console: https://pastebin.com/MGu2E6G4

    This is a fresh project, I have almost none of plugins there – just Elementor, Kadence Toolkit and WP Mega Menu.

    hannah

    (@hannahritner)

    Can you post a link to your site? You have created and assigned a menu from Appearance > Menus, correct?

    Hannah

    Thread Starter troxx

    (@troxx)

    Thread Starter troxx

    (@troxx)

    I’ve switched PHP version to 7.2 and…

    <b>Fatal error</b>: Uncaught ArgumentCountError: Too few arguments to function ascend_menu_nav_li_css_classes(), 3 passed in /home/platne/serwer23858/public_html/hydromechanika/wp-includes/class-wp-hook.php on line 286 and exactly 4 expected in /home/platne/serwer23858/public_html/hydromechanika/wp-content/themes/ascend/lib/nav.php:37
    Stack trace:
    #0 /home/platne/serwer23858/public_html/hydromechanika/wp-includes/class-wp-hook.php(286): ascend_menu_nav_li_css_classes(Array, Object(WP_Post), Object(stdClass))
    #1 /home/platne/serwer23858/public_html/hydromechanika/wp-includes/plugin.php(208): WP_Hook->apply_filters(Array, Array)
    #2 /home/platne/serwer23858/public_html/hydromechanika/wp-content/plugins/wp-megamenu/classes/class.wp-megamenu.php(125): apply_filters(‘nav_menu_css_cl…’, Array, Object(WP_Post), Object(stdClass))
    #3 /home/platne/serwer23858/public_html/hydromechanika/wp-content/plugins/wp-megamenu/classes/class.wp-megamenu.php(346): wp_megamenu->start_el(”, Object(WP_Post), 0, Object(stdClass))
    #4 /home/platne/serwer2 in <b>/home/platne/serwer23858/public_html/hydromechanika/wp-content/themes/ascend/lib/nav.php</b> on line <b>37</b><br />

    That error means that wp-megamenu isn’t passing all 4 arguments through the nav_menu_css_class filter. There have been 4 arguments for quite some time: https://codex.www.ads-software.com/Plugin_API/Filter_Reference/nav_menu_css_class

    That is something wp-megamenu will have to address. I can post a bug report to them.

    Ben

    Thread Starter troxx

    (@troxx)

    es, please post it to them. Also, my question now is: is it a cause why WP mega menu doesn’t work even with PHP 5.6? There are no visible errors with 5.6.

    hannah

    (@hannahritner)

    I would definitely recommend updating your PHP version. You want to be on PHP 7+. Your host should be able to help you with that.

    Hannah

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WP Mega Menu plugin and Ascend theme?’ is closed to new replies.