• 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
    • Cannot install on XenForo v2.0.12

    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: Cannot install on XenForo v2.0.12

    • Issue Tools
      • View Changes
    1. issueid=5580 January 5, 2019 4:29 AM
      badgernz badgernz is offline
      New Member
      Cannot install on XenForo v2.0.12
      Vault Wiki Errors upon attempting to install

      Hello, I was just trying to install the latest version of VaultWiki (410a1b4) on XenForo v2.0.12 and it fails to install and displays the following error.

      Code:
      InvalidArgumentException: Attempted to convert array to string/binary [topiclist] in src/XF/Mvc/Entity/Entity.php at line 697
      XF\Mvc\Entity\Entity->_castValueToType() in src/addons/vw/vw/XF/Entity/Entity.php at line 735
      vw\vw\XF\Entity\Entity->_castValueToType() in src/addons/vw/vw/XF/Entity/Entity.php at line 362
      vw\vw\XF\Entity\Entity->_verifyValueCustom() in src/XF/Mvc/Entity/Entity.php at line 570
      XF\Mvc\Entity\Entity->set() in src/addons/vw/vw/XF/Entity/Entity.php at line 356
      vw\vw\XF\Entity\Entity->set() in src/addons/vw/vw/_core/controller/dm/xf2.php at line 197
      vw_DM_Controller_XF2->set() in src/addons/vw/vw/_install/lib/db/insert/vw.php at line 304
      vw_Install_DB_Insert_Controller->execute_dm() in src/addons/vw/vw/_install/lib/full/steps/vw.php at line 140
      vw_Install_Full_Steps_Controller->{closure}() in src/addons/vw/vw/Setup.php at line 260
      vw\vw\Setup->vwRunStep() in src/addons/vw/vw/Setup.php at line 187
      vw\vw\Setup->install() in src/XF/Admin/Controller/AddOn.php at line 393
      XF\Admin\Controller\AddOn->actionInstall() in src/XF/Mvc/Dispatcher.php at line 249
      XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88
      XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
      XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1934
      XF\App->run() in src/XF.php at line 333
      XF::runApp() in admin.php at line 13
    Issue Details
    Issue Number 5580
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.1.0 Alpha 1 Public
    Fixed Version 4.1.0 Alpha 1 Public
    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 install, xenforo




    1. January 5, 2019 10:06 AM
      pegasus pegasus is offline
      VaultWiki Team
      Please let me know if the following resolves your issue.

      In src/addons/vw/vw/_core/controller/dm/xf2.php, find:
      Code:
      $options['type'] = $this->validate_type($type);
      BEFORE it, add:
      Code:
      $options['vw-type'] = $type;
      In src/addons/vw/vw/XF/Entity/Entity.php, find:
      Code:
      $value = parent::_castValueToType($value, $key, $type, $columnOptions);
      BEFORE it, add:
      Code:
      		if (!empty($columnOptions['vw-type']))
      		{
      			switch ($columnOptions['vw-type'])
      			{
      				case 'ARRAY':
      					if (is_array($value))
      					{
      						return $value;
      					}
      					return [];
      
      				case 'ARRAY_STR':
      					if (is_array($value))
      					{
      						$newarray = [];
      
      						foreach ($value AS $el)
      						{
      							$newarray = strval($el);
      						}
      
      						return $newarray;
      					}
      					return [];
      
      				case 'ARRAY_UINT':
      					$unsigned = true;
      				case 'ARRAY_INT':
      					if (is_array($value))
      					{
      						$newarray = [];
      
      						foreach ($value AS $el)
      						{
      							$el = intval($el);
      
      							if (!empty($unsigned) AND (0 > $el))
      							{
      								$el *= -1;
      							}
      
      							$newarray[] = $el;
      						}
      
      						return $newarray;							
      					}
      					return [];
      			}
      		}
      Please note the above box probably has a scrollbar.
      Reply Reply  
    2. January 5, 2019 3:19 PM
      badgernz badgernz is offline
      New Member
      Thanks for that, that did fix the original issue, however this new issue popped up...

      Code:
      ErrorException: [E_WARNING] Illegal offset type in src/addons/vw/vw/_core/model/settings/xf2.php at line 122
      XF::handlePhpError()
      ArrayObject->offsetExists() in src/addons/vw/vw/_core/model/settings/xf2.php at line 122
      vw_Settings_Model_XF2->_isset() in src/addons/vw/vw/_core/model/settings/xf2.php at line 219
      vw_Settings_Model_XF2->create() in src/addons/vw/vw/_core/model/settings/xf2.php at line 162
      vw_Settings_Model_XF2->update() in src/addons/vw/vw/_core/controller/install/vw.php at line 126
      vw_Install_Controller->set_version() in src/addons/vw/vw/Setup/Caller/AbstractCaller.php at line 302
      vw\vw\Setup\Caller\AbstractCaller->set_version() in src/addons/vw/vw/Setup/Caller/Install.php at line 69
      vw\vw\Setup\Caller\Install->complete() in src/addons/vw/vw/Setup.php at line 203
      vw\vw\Setup->install() in src/XF/Admin/Controller/AddOn.php at line 393
      XF\Admin\Controller\AddOn->actionInstall() in src/XF/Mvc/Dispatcher.php at line 249
      XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88
      XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
      XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1934
      XF\App->run() in src/XF.php at line 333
      XF::runApp() in admin.php at line 13
      Reply Reply  
    3. January 6, 2019 11:28 AM
      pegasus pegasus is offline
      VaultWiki Team
      In src/addons/vw/vw/_core/model/settings/xf2.php, find:
      Code:
      $create["$varname"] = $value;
      Replace with:
      Code:
      				$create["$varname"] = array(
      					'varname' => $varname,
      					'value' => $value
      				);
      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 11:33 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.