• Resolved troymkelly

    (@troymkelly)


    Host Requiring Update to php 7.2, on update we are given the following errors:

    [Mon Dec 03 22:49:21.145044 2018] [php7:error] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Tribe__Events__Main::add_current_menu_item_class_to_events(), 1 passed and exactly 2 expected in /nas/content/live/villaeyrie/wp-content/plugins/the-events-calendar/src/Tribe/Main.php:1702\nStack trace:\n#0 [internal function]: Tribe__Events__Main->add_current_menu_item_class_to_events(Array)\n#1 /nas/content/live/villaeyrie/wp-includes/class-wp-hook.php(286): call_user_func_array(Array, Array)\n#2 /nas/content/live/villaeyrie/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array)\n#3 /nas/content/live/villaeyrie/wp-content/themes/villaeyrie/lib/leap-functions.php(25): apply_filters(‘wp_nav_menu_obj…’, Array)\n#4 /nas/content/live/villaeyrie/wp-content/themes/villaeyrie/lib/leap-functions.php(141): get_ConvertMenuToMobile(Array)\n#5 /nas/content/live/villaeyrie/wp-content/themes/villaeyrie/templates/navigation-mobile.php(12): convertMenuToMobile(‘primary_navigat…’)\n#6 /nas/content/live/villaeyrie/wp-includes/template.php(690): require(‘/nas/co in /nas/content/live/villaeyrie/wp-content/plugins/the-events-calendar/src/Tribe/Main.php on line 1702
    [Mon Dec 03 22:49:54.077408 2018] [php7:error] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Tribe__Events__Main::add_current_menu_item_class_to_events(), 1 passed and exactly 2 expected in /nas/content/live/villaeyrie/wp-content/plugins/the-events-calendar/src/Tribe/Main.php:1497\nStack trace:\n#0 [internal function]: Tribe__Events__Main->add_current_menu_item_class_to_events(Array)\n#1 /nas/content/live/villaeyrie/wp-includes/class-wp-hook.php(286): call_user_func_array(Array, Array)\n#2 /nas/content/live/villaeyrie/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array)\n#3 /nas/content/live/villaeyrie/wp-content/themes/villaeyrie/lib/leap-functions.php(25): apply_filters(‘wp_nav_menu_obj…’, Array)\n#4 /nas/content/live/villaeyrie/wp-content/themes/villaeyrie/lib/leap-functions.php(141): get_ConvertMenuToMobile(Array)\n#5 /nas/content/live/villaeyrie/wp-content/themes/villaeyrie/templates/navigation-mobile.php(12): convertMenuToMobile(‘primary_navigat…’)\n#6 /nas/content/live/villaeyrie/wp-includes/template.php(690): require(‘/nas/co in /nas/content/live/villaeyrie/wp-content/plugins/the-events-calendar/src/Tribe/Main.php on line 1497
    [Mon Dec 03 22:50:44.355264 2018] [php7:error] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Tribe__Events__Main::add_current_menu_item_class_to_events(), 1 passed and exactly 2 expected in /nas/content/live/villaeyrie/wp-content/plugins/the-events-calendar/src/Tribe/Main.php:1497\nStack trace:\n#0 [internal function]: Tribe__Events__Main->add_current_menu_item_class_to_events(Array)\n#1 /nas/content/live/villaeyrie/wp-includes/class-wp-hook.php(286): call_user_func_array(Array, Array)\n#2 /nas/content/live/villaeyrie/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array)\n#3 /nas/content/live/villaeyrie/wp-content/themes/villaeyrie/lib/leap-functions.php(25): apply_filters(‘wp_nav_menu_obj…’, Array)\n#4 /nas/content/live/villaeyrie/wp-content/themes/villaeyrie/lib/leap-functions.php(141): get_ConvertMenuToMobile(Array)\n#5 /nas/content/live/villaeyrie/wp-content/themes/villaeyrie/templates/navigation-mobile.php(12): convertMenuToMobile(‘primary_navigat…’)\n#6 /nas/content/live/villaeyrie/wp-includes/template.php(690): require(‘/nas/co in /nas/content/live/villaeyrie/wp-content/plugins/the-events-calendar/src/Tribe/Main.php on line 1497

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Barry

    (@barryhughes-1)

    Really sorry to hear it, @troymkelly.

    Is it at all possible though that this has its origins in your theme? The problem seems to be that one of our callbacks expects two arguments and, normally, the way WordPress triggers the relevant hook would ensure that it receives them.

    Looking at the stack trace you shared (thank you for that!) I wonder if your theme is actually triggering the same hook but isn’t supplying the expected number of parameters.

    If you switch (temporarily or else on a test site) to an unmodified, default theme such as Twenty Seventeen do you experience the same issue?

    Hey there,

    Since this topic has been inactive for a while, I’m going to go ahead and mark as resolved. Don’t hesitate to reopen or create a new topic if you still need help! ??

    Take care,
    Ed ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Fatal Error on 7.2 Update’ is closed to new replies.