• 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
    • SQL error with clean installation of 2.5.0 on Step 1.

    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: SQL error with clean installation of 2.5.0 on Step 1.

    • Issue Tools
      • View Changes
    1. issueid=752 August 4, 2009 1:03 AM
      SAS SAS is offline
      New Member
      SQL error with clean installation of 2.5.0 on Step 1.

      When I beginning installation of VaultWiki, on Step 1) I got this error:
      Code:
      Invalid SQL:
      
      			CREATE TABLE IF NOT EXISTS vb_vault_article (
      			
      	threadid INT(11) UNSIGNED NOT NULL DEFAULT '0',
      	bookid INT(11) UNSIGNED NOT NULL DEFAULT '0',
      	lastmodified INT(11) UNSIGNED NOT NULL DEFAULT '0',
      	lastmodifiedbyid INT(11) UNSIGNED NOT NULL DEFAULT '0',
      	lastposterid INT(11) UNSIGNED NOT NULL DEFAULT '0',
      	pending INT(1) UNSIGNED NOT NULL DEFAULT '0',
      	templatelist TEXT NOT NULL DEFAULT '',
      	starting VARCHAR(1) NOT NULL DEFAULT '',
      	PRIMARY KEY (threadid),
      	INDEX bookid (bookid),
      	INDEX lastposterid (lastposterid),
      	INDEX pending (pending),
      	INDEX starting (starting)
      
      			);
      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 'starting VARCHAR(1) NOT NULL DEFAULT '',
      	PRIMARY KEY (threadid),
      	INDEX bookid ' at line 10
      
      
      My soft:
      OS: Windows (testing on localhost)
      PHP: 5.2.6
      MySQL: 5.0.45
    Issue Details
    Issue Number 752
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 2.5.0
    Fixed Version 2.5.0
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. August 4, 2009 1:12 AM
      SAS SAS is offline
      New Member
      Hmm...when I change all 'starting' to (for example) 'asdasd', SQL query running correctly...

      As I see, STARTING - is a reserved MySQL word --> http://dev.mysql.com/doc/refman/5.0/...ved-words.html
      Reply Reply  
    2. August 4, 2009 1:32 AM
      SAS SAS is offline
      New Member
      Issue solved:
      In the file /vault/install/mysql-create.php
      Search:
      Code:
      ###### ARTICLE ######
      vw_create_table('vault_article', "
      	threadid INT(11) UNSIGNED NOT NULL DEFAULT '0',
      	bookid INT(11) UNSIGNED NOT NULL DEFAULT '0',
      	lastmodified INT(11) UNSIGNED NOT NULL DEFAULT '0',
      	lastmodifiedbyid INT(11) UNSIGNED NOT NULL DEFAULT '0',
      	lastposterid INT(11) UNSIGNED NOT NULL DEFAULT '0',
      	pending INT(1) UNSIGNED NOT NULL DEFAULT '0',
      	templatelist TEXT NOT NULL DEFAULT '',
      	starting VARCHAR(1) NOT NULL DEFAULT '',
      	PRIMARY KEY (threadid),
      	INDEX bookid (bookid),
      	INDEX lastposterid (lastposterid),
      	INDEX pending (pending),
      	INDEX starting (starting)
      ");
      And replace with:
      Code:
      ###### ARTICLE ######
      vw_create_table('vault_article', "
      	threadid INT(11) UNSIGNED NOT NULL DEFAULT '0',
      	bookid INT(11) UNSIGNED NOT NULL DEFAULT '0',
      	lastmodified INT(11) UNSIGNED NOT NULL DEFAULT '0',
      	lastmodifiedbyid INT(11) UNSIGNED NOT NULL DEFAULT '0',
      	lastposterid INT(11) UNSIGNED NOT NULL DEFAULT '0',
      	pending INT(1) UNSIGNED NOT NULL DEFAULT '0',
      	templatelist TEXT NOT NULL DEFAULT '',
      	`starting` VARCHAR(1) NOT NULL DEFAULT '',
      	PRIMARY KEY (threadid),
      	INDEX bookid (bookid),
      	INDEX lastposterid (lastposterid),
      	INDEX pending (pending),
      	INDEX `starting` (`starting`)
      ");
      Reply Reply  
    3. August 4, 2009 6:17 AM
      pegasus pegasus is offline
      VaultWiki Team
      This was reported a week ago, so I'm surprised the ZIP still contained the problem. Thanks. Fixed now.
      Reply Reply  
    4. August 7, 2009 7:35 AM
      John John is offline
      New Member
      Not fixed at all... I just downloaded the latest version and I got this bug at step 1 also.. Pretty sloppy that such a bug is still there...

      EDIT:
      By the way: Thanks SAS, your solution worked for me.
      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 7:18 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.