• 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 3.x Series
    • Bug
    • MySQL Error in Upgrade to 3.0

    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: MySQL Error in Upgrade to 3.0

    • Issue Tools
      • View Changes
    1. issueid=975 January 6, 2010 3:09 PM
      Mokonzi Mokonzi is offline
      Senior Member
      MySQL Error in Upgrade to 3.0
      MySQL Error during the Upgrade process to 3.0

      I'm getting this MySQL error immediately after the upgrade to 2.5.7 (starting from 2.5.6, it upgrades to 2.5.7 then the following):

      PHP Code:
      Database error in vBulletin 4.0.0:

      Invalid SQL:

                      
      REPLACE INTO vb3_vault_upgradelog
                          
      (upgradetype, version)
                      
      VALUES
                      
      (
                          
      '3X',
                          
      '2.5.7'
                      
      );

      MySQL Error   : Table 'vb3.vb3_vault_upgradelog' doesn't exist
      Error Number  : 1146
      Request Date  : Wednesday, January 6th 2010 @ 08:07:19 PM
      Error Date    : Wednesday, January 6th 2010 @ 08:07:20 PM
      Script        : http://www.mysite.com/forum/vault/install/upgrade_3x257.php?step=3
      Referrer      : http://www.mysite.com/forum/vault/install/upgrade_3x257.php?step=2
      IP Address    : 
      Username      : 
      Classname     : vB_Database
      MySQL Version : 5.1.36-community-log 
    Issue Details
    Issue Number 975
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 3.0.0 Beta 1
    Fixed Version 3.0.0 Beta 1
    Milestone VaultWiki 3.0.0
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. January 6, 2010 3:42 PM
      pegasus pegasus is offline
      VaultWiki Team
      Yes this occurs if you upgrade from a version prior to 2.5.7 using the new script. Fixed in the current ZIP. In vault/install/upgradecore.php, find:
      Code:
      			$vbulletin->db->query_write("
      				REPLACE INTO " . TABLE_PREFIX . "vault_upgradelog
      					(upgradetype, version)
      				VALUES
      				(
      					'" . $vbulletin->db->escape_string(VAULT_VERSION_KEY) . "',
      					'" . $vbulletin->db->escape_string(VERSION) . "'
      				)
      			");
      Replace with:
      Code:
      			if (VAULT_VERSION_KEY != '3X' OR is_newer_version(VERSION, '2.5.7'))
      			{
      				$vbulletin->db->query_write("
      					REPLACE INTO " . TABLE_PREFIX . "vault_upgradelog
      						(upgradetype, version)
      					VALUES
      					(
      						'" . $vbulletin->db->escape_string(VAULT_VERSION_KEY) . "',
      						'" . $vbulletin->db->escape_string(VERSION) . "'
      					)
      				");
      			}
      Then just refresh the page to update the version number.
      Reply Reply  
    2. January 6, 2010 7:30 PM
      Mokonzi Mokonzi is offline
      Senior Member
      Works a treat, thanks Peg.
      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 5:24 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.