• d4mation

    (@d4mation)


    This may be a multisite-exclusive bug. Noticed it when I couldn’t log in today.

    PHP Fatal error: Uncaught Error: Call to a member function has_cap() on null in /wp-content/plugins/business-manager/business-manager.php:231\nStack trace:\n#0 /wp-content/plugins/business-manager/business-manager.php(177): Business_Manager->bm_roles()\n#1 /wp-content/plugins/business-manager/business-manager.php(81): Business_Manager->init()\n#2 /wp-content/plugins/business-manager/business-manager.php(49): Business_Manager->__construct()\n#3 /wp-content/plugins/business-manager/business-manager.php(337): Business_Manager::instance()\n#4 /wp-content/plugins/business-manager/business-manager.php(339): business_manager()\n#5 /wp-settings.php(388): include_once('/nas/content/li...')\n#6 /wp-config.php(146): require_once('/nas/content/li...')\n#7 /wp-load.php(37): require_once('/nas/content/li...')\n#8 /wp-admin/ in /wp-content/plugins/business-manager/business-manager.php on line 231

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Business Manager

    (@bzmngr)

    @d4mation Sorry to hear you’re having problems.

    That’s possibly multisite related. I don’t test in that environment, to be honest.

    I’ve got a few questions if you have the time to answer:

    1. Are you logging in as an administrator when you see this error? Or as a super administrator?
    2. If not, does your install even have an administrator role anymore?
    3. Are you running any plugins that deal with users or role management?

    I did some looking around and this seems to be a rare occurrence with other plugins as well. I’ve never seen it before but, with the release of 1.4.0, there’s so much new code for roles it’s certainly possible I screwed something up. Any insight you can give with those questions above would be greatly appreciated.

    Thread Starter d4mation

    (@d4mation)

    I totally get it. Multisite is a weird beast when it comes to writing plugin code ??

    1. I’m logging in as Super Admin. I am not a “Local” administrator on that subsite.
    2. There are “Local” admins for that subsite, but I am not one of them.
    3. I’m not running any that modify User Roles or anything like that. But there are plugins that created Roles such as EDD running. And User Switching is running as well, but I was not switched to another user when this happened as it happened from a fresh login.

    Plugin Author Business Manager

    (@bzmngr)

    Let me look into this some more this weekend and get back to you. I’ve already found a few suggestions from other plugin writers but they all seem messy (like creating a separate plugin to run inside of the mu-plugins directory to create custom roles).

    Can you roll back to a previous version of Business Manager to escape the error? That might be your best bet, temporarily, until I can figure out what is going on.

    I have a new release, 1.4.1, that I was going to push live soon. Maybe with some luck, I can figure this out and get the fix in there.

    Plugin Author Business Manager

    (@bzmngr)

    @d4mation Any chance you can email me at support@linksoftwarellc.com sometime? I have a few questions about your site and some records in its database.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error when trying to process capabilites’ is closed to new replies.