• 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
    • in_array() expects parameter 2 to be array, null given

    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: in_array() expects parameter 2 to be array, null given

    • Issue Tools
      • View Changes
    1. issueid=4490 December 27, 2015 11:20 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      in_array() expects parameter 2 to be array, null given

      Import from VW3 to 4.0.8b1
      Step 20
      Code:
      Importing edits to wiki pages
      
      in_array() expects parameter 2 to be array, null given
      
          vw_CP_Progress_View->handle_php_error()
          in_array() in vault/core/controller/import/handle/vw3/revision/vw.php at line 227
          vw_Import_Handle_VW3_Revision_Controller->add_edit() in vault/core/controller/import/handle/vw3/revision/vw.php at line 203
          vw_Import_Handle_VW3_Revision_Controller->do_edit() in vault/core/controller/import/handle/vw3/revision/vw.php at line 140
          vw_Import_Handle_VW3_Revision_Controller->do_edits() in vault/core/controller/import/steps/vw3/vw.php at line 440
          {closure}() in vault/core/controller/progress/vw.php at line 100
          vw_Progress_Controller->call() in vault/core/controller/cp/impex/vw.php at line 114
          vw_CP_ImpEx_Controller->import() in vault/core/controller/cp/impex/vw.php at line 35
          vw_CP_ImpEx_Controller->execute() in vault/helper/vb/global.php at line 64
          require_once() in admincp/wiki_cp.php at line 24
    Issue Details
    Issue Number 4490
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Importing
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.8
    Fixed Version 4.0.8
    Milestone (none)
    Software DependencyvBulletin 3.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. December 28, 2015 2:24 PM
      pegasus pegasus is offline
      VaultWiki Team
      In order for this error to occur, the following conditions must be true:
      • You must have already done a previous import from the same source database, AND
      • You have not modified the import config file since that import, AND
      • You deleted the previously imported data from the target database, AND
      • You did not delete the importer logs from the previous import


      By any chance did you manually remove data from any tables between import attempts? If so, which tables?
      Reply Reply
    2. December 28, 2015 5:31 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Quote Originally Posted by pegasus
      In order for this error to occur, the following conditions must be true:
      • You must have already done a previous import from the same source database, AND
      • You have not modified the import config file since that import, AND
      • You deleted the previously imported data from the target database, AND
      • You did not delete the importer logs from the previous import
      Correct. Should I have modified the import file?
      Where do I delete the import logs? In the DB or somewhere in VW?
      I assume that the previously imported data was deleted by uninstalling VW4.

      Quote Originally Posted by pegasus
      By any chance did you manually remove data from any tables between import attempts? If so, which tables?
      I did not remove anything from the DB. But the uninstaller may have done so.

      So what do I do now? Uninstall again and remove the logs, then import again?
      Reply Reply
    3. December 29, 2015 8:59 AM
      pegasus pegasus is offline
      VaultWiki Team
      The import logs should also have been removed by the uninstall process. It is possible this did not happen. I will test it myself.
      Reply Reply
    4. December 30, 2015 12:23 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed. The uninstall process was not executing a block of code that removed non-Lite-version tables. The behavior was consistent in both vBulletin and XenForo. Additionally, temporary tables were not removed if the forum used a table prefix.
      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 8:08 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 © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.