• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • [4.1 Beta 4] Admin cp: Analyze Area permissions: Call to a member function toArray() on null

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: [4.1 Beta 4] Admin cp: Analyze Area permissions: Call to a member function toArray() on null

    • Issue Tools
      • View Changes
    1. issueid=5901 October 19, 2019 12:08 PM
      ACL ACL is offline
      Regular Member
      [4.1 Beta 4] Admin cp: Analyze Area permissions: Call to a member function toArray() on null

      In XF2.1, an 'on null' function call error is encountered when attempting to analyze user permissions for a specific wiki Area. I do not experience this error when analyzing a user's global permission settings.

      Error: Call to a member function toArray() on null in src/addons/vw/vw/XF/Admin/Controller/Permission.php at line 193

      Code:
      vw\vw\XF\Admin\Controller\Permission->actionAnalyze() in src/XF/Mvc/Dispatcher.php at line 321
      XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 244
      XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
      XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
      XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2178
      XF\App->run() in src/XF.php at line 390
      XF::runApp() in admin.php at line 13
      Request state:
      Code:
      ["_GET"] => array(1) {
          ["permissions/analyze"] => string(0) ""
      }
      ["_POST"] => array(4) {
          ["username"] => string(3) "ACL"
          ["content_id"] => string(1) "8"
          ["content_type"] => string(6) "vwarea"
          ["_xfToken"] => string(8) "********"
      }
    Issue Details
    Issue Number 5901
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Admin Panel
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.1.0 Beta 4
    Fixed Version 4.1.0 Beta 4
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. October 21, 2019 8:04 AM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next build. In src/addons/vw/vw/Handler/Permission/Area.php, find:
      Code:
      	public function analyzeCombination(
      		\XF\Entity\PermissionCombination $combination, $contentId, array $basePerms, array $baseIntermediates
      	)
      	{
      		return [];
      	}
      Replace with:
      Code:
      	public function analyzeCombination(
      		\XF\Entity\PermissionCombination $combination, $contentId, array $basePerms, array $baseIntermediates
      	)
      	{
      		return ['vw_fake_permissions' => []];
      	}
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 12:42 PM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.