• 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
    • ErrorException: unserialize() expects exactly 1 parameter, 2 given in src/addons/vw/vw/_core/controller/fetch/vw.php at line 825

    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: ErrorException: unserialize() expects exactly 1 parameter, 2 given in src/addons/vw/vw/_core/controller/fetch/vw.php at line 825

    • Issue Tools
      • View Changes
    1. issueid=5645 February 14, 2019 12:41 PM
      Daniel Nenni Daniel Nenni is offline
      New Member
      ErrorException: unserialize() expects exactly 1 parameter, 2 given in src/addons/vw/vw/_core/controller/fetch/vw.php at line 825

      PHP Code:
      ErrorException: unserialize() expects exactly 1 parameter, 2 given in src/addons/vw/vw/_core/controller/fetch/vw.php at line 825

          vw
      \vw\Setup\View->handle_php_error()
          
      unserialize() in src/addons/vw/vw/_core/controller/fetch/vw.php at line 825
          vw_Fetch_Controller
      ->unpack() in src/addons/vw/vw/_core/controller/fetch/vw.php at line 442
          vw_Fetch_Controller
      ->get() in src/addons/vw/vw/_core/model/url/xf2.php at line 71
          vw_URL_Model_XF2
      ->affix_prefix() in src/addons/vw/vw/_core/model/url/vw.php at line 609
          vw_URL_Model
      ->create_from_title() in src/addons/vw/vw/_core/controller/dm/base/routable/vw.php at line 315
          vw_DM_Base_Routable_Controller
      ->get_path() in src/addons/vw/vw/_core/controller/dm/special/vw.php at line 162
          vw_DM_Special_Controller
      ->pre_save() in src/addons/vw/vw/XF/Entity/Entity.php at line 435
          vw
      \vw\XF\Entity\Entity->_preSave() in src/XF/Mvc/Entity/Entity.php at line 1248
          XF
      \Mvc\Entity\Entity->preSave() in src/addons/vw/vw/XF/Entity/Entity.php at line 426
          vw
      \vw\XF\Entity\Entity->vwPreSave() in src/addons/vw/vw/XF/Entity/Entity.php at line 481
          vw
      \vw\XF\Entity\Entity->vwSave() in src/addons/vw/vw/_core/controller/dm/xf2.php at line 363
          vw_DM_Controller_XF2
      ->save() in src/addons/vw/vw/_install/lib/db/insert/vw.php at line 307
          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 89
          XF
      \Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
          XF
      \Mvc\Dispatcher->run() in src/XF/App.php at line 1931
          XF
      \App->run() in src/XF.php at line 329
          XF
      ::runApp() in admin.php at line 13 
      We did recently change from php5.6 to 7.0, actually it's set as 7.0 overall but using htaccess to set some software to 5.6 for now until updated (Xenforo test site is running php7). I tried rebuilding from add-on options first, then tried a complete uninstall/re-install, any ideas? If this needs to run php5.6 or similar let me know so we can switch but would prefer to use php7 for security and other reasons.
    Issue Details
    Issue Number 5645
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 1 - Security / Login / Data Loss
    Affected Version 4.1.0 Alpha 2
    Fixed Version 4.1.0 Alpha 2
    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. February 14, 2019 2:22 PM
      pegasus pegasus is offline
      VaultWiki Team
      If you are receiving this error then your environment might actually be using PHP 5.6 or a 7 Beta/RC, as the second parameter was added in 7.0.0: http://php.net/manual/en/function.unserialize.php

      Fixed in the next build by checking the PHP version and omitting the second argument if that version is lower than 7.0.0.

      In src/addons/vw/vw/_core/controller/fetch/vw.php, find:
      Code:
      return unserialize($result, array('allowed_classes' => false));
      Replace with:
      Code:
      			static $php7;
      
      			if ($php7 === null)
      			{
      				$php7 = (version_compare(PHP_VERSION, '7.0.0') >= 0);
      			}
      
      			if ($php7)
      			{
      				return unserialize($result, array('allowed_classes' => false));
      			}
      
      			return unserialize($result);
      Reply Reply  
    2. February 15, 2019 9:38 AM
      Daniel Nenni Daniel Nenni is offline
      New Member
      Ahh I see, makes sense and with the file change install is proceeding normally.

      Side Note: When will the importer be done for the new Xenforo version? You can pm if you wish, thanks for the help .
      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:33 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.