• 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
    • Invalid SQL error on step 10 of installation

    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: Invalid SQL error on step 10 of installation

    • Issue Tools
      • View Changes
    1. issueid=1965 September 5, 2010 3:25 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Invalid SQL error on step 10 of installation

      Code:
      Warning: array_keys() [function.array-keys]: The first argument should be an array in [path]/vault/install/install_functions.php on line 86
      
      Warning: implode() [function.implode]: Invalid arguments passed in [path]/vault/install/install_functions.php on line 86
      Code:
      Database error in vBulletin 3.8.5:
      
      Invalid SQL:
      
      		UPDATE vb6_usergroup
      		SET vault_permissions = CASE usergroupid
      			WHEN 1 THEN 419
      	WHEN 2 THEN 419
      	WHEN 3 THEN 419
      	WHEN 4 THEN 419
      	WHEN 5 THEN 419
      	WHEN 6 THEN 511
      	WHEN 7 THEN 511
      	WHEN 8 THEN 419
      	WHEN 29 THEN 419
      	WHEN 30 THEN 419
      	WHEN 23 THEN 419
      	WHEN 14 THEN 419
      	WHEN 26 THEN 419
      	WHEN 22 THEN 419
      	WHEN 21 THEN 419
      	WHEN 12 THEN 419
      	WHEN 27 THEN 419
      	WHEN 16 THEN 419
      	WHEN 33 THEN 419
      	WHEN 13 THEN 419
      	WHEN 32 THEN 419
      	WHEN 35 THEN 419
      			END,
      	specialpage_permissions = CASE usergroupid
      			WHEN 1 THEN 254
      	WHEN 2 THEN 254
      	WHEN 3 THEN 254
      	WHEN 4 THEN 254
      	WHEN 5 THEN 254
      	WHEN 6 THEN 255
      	WHEN 7 THEN 255
      	WHEN 8 THEN 254
      	WHEN 29 THEN 254
      	WHEN 30 THEN 254
      	WHEN 23 THEN 254
      	WHEN 14 THEN 254
      	WHEN 26 THEN 254
      	WHEN 22 THEN 254
      	WHEN 21 THEN 254
      	WHEN 12 THEN 254
      	WHEN 27 THEN 254
      	WHEN 16 THEN 254
      	WHEN 33 THEN 254
      	WHEN 13 THEN 254
      	WHEN 32 THEN 254
      	WHEN 35 THEN 254
      			END,
      	vault_misc = CASE usergroupid
      			WHEN 1 THEN 0
      	WHEN 2 THEN 0
      	WHEN 3 THEN 0
      	WHEN 4 THEN 0
      	WHEN 5 THEN 0
      	WHEN 6 THEN 3
      	WHEN 7 THEN 3
      	WHEN 8 THEN 0
      			END
      		WHERE usergroupid IN ();
      
      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 ')' at line 60
      Error Number  : 1064
      Request Date  : Sunday, September 5th 2010 @ 09:20:12 PM
      Error Date    : Sunday, September 5th 2010 @ 09:20:12 PM
      Script        : /vault/install/install.php?step=10
      Referrer      : /vault/install/install.php?step=9
      Username      : Alfa1
      Classname     : vB_Database
      MySQL Version : 5.0.90-log
      Any idea how to fix this?
    Issue Details
    Issue Number 1965
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 3.0.3
    Fixed Version 3.0.4
    Milestone VaultWiki 3.0.5
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. September 6, 2010 3:54 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the current ZIP, although it doesn't make logical sense why the bug presents as above, without being preceded by a similar error message. In vault/install/install_functions.php, find:
      Code:
      array_keys($values[reset($fields)])
      Replace with:
      Code:
      array_keys($vbulletin->usergroupcache)
      Reply Reply  
    2. September 10, 2010 9:47 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      I cant find the former in the file, but can find the latter.
      Reply Reply  
    3. September 10, 2010 10:44 PM
      pegasus pegasus is offline
      VaultWiki Team
      Even with the edit, the step doesn't work in 3.0.3, so you can just continue and finish the installation. The step is supposed to set default permissions for all usergroups, but the code for this wasn't finished until 3.0.4 (not yet released). It's advised to set the permissions manually anyway.
      Reply Reply  
    4. September 11, 2010 6:27 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Ok. Thanks. I'll await 3.0.4 for further testing.
      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 12:41 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.