Your Time:
Our Time:
← Back to discussions

PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 5 replies, 3 voices, and was last updated 1 year, 10 months ago by Fem.

  • 2024-03-25 at 2:59 am
    Support Expired
    #28897
    Shatter_Proof
    Participant
    • Topics: 1
    • Replies: 1
    • Total posts: 2
    • Post count: 1

    I need help figuring this out. I dont know what to do to fix this, Requesting help..PLEASE lol
    <h2>The site was moved from a1pestcontrolco.net to a1pestcontrolco.com. same host provider. they say they cant help me</h2>
     

    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 usless. I was hoping it would fix the errors. But i just don’t know what to do and am seeking help 🙁

    2024-03-26 at 1:29 am
    #28902
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    These fixes have already been done in the updates please update them I think you are using the old version. Make sure you take a backup before doing anything

    • This reply was modified 2 years, 6 months ago by Fem.
    2024-03-28 at 3:58 pm
    Support Expired
    #28910
    Shatter_Proof
    Participant
    • Topics: 1
    • Replies: 1
    • Total posts: 2
    • Post count: 1

    I did the update before i even came here for support. Im on php 8.1. And when i ran a recent debug, these errors popped up and the whole website is broken. everything is updated

    2024-03-28 at 5:25 pm
    #28911
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    I tested the website in php8.1 and it seems to be working fine.

    2024-11-15 at 3:37 pm
    Support Expired
    #29559
    elenachristiantranslation
    Participant
    • Topics: 3
    • Replies: 8
    • Total posts: 11
    • Post count: 10
    This reply has been marked as private.
    2024-11-21 at 3:14 am
    #29564
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    @elenachristiantranslation – I will make a fresh install test at our server and hope that will be fixed soon.

The topic ‘PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function’ is closed to new replies.