[10-Jan-2012 08:10:27] PHP Fatal error: Call to a member function is_role() on a non-object in /home/bang/public_html/wp-content/plugins/edit-flow/common/php/class-module.php on line 531
Any idea what would that be? Or getting fixed?
[10-Jan-2012 08:10:27] PHP Fatal error: Call to a member function is_role() on a non-object in /home/bang/public_html/wp-content/plugins/edit-flow/common/php/class-module.php on line 531
Any idea what would that be? Or getting fixed?
The immediate problem is that there's no $wp_roles object here. This isn't necessarily the root cause though.
Do you have any role modification going on? Does this happen to you on a fresh WP install?
Yup we do have a role manager. Not sure if thats what causing this.
We upgraded to PHP 5.3.6 2 days ago with nginx configuration. We had couple of issues, but this error from edit-flow is blocking ajax functionality on the site.
And no this is not fresh wp install. This is an established site.
If you have access to the code, try changing line 531 from:
if ( $wp_roles->is_role( $role ) ) {
to:
if ( is_object( $wp_roles ) && $wp_roles->is_role( $role ) ) {
This should fix your immediate problem, but it sounds like your WP install might have some issues and there could be problems elsewhere.
Thanks buddy, I will try that.
is it possible the Role Manager conflicting with it? Its quite old plugin, not sure for 3, let alone 3.3.
Yes, my best guess is that the Role Manager plugin is conflicting with it. The source of the problem is that the $wp_roles global variable doesn't exist, and it should always exist.
your first fix, fix the issue, i disabled the role manager as well. no fatal errors come up anymore but ill keep checking for them
Thank you so much
Glad you figured it out :)
This topic has been closed to new replies.