• 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
    • Incompatibility with XenCentral Multisite

    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: Incompatibility with XenCentral Multisite

    • Issue Tools
      • View Changes
    1. issueid=5106 June 13, 2017 6:21 PM
      Forsaken Forsaken is offline
      Junior Member
      Incompatibility with XenCentral Multisite
      Error when accessing site configuration.

      When VaultWiki is enabled, when trying to modify a sites configuration I will get the following error.

      Code:
      ErrorException: method_exists() expects parameter 2 to be string, array given - vault/core/model/ui/vw.php:60
      
      #0 [internal function]: XenForo_Application::handlePhpError(2, 'method_exists()...', '/home...', 60, Array)
      #1 /home/community/vault/core/model/ui/vw.php(60): method_exists(Object(vw_UI_Tab_Area_Model), Array)
      #2 /home/community/vault/core/view/form/vw.php(53): vw_UI_Model->check(Array, Array)
      #3 /home/community/library/XenCentral/MultiSite/Filters/VaultWiki/Area.php(43): vw_Form_View->area_select(Array, 0, '', Array)
      #4 /home/community/library/XenCentral/MultiSite/ViewAdmin/Base.php(66): XenCentral_MultiSite_Filters_VaultWiki_Area->getTemplateVariables(Array)
      #5 /home/community/library/XenCentral/MultiSite/ViewAdmin/Base.php(16): XenCentral_MultiSite_ViewAdmin_Base->_renderFilters(Array)
      #6 /home/community/library/XenForo/ViewRenderer/Abstract.php(229): XenCentral_MultiSite_ViewAdmin_Base->renderHtml()
      #7 /home/community/library/XenForo/ViewRenderer/HtmlAdmin.php(78): XenForo_ViewRenderer_Abstract->renderViewObject('XenCentral_Mult...', 'Html', Array, 'xcmss_add_domai...')
      #8 /home/community/library/XenForo/FrontController.php(607): XenForo_ViewRenderer_HtmlAdmin->renderView('XenCentral_Mult...', Array, 'xcmss_add_domai...', NULL)
      #9 /home/community/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlAdmin), Array)
      #10 /home/community/admin.php(13): XenForo_FrontController->run()
      #11 {main}
    Issue Details
    Issue Number 5106
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Admin Panel
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.0.18
    Fixed Version 4.0.18
    Milestone (none)
    Software DependencyXenForo 1.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. June 14, 2017 9:08 AM
      pegasus pegasus is offline
      VaultWiki Team
      The format of vw_Form_View::area_select arguments have changed slightly in 4.0.18 in order to improve permissions handling. This may have broken a few add-ons. In general, it is still recommended that those add-ons update to use the new format if 4.0.18 is detected; however, it may be possible to add *partial* backwards compatibility for add-ons that were designed for earlier versions of VaultWiki only, so that at least an error won't be thrown.

      In vault/core/view/form/vw.php, find:
      Code:
      		$any_enabled[$depth + 1] = false;
      Before it, add:
      Code:
      		if (is_array($permission))
      		{
      			// try to make some backwards compatibility for old addons
      
      			$working = $permission;
      			$new_permission = '';
      			$new_allow_items = array();
      			$allow_pagetypes = array();
      			$pagetypeid = vw_Hard_Core::model('Node')->id('Page');
      
      			if (isset($permission['Area']) AND $permission['Area'] == array('canview'))
      			{
      				$new_permission = '';
      				unset($working['Area']);
      			}
      
      			if (is_array($allow_items))
      			{
      				foreach ($allow_items AS $allowtypeid)
      				{
      					$allowtype = vw_Hard_Core::model('Node')->one($allowtypeid);
      
      					if ($allowtype AND $allowtype['isPage'])
      					{
      						$allow_pagetypes[] = $allowtype['id'];
      					}
      				}
      			}
      
      			foreach ($working AS $workkey => $workcans)
      			{
      				$workcans = substr($workcans, 3);
      
      				if ($workcans == 'view')
      				{
      					$workcans = 'main';
      				}
      
      				$worktype = vw_Hard_Core::model('Node')->one($workkey);
      
      				if (!$worktype)
      				{
      					continue;
      				}
      
      				$test = array(
      					'itemtypeid' => $worktype['isPage'] ? $pagetypeid : $worktype['id']
      				);
      
      				if ($worktype['isPage'])
      				{
      					$test['typelist'] = array($pagetypeid);
      
      					if ($pagetypeid != $worktype['id'])
      					{
      						$test['typelist'][] = $worktype['id'];
      					}
      
      					if ($allow_pagetypes)
      					{
      						$test['typelist'] = array_merge($test['typelist'], $allow_pagetypes);
      					}
      				}					
      
      				$new_allow_items[] = $test;
      				$new_permission = 'can_' . $workcans . '_tab';
      			}
      
      			$permission = $new_permission;
      			$allow_items = $new_allow_items;
      		}
      Reply Reply  
    2. June 14, 2017 2:46 PM
      Forsaken Forsaken is offline
      Junior Member
      Code:
      An exception occurred: Undefined variable: workkey in /home/community/vault/core/view/form/vw.php on line 74
      
      XenForo_Application::handlePhpError() in /home/community/vault/core/view/form/vw.php at line 74
      vw_Form_View->area_select() in XenCentral/MultiSite/Filters/VaultWiki/Area.php at line 43
      XenCentral_MultiSite_Filters_VaultWiki_Area->getTemplateVariables() in XenCentral/MultiSite/ViewAdmin/Base.php at line 66
      XenCentral_MultiSite_ViewAdmin_Base->_renderFilters() in XenCentral/MultiSite/ViewAdmin/Base.php at line 16
      XenCentral_MultiSite_ViewAdmin_Base->renderHtml() in XenForo/ViewRenderer/Abstract.php at line 229
      XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlAdmin.php at line 78
      XenForo_ViewRenderer_HtmlAdmin->renderView() in XenForo/FrontController.php at line 607
      XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
      XenForo_FrontController->run() in /home/community/admin.php at line 13
      Now I get this error.
      Reply Reply  
    3. June 15, 2017 4:21 AM
      Forsaken Forsaken is offline
      Junior Member
      XenCentral got back to me with a fix so hopefully they release it publicly soon.
      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 7:37 AM.
    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.