• 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
    • Upgrading after reinstall - Unknown column 'icondata' in 'field list'

    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: Upgrading after reinstall - Unknown column 'icondata' in 'field list'

    • Issue Tools
      • View Changes
    1. issueid=4471 December 9, 2015 4:54 PM
      boldplan boldplan is offline
      New Member
      Upgrading after reinstall - Unknown column 'icondata' in 'field list'
      Manual upgrade got stopped

      Updating 4.0.5 (I believe) to the current:
      Code:
      Updating data in table: vw_feed
      An exception occurred: Database Error: SELECT feedid,icondata FROM `vw_feed` ORDER BY feedid ASC LIMIT 0,500 Mysqli prepare error: Unknown column 'icondata' in 'field list' in /home/mysite/public_html/vault/core/controller/db/xf.php on line 171
      vw_DB_Controller_XF->throw_error() in vault/core/controller/db/xf.php at line 185
      vw_DB_Controller_XF->query_read() in vault/core/model/db/mysql/vw.php at line 29
      vw_DB_MySQL_Model->select() in vault/core/controller/install/upgradepath/steps/4/0/6/base/vw.php at line 356
      vw_Install_UpgradePath_Steps_406_base_Controller->{closure}() in vault/core/controller/install/upgradepath/vw.php at line 63
      vw_Install_UpgradePath_Controller->call() in vault/core/controller/cp/install/vw.php at line 361
      vw_CP_Install_Controller->exec_step() in vault/core/controller/cp/install/vw.php at line 326
      vw_CP_Install_Controller->upgrade_type() in vault/core/controller/cp/install/vw.php at line 263
      vw_CP_Install_Controller->upgrade() in vault/core/controller/cp/install/vw.php at line 59
      vw_CP_Install_Controller->execute() in library/vw/XenForo/ControllerAdmin/Wiki.php at line 113
      vw_XenForo_ControllerAdmin_Wiki->actionIndex() in library/vw/XenForo/ControllerAdmin/Wiki.php at line 170
      vw_XenForo_ControllerAdmin_Wiki->actionUpgrade() in library/XenForo/FrontController.php at line 351
      XenForo_FrontController->dispatch() in library/XenForo/FrontController.php at line 134
      XenForo_FrontController->run() in admin.php at line 13
    Issue Details
    Issue Number 4471
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.5
    Fixed Version 4.0.8
    Milestone (none)
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. December 10, 2015 9:33 AM
      pegasus pegasus is offline
      VaultWiki Team
      Took a while to figure this out, but this is because you uninstalled between versions 4.0.0-4.0.2 as you mentioned here: https://www.vaultwiki.org/issues/4165/

      The uninstaller is better at uninstalling mixed versions in newer releases (i.e. when the files have a different version than the database version), but it's still not recommended these days because similar problems can still arise.

      Comparing what would have happened with your reported mixed versions, and considering how far you already made it in the "upgrade" from 4.0.0, you might only need to run this query:
      Code:
      ALTER TABLE vw_feed
      ADD COLUMN icondata VARCHAR(255) NOT NULL DEFAULT ''
      Then you can refresh the upgrade script and try again.

      Since there are so many different combinations of possible mixed versions you can use to really screw up your database when you uninstall with the intent of (even eventually) reinstalling, it would be hard to handle them all. The best solution for the next release would be for the installer to validate any existing tables it detects to make sure they have the expected schema. Currently it thinks an existing table is there because you accidentally double-clicked the "Next Step" button.
      Reply Reply
    2. December 10, 2015 11:13 AM
      pegasus pegasus is offline
      VaultWiki Team
      In response to my previous comment about a "best solution for the next release," there is no way to automatically detect and "fix" when a database has been damaged by mixed file versions without explicitly stipulating how the resulting damage will look, without risk of further data loss. Any automatic detection will raise a false positive during an upgrade from the Lite version, resulting in catastrophic data losses during that upgrade.

      We will continue to fix possible causes of damage resulting from mixed file versions or from incomplete uninstall processing if there is a flaw in the related process, but we will not be able to auto-detect and correct the damage itself that results from a random case. Whenever mixed file versions or an incomplete uninstall is the culprit, there must always be a human investigation of the flawed database before a fix can be issued.

      Making the change in my previous post should correct the damage that I see in your case.

      I have made the appropriate changes to the 4.0.6 upgrade script to detect this particular case and workaround matching damage as of the next release.
      Reply Reply
    3. December 11, 2015 5:31 PM
      boldplan boldplan is offline
      New Member
      Thanks for the very quick reply. Have one more issue now with 4.0.7
      Code:
      Upgrading to 4.0.7
      Step 7
      
      Updating data in table: xf_search_index
      An exception occurred: Database Error: SELECT `l`.*,`ch`.*,`c`.*,`i`.*,`r`.*,`page`.*,`likes`.`likes`,`likes`.`like_users`, IF(`sub`.`userid`, 1, 0) AS `issubscribed`,`mk`.`readtime`,`l`.`userid` AS `translate_userid`,`ch`.`userid` AS `chapter_userid`,`r`.`dateline` AS `edit_dateline`,`r`.`flags` + 0 AS `flags`,`r`.`parentid` AS `edit_parentid`,`page`.`pageid` FROM `vw_page` `page` LEFT JOIN `vw_route` `i` ON (`page`.`pageid` = `i`.`itemid` AND `i`.`itemtypeid` = 1) LEFT JOIN `vw_counter` `c` ON (`c`.`pageid` = `page`.`pageid`) LEFT JOIN `vw_revision` `r` ON (`r`.`revisionid` = `page`.`revisionid`) LEFT JOIN `vw_chapter` `ch` ON (`page`.`pageid` = `ch`.`pageid`) LEFT JOIN `vw_langitem` `l` ON (`page`.`pageid` = `l`.`pageid`) LEFT JOIN `vw_markread` `mk` ON (`mk`.`itemtypeid` = 1 AND `mk`.`itemid` = `page`.`pageid` AND `mk`.`userid` = 2962) LEFT JOIN `vw_subscribe` `sub` ON (`sub`.`nodetypeid` = 1 AND `sub`.`nodeid` = `page`.`pageid` AND `sub`.`userid` = 2962) LEFT JOIN `vw_likes` `likes` ON (`likes`.`itemtypeid` = 1 AND `likes`.`itemid` = `page`.`pageid`) WHERE `page`.`areaid` = 0 Mysqli prepare error: Unknown column 'c.pageid' in 'on clause' in /home/aspace/public_html/vault/core/controller/db/xf.php on line 171
      vw_DB_Controller_XF->throw_error() in vault/core/controller/db/xf.php at line 185
      vw_DB_Controller_XF->query_read() in vault/core/model/db/mysql/vw.php at line 29
      vw_DB_MySQL_Model->select() in vault/core/controller/fetch/vw.php at line 211
      vw_Fetch_Controller->get() in vault/core/controller/fetch/vw.php at line 493
      vw_Fetch_Controller->get_index() in vault/core/controller/fetch/vw.php at line 308
      vw_Fetch_Controller->return_the_index() in vault/core/controller/fetch/vw.php at line 123
      vw_Fetch_Controller->get() in library/vw/XenForo/Search/DataHandler/Base.php at line 60
      vw_XenForo_Search_DataHandler_Base->_insertIntoIndex() in library/vw/XenForo/Search/DataHandler/vwPage.php at line 49
      vw_XenForo_Search_DataHandler_vwPage->_insertIntoIndex() in library/XenForo/Search/DataHandler/Abstract.php at line 275
      XenForo_Search_DataHandler_Abstract->insertIntoIndex() in vault/core/controller/install/upgradepath/steps/4/0/7/C/xf.php at line 157
      vw_Install_UpgradePath_Steps_407_C_Controller_XF->{closure}() in vault/core/controller/install/upgradepath/vw.php at line 63
      vw_Install_UpgradePath_Controller->call() in vault/core/controller/cp/install/vw.php at line 361
      vw_CP_Install_Controller->exec_step() in vault/core/controller/cp/install/vw.php at line 326
      vw_CP_Install_Controller->upgrade_type() in vault/core/controller/cp/install/vw.php at line 263
      vw_CP_Install_Controller->upgrade() in vault/core/controller/cp/install/vw.php at line 59
      vw_CP_Install_Controller->execute() in library/vw/XenForo/ControllerAdmin/Wiki.php at line 113
      vw_XenForo_ControllerAdmin_Wiki->actionIndex() in library/vw/XenForo/ControllerAdmin/Wiki.php at line 170
      vw_XenForo_ControllerAdmin_Wiki->actionUpgrade() in library/XenForo/FrontController.php at line 351
      XenForo_FrontController->dispatch() in library/XenForo/FrontController.php at line 134
      XenForo_FrontController->run() in admin.php at line 13
      Reply Reply
    4. December 12, 2015 3:02 PM
      pegasus pegasus is offline
      VaultWiki Team
      That error occurs when upgrading 4.0.3 directly to 4.0.7 (so I guess your estimate of 4.0.5 was off). To workaround the issue without making any file edits, go to Options > Options > Debug Options > VaultWiki Version, and change the value (which is probably "4.0.3") to "4.0.6"
      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:30 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.