• 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
    • Database Error on upgrade script.

    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: Database Error on upgrade script.

    • Issue Tools
      • View Changes
    1. issueid=1267 March 14, 2010 10:26 AM
      vimto vimto is offline
      Regular Member
      Database Error on upgrade script.
      Database error in vBulletin 4.0.2

      I've just tried upgrading from the vb3 version and have come across this error while running the upgrade script.

      Any help is appreciated.

      Code:
      Database error in vBulletin 4.0.2:
      
      Invalid SQL:
      
      			SHOW COLUMNS FROM vault_category
      			WHERE Field IN ('categoryid', 'title_lower');
      
      MySQL Error   : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE Field IN ('categoryid', 'title_lower')' at line 2
      Error Number  : 1064
      Request Date  : Sunday, March 14th 2010 @ 02:21:13 PM
      Error Date    : Sunday, March 14th 2010 @ 02:21:13 PM
      Script        : http://www.mywebsite.co.uk/forums/vault/install/upgrade_3p300b1.php?step=2
      Referrer      : http://www.mywebsite.co.uk/forums/vault/install/upgrade_3p300b1.php?step=1
      IP Address    : xxxxxxx
      Username      : xxxxxx
      Classname     : vB_Database
      MySQL Version : 4.1.22-log
    Issue Details
    Issue Number 1267
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 1 - Security / Login / Data Loss
    Affected Version 3.0.0 Beta 6
    Fixed Version 3.0.0 Beta 6
    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. March 14, 2010 12:50 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the current ZIP.

      This is a conflict with MySQL < 5, because it doesn't yet accept WHERE expressions in the SHOW syntax. In vault/install/upgrade_3p300b1.php, find:
      Code:
      			SHOW COLUMNS FROM " . TABLE_PREFIX . "vault_category
      			WHERE Field IN ('categoryid', 'title_lower')
      Replace with:
      Code:
      			SHOW COLUMNS FROM " . TABLE_PREFIX . "vault_category
      Reply Reply  
    2. March 14, 2010 1:13 PM
      vimto vimto is offline
      Regular Member
      Many thanks, The rest of the install worked fine.
      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 10:24 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 © 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.