Uncaught Error: Call to a member


WARNING: [pool domain.tld] child 13252 said into stderr: "NOTICE: PHP message: PHP Fatal error: Uncaught Error: Call to a member function get_role_caps() on boolean in /var/www/vhosts/domain.tld/httpdocs/wp-content/plugins/groups/lib/core/class-groups-user.php:389"
[16-Mar-2017 11:45:55] WARNING: [pool domain.tld] child 13252 said into stderr: "Stack trace:"
[16-Mar-2017 11:45:55] WARNING: [pool domain.tld] child 13252 said into stderr: "#0 /var/www/vhosts/domain.tld/httpdocs/wp-content/plugins/groups/lib/core/class-groups-user.php(308): Groups_User->init_cache(Array, Array)"
[16-Mar-2017 11:45:55] WARNING: [pool domain.tld] child 13252 said into stderr: "#1 /var/www/vhosts/domain.tld/httpdocs/wp-content/plugins/groups/lib/wp/class-groups-wordpress.php(81): Groups_User->can('unfiltered_html')"
[16-Mar-2017 11:45:55] WARNING: [pool domain.tld] child 13252 said into stderr: "#2 /var/www/vhosts/domain.tld/httpdocs/wp-includes/class-wp-hook.php(300): Groups_WordPress::user_has_cap(Array, Array, Array)"
[16-Mar-2017 11:45:55] WARNING: [pool domain.tld] child 13252 said into stderr: "#3 /var/www/vhosts/domain.tld/httpdocs/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array)"
[16-Mar-2017 11:45:55] WARNING: [pool domain.tld] child 13252 said into stderr: "#4 /var/www/vhosts/domain.tld/httpdocs/wp-includes/class-wp-user.php(743): apply_filters('user_has_cap', Array, Array, Array, Object(WP_User))"
[16-Mar-2017 11:45:55] WARNING: [pool domain.tld] child 13252 said into stderr: "#5 /var/www/vhosts/domain.tld/httpdocs/wp-includes/capabilities.php(609): WP_User->has_cap('unfiltered_html')"
[16-Mar-2017 11:45:55] WARNING: [pool domain.tld] child 13252 said into stderr: "#6 /var/www/vhosts/domain..."

Found on PHP 7 FPM and latest WP.


Comments

2 responses to “Uncaught Error: Call to a member”

  1. This issue is fixed in the last Groups version.

  2. Hi Dominic,
    This should be solved on the new 2.0.3 Groups version.
    Kind Regards,
    Antonio B.

Share