I need help figuring this out. I don't know what to do to fix this, Requesting help.

The site was moved from a1pestcontrolco.net to a1pestcontrolco.com. Same host provider. They say they can't help me.

PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function wp_nav_menu_remove_menu_item_has_children_class(), 1 passed in /home/shatterp/public_html/a1pestcontrolco.net/wp-includes/class-wp-hook.php on line 324 and at least 2 expected in /home/shatterp/public_html/a1pestcontrolco.net/wp-includes/nav-menu-template.php:659

Stack trace:

#0 /home/shatterp/public_html/a1pestcontrolco.net/wp-includes/class-wp-hook.php(324): wp_nav_menu_remove_menu_item_has_children_class(Array)

#1 /home/shatterp/public_html/a1pestcontrolco.net/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)

#2 /home/shatterp/public_html/a1pestcontrolco.net/wp-content/themes/anona/framework/common/atp_generator.php(584): apply_filters('nav_menu_css_cl...', Array)

#3 /home/shatterp/public_html/a1pestcontrolco.net/wp-includes/class-wp-walker.php(147): description_walker->start_el('', Object(WP_Post), 0, Object(stdClass))

#4 /home/shatterp/public_html/a1pestcontrolco.net/wp-includes/class-wp-walker.php(247): Walker->display_element(Ob in /home/shatterp/public_html/a1pestcontrolco.net/wp-includes/nav-menu-template.php on line 659

Based on this thread, it looks like it's related to code that may be deprecated due to a change in PHP versions.

I tried to change the PHP version in .htaccess, but it rendered the site even more useless. I was hoping it would fix the errors. But I just don't know what to do and am seeking help :(

0

There are 0 best solutions below