• 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
    • DB Error while upgrading to Beta 5

    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: DB Error while upgrading to Beta 5

    • Issue Tools
      • View Changes
    1. issueid=1187 March 1, 2010 5:21 AM
      hollosch hollosch is offline
      Senior Member
      DB Error while upgrading to Beta 5

      At step 2 (Fixing Forum Map):

      Code:
      Datenbankfehler in vBulletin 4.0.2:
      
      Invalid SQL:
      
      					UPDATE vb3_vault_forummap
      					SET namespaceid = CASE forumid
      						WHEN 263 THEN 6
      WHEN 266 THEN 2
      WHEN 268 THEN 3
      WHEN 269 THEN 4
      WHEN 270 THEN 5
      					END
      					WHERE forumid IN (263,266,268,269,270);
      
      MySQL-Fehler  : Duplicate entry '4-269' for key 1
      Fehler-Nr.    : 1062
      Fehler-Zeit   : Monday, 01.03.2010 @ 11:19:28
      Datum         : Monday, 01.03.2010 @ 11:19:28
      Skript        : http://www.wollmilchsau.org/forum/vault/install/upgrade_3x300b5.php?step=2
      Referrer      : http://www.wollmilchsau.org/forum/vault/install/upgrade_3x300b5.php?step=1
      IP-Adresse    : 78.43.55.112
      Benutzername  : admin
      Klassenname   : vB_Database
      MySQL-Version : 5.0.67-1~ui40+2
    Issue Details
    Issue Number 1187
    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 5
    Fixed Version 3.0.0 Beta 5
    Milestone VaultWiki 3.0.0
    Software DependencyAny
    Users able to reproduce bug 1
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. March 1, 2010 11:16 AM
      we_are_borg we_are_borg is offline
      Junior Member
      I have the same problem. Another problem is that the Wiki goes offline its not in the navbar anymore.
      Reply Reply  
    2. March 1, 2010 11:54 AM
      vimto vimto is offline
      Regular Member
      This issue note was made as an issue.
      Similar error for me:
      Code:
      UPDATE vault_forummap
      SET namespaceid = CASE forumid
           WHEN 38 THEN 6
      END
      WHERE forumid IN (38);
      
      MySQL Error : Duplicate entry '6-38' for key 1
      Error Number : 1062
      upgrade_3x300b5.php?step=2
      Reply Reply  
    3. March 1, 2010 12:31 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the current ZIP. Note that this occurs most likely if your wiki did not really experience the problem this upgrade step is attempting to fix.

      Download the ZIP again, replace the file vault/install/upgrade_3x300b5.php and run vault/install/upgrade_3x300b5.php?step=2

      @we_are_borg, it is normal for the wiki to disappear from the navbar during upgrades. The wiki is automatically disabled to prevent other users from throwing database errors while you are trying to run the upgrade script. The final step of the upgrader will enable it again.
      Reply Reply  
    4. This petition for a change to Awaiting Feedback was accepted
      March 1, 2010 1:26 PM
      hollosch hollosch is offline
      Senior Member
      Not working:
      Code:
      Parse error: syntax error, unexpected '}' in /path/to/my/domain/htdocs/forum/vault/install/upgrade_3x300b5.php on line 200
       
    5. March 1, 2010 1:39 PM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/install/upgrade_3x300b5.php, find:
      Code:
      			if (($vtype = $vbulletin->forumcache[$broke['forumid']]['vault_type']) > 0)
      Add before:
      Code:
      		while ($broke = $db->fetch_array($broken))
      		{
      			if ($j['d'] == 50)
      			{
      				$i['d']++;
      				$j['d'] = 1;
      			}
      			else
      			{
      				$j['d']++;
      			}
      Or just download the file again.
      Reply Reply  
    6. March 1, 2010 2:04 PM
      vimto vimto is offline
      Regular Member
      Working fine now, and all my templates look a LOT better.

      Thanks for the help.
      Reply Reply  
    7. March 1, 2010 4:36 PM
      hollosch hollosch is offline
      Senior Member
      thanks. works 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 1: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.