• 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
    • 3.0.0 Beta 4 Update Error

    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: 3.0.0 Beta 4 Update Error

    • Issue Tools
      • View Changes
    1. issueid=1939 August 19, 2010 11:17 PM
      Elenna Elenna is offline
      Junior Member
      3.0.0 Beta 4 Update Error
      Upgrading produces a "This file cannot be accessed directly" error.

      I am upgrading to the latest version (3.0.3), and on the 3.0.0 Beta 4 upgrade (upgrade_3p300b4.php) it gives a "This file cannot be accessed directly" error.

      This seems to point to something in the upgrade_functions.php file. When I remove the This_Script != section, I get:
      Code:
      Fatal error: Class 'vB_Bitfield_Builder' not found in /vault/install/install_functions.php on line 39
    Issue Details
    Issue Number 1939
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 3.0.0 Beta 4
    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 upgrade




    1. August 20, 2010 12:32 AM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the current ZIP. In vault/install/install_functions.php, find:
      Code:
      	$permobj =& vB_Bitfield_Builder::init();
      Add before:
      Code:
      	require_once(DIR . '/includes/class_bitfield_builder.php');
      Also remove the section you mentioned in your post.
      Reply Reply  
    2. August 21, 2010 10:45 AM
      Elenna Elenna is offline
      Junior Member
      Thank you for that! That did fix that error. I now have a different error, though. I'm replying here, but let me know if I should submit a second bug?

      Anyway, here is the new error message from the upgrade screen. This is still on the 3.0.0 Beta 4 upgrade script.
      Code:
      # Altering vault_article table
      # Altering usergroup table
      
      Warning: Invalid argument supplied for foreach() in [path]/vault/install/install_functions.php on line 43
      
      Warning: array_keys() [function.array-keys]: The first argument should be an array in [path]/vault/install/install_functions.php on line 82
      
      Warning: implode() [function.implode]: Invalid arguments passed in [path]/vault/install/install_functions.php on line 82
      It gives me a MySQL error message:
      Code:
      Database error in vBulletin 3.8.4:
      
      Invalid SQL:
      
      		UPDATE usergroup
      		SET 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 0
      	WHEN 7 THEN 0
      	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 12
      Error Number  : 1064
      Reply Reply  
    3. August 21, 2010 11:20 AM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the current ZIP. In vault/install/install_functions.php, find:
      Code:
      key($fields)
      Replace with:
      Code:
      reset($fields)
      Reply Reply  
    4. August 21, 2010 6:20 PM
      Elenna Elenna is offline
      Junior Member
      Wonderful! I am still receiving this error message:

      Code:
          * Altering usergroup table
      
            Warning: Invalid argument supplied for foreach() in [path]/vault/install/install_functions.php on line 43
          * Inserting admin messages
      
      Okay
      Which corresponds to this line in the install_functions.php:
      Code:
      		foreach ($permobj->data['ugp']["$ugp_key"] AS $permtitle => $permvalue)
      Reply Reply  
    5. August 21, 2010 8:29 PM
      pegasus pegasus is offline
      VaultWiki Team
      Even so, you should be fine to continue with the upgrade.
      Reply Reply  
    6. August 22, 2010 3:42 PM
      Elenna Elenna is offline
      Junior Member
      Thank you! Just wanted to make sure it wouldn't mess something up with the error.
      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:21 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.