• 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 4.x Series
    • Bug
    • Can't install VW 4 on recently upgraded VB 4.2.2

    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: Can't install VW 4 on recently upgraded VB 4.2.2

    • Issue Tools
      • View Changes
    1. issueid=3582 February 9, 2014 2:07 PM
      larceny larceny is offline
      New Member
      Can't install VW 4 on recently upgraded VB 4.2.2

      Hi,

      I followed the upgrade instructions for installing VWiki v4 on Vbul 4.2.2.

      I ran it - and it got to the Step 12, importing attachment rules.

      Prior to getting there, it asked about file attachments, whether it was database or file.. I use database, so I left it at that, and it asked for URL folder for the attachments if using file system. I didn't touch it since I'm not using file system. Apparently I should've made a folder for these anyhow?

      This is the error I'm getting:
      Code:
      Warning: require_once(..../vault/core/controller/import/handle/vw/attach/vw.php): failed to open stream: No such file or directory in ..../vault/core/controller/import/handle/vw.php on line 42
      Obviously, there is no /handle/vw/attach/vw.php file because there's no /handle/vw folder. Only vw3 or vw4 folder.

      Any ideas on how to fix this?
    Issue Details
    Issue Number 3582
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.0 Gamma 2
    Fixed Version 4.0.0 Gamma 2
    Milestone VaultWiki 4 Gamma X
    Software DependencyvBulletin 4.x w/ ckEditor
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags install




    1. February 10, 2014 12:45 AM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/core/controller/install/full/steps/vb3.php, find:
      Code:
      vw_Hard_core::controller('Import/Handle')->create('VW/Attach')->do_rules();
      Replace with:
      Code:
      vw_Hard_core::controller('Import/Handle')->create('VW3/Attach')->do_rules();
      That's it.
      Reply Reply  
    2. February 10, 2014 4:00 PM
      larceny larceny is offline
      New Member
      Thank you - I'll give that a try now.

      Also - when viewing activity.php - even with VW deactivated (because it was showing errors after the install didn't finish) - this error shows up:
      Code:
      Fatal error: Class 'VaultWiki_Core' not found in /home/larceny/public_html/vb/activitystream/view/perm/vw/vwpage.php on line 34
      Reply Reply  
    3. February 10, 2014 4:23 PM
      pegasus pegasus is offline
      VaultWiki Team
      In the file it says has the error, replace all VaultWiki_Core text with VW_Core
      Reply Reply  
    4. February 11, 2014 10:33 AM
      larceny larceny is offline
      New Member
      There's dozens of errors now on many pages.
      Code:
      Fatal error: Class 'vw_Hard_Core' not found in /home/larceny/public_html/packages/vw/core.php on line 89
      What do I do with this? The wiki product isn't even activated..
      Reply Reply  
    5. February 11, 2014 10:47 AM
      larceny larceny is offline
      New Member
      Finally got the install to finish.

      That last error is no longer there, thank you.
      Reply Reply  
    6. February 11, 2014 11:28 AM
      pegasus pegasus is offline
      VaultWiki Team
      Quote Originally Posted by larceny
      There's dozens of errors now on many pages.
      What do I do with this? The wiki product isn't even activated..
      That would occur on pages that show the Activity Stream while VaultWiki is installed but disabled. It can be fixed by modifying packages/vw/core.php, find:
      Code:
      			else
      			{
      				$version = vw_Hard_Core::toString();
      Replace with:
      Code:
      			else if (class_exists('vw_Hard_Core', false))
      			{
      				$version = vw_Hard_Core::toString();
      Reply Reply  
    7. February 11, 2014 11:36 AM
      larceny larceny is offline
      New Member
      Hi,

      all errors on forum are fixed once i finished install. but importing isn't working.

      I get:

      Could not find phrase 'step_x' a bunch of times.. then it says importing was finished.. but I don't think anything was really done.

      It's looking for a file that's not there.. that config file. so I renamed it to what it's looking for (vw.php.new to vw.php) -- do I need to place database logins in that file?
      Reply Reply  
    8. February 11, 2014 11:41 AM
      larceny larceny is offline
      New Member
      I edited that file, with database info, and a few other things it asked for.

      I tried re-importing, but it skipped all the first steps and goes right to where it hung before..

      Could not find phrase 'step_x'.

      Could not find phrase 'vw_importing_forum_subscriptions'.

      Then gives me some database errors:
      Code:
      Database error in vBulletin 4.2.2:
      
      Invalid SQL:
      INSERT INTO vw_subscribe
      	(userid, nodetypeid, nodeid, options, subhash)
      VALUES
      	(1163, 1, 2, 31, 'c91b8e16b79b90e4f900cf19ef83acf7');
      
      MySQL Error   : Duplicate entry '1163-2-1' for key 'user_nodeid'
      Error Number  : 1062
      Reply Reply  
    9. February 11, 2014 11:53 AM
      pegasus pegasus is offline
      VaultWiki Team
      Can you tell me if user 1163 has a username that is similar to a different user? I am looking at the code for this step and it is well-designed to handle duplicates.

      Since you encountered an error in the importer, I've added a free Import Service for you in the Members tab. Please fill it out and I'll take a look.
      Reply Reply  
    10. February 11, 2014 12:45 PM
      larceny larceny is offline
      New Member
      User 1163 doesn't have a similar name as anyone else.

      I fixed the config file and ran it again, but its a diff. SQL error. I'll just try that import help thing you mentioned. Thanks
      Reply Reply  
    11. February 11, 2014 12:50 PM
      larceny larceny is offline
      New Member
      I setup the import service for you. Let me know if you need anything else. Thanks
      Reply Reply  
    12. February 12, 2014 12:16 PM
      pegasus pegasus is offline
      VaultWiki Team
      I finished the import process for you. Please review the content of the wiki and check to make sure everything ported over.
      Reply Reply  
    13. February 12, 2014 3:20 PM
      larceny larceny is offline
      New Member
      Hi,

      Thanks for the help.

      2 things: Every page has a duplicate. but also:

      None of the pages are working..

      Shows error:
      Code:
      Fatal error: Call to undefined function imagecreatetruecolor() in /home/larceny/public_html/vault/core/model/block/flesch/vw.php on line 238
      Reply Reply  
    14. February 12, 2014 10:25 PM
      pegasus pegasus is offline
      VaultWiki Team
      This can occur if your GD library is not installed or PHP is not configured properly to use it.

      Fixed in the next release. In vault/core/model/block/flesch/vw.php, find:
      Code:
      $image = imagecreatetruecolor(222, 16);
      Replace with:
      Code:
      		if (function_exists('imagecreatetruecolor'))
      		{
      			$image = imagecreatetruecolor(222, 16);
      		}
      		else
      		{
      			$image = imagecreate(222, 16);
      		}
      The duplicates are probably from when you imported once with no config file and then again with a config file. Without the config file, it defaults to the same database, so it could have found the VW3 data to import. The importer uses a hash based on your config file to determine if the source is the same. Obviously the hash is different between a non-existent file and an existing one, even if it does find the same data. If the hash is different it doesn't do anything special for duplicates and keeps importing.

      If you want, I should be able to auto-clear and re-import, as long as you haven't removed VaultWiki 3 yet. Otherwise, it looks like a relatively short list of duplicates. You can also clean them individually in the Wiki CP under Integrity > URL Conflicts.
      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:40 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.