Title: PHP error in latest version
Last modified: January 19, 2023

---

# PHP error in latest version

 *  [wireduk](https://wordpress.org/support/users/wireduk/)
 * (@wireduk)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-latest-version-2/)
 * 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 3 years, 4 months ago by [wireduk](https://wordpress.org/support/users/wireduk/).

Viewing 1 replies (of 1 total)

 *  [leogermani](https://wordpress.org/support/users/leogermani/)
 * (@leogermani)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-latest-version-2/#post-16389640)
 * Thanks for reporting. Apparently in some edge cases the filter is called without
   all the parameters.
 * A fix has been submitted to avoid that: [https://github.com/Automattic/Co-Authors-Plus/pull/917](https://github.com/Automattic/Co-Authors-Plus/pull/917)

Viewing 1 replies (of 1 total)

The topic ‘PHP error in latest version’ is closed to new replies.

 * ![](https://ps.w.org/co-authors-plus/assets/icon-256x256.png?rev=2945095)
 * [Co-Authors Plus](https://wordpress.org/plugins/co-authors-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/co-authors-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/co-authors-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/co-authors-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/co-authors-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/co-authors-plus/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [leogermani](https://wordpress.org/support/users/leogermani/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-latest-version-2/#post-16389640)
 * Status: not resolved