WordPress.org

Ready to get started?Download WordPress

Forums

Edit Flow
[resolved] Fatal Error on Edit-Flow, messing with whole site. (9 posts)

  1. nvassos
    Member
    Posted 2 years ago #

    [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?

    http://wordpress.org/extend/plugins/edit-flow/

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 2 years ago #

    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?

  3. nvassos
    Member
    Posted 2 years ago #

    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.

  4. nvassos
    Member
    Posted 2 years ago #

    And no this is not fresh wp install. This is an established site.

  5. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 2 years ago #

    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.

  6. nvassos
    Member
    Posted 2 years ago #

    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.

  7. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 2 years ago #

    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.

  8. nvassos
    Member
    Posted 2 years ago #

    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

  9. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 2 years ago #

    Glad you figured it out :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic