• Snippet of the error from the Apache log:

    Got error ‘PHP message: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function CoAuthors_Guest_Authors::filter_nav_menu_attributes()

    If I change the filter_nav_menu_attributes function to have a default value in the final parameter, it then works fine: (the parameter isn’t even used inside the function)

    public function filter_nav_menu_attributes( $atts, $menu_item, $args, $depth=0 )

    • This topic was modified 1 year, 6 months ago by wireduk.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘PHP error in latest version’ is closed to new replies.