Fatal php error upon page access

We are getting the following error, after site upgrades (WordPress, plugins, php version):

PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Groups_Post_Access::widget_categories_dropdown_args(), 1 passed in /public_html/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected in /public_html/wp-content/plugins/groups/lib/access/class-groups-post-access.php:1263

Posted in

Comments

3 responses to “Fatal php error upon page access”

  1. Hey John,

    Yes indeed, Groups is not related, but still I’m happy that you managed to locate the issue.

    Kind regards,
    George

  2. Thanks George. The culprit was “Category Wise Search Widget”, which appears to be obsolete.

    We’ll have to figure out where to go with that, but we realize now that Groups is innocent in this 🙂

    Thanks again!

  3. Hi Lindsey,

    Welcome to our support forum.

    As the error indicates, you are using the hook widget_categories_dropdown_args with too few arguments, since WordPress version 4.9 the hook accepts two arguments and only one is used.
    Please check your plugins and custom snippets for any instances of this hook that needs to be corrected. If not sure where to locate it, proceed and disable your plugins one-by-one until this error goes away while keeping Groups activated.

    Kind regards,
    George

Share