• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
      • Try XenForo Demo
      • New Posts
      • FAQ
      • Calendar
      • Community
        • Groups
        • Albums
        • Member List
      • Forum Actions
        • Mark Forums Read
      • Quick Links
        • Today's Posts
        • Who's Online
      • Sponsor
        • Sponsor a Feature
        • List of Donors
    • Wiki
    • Support
    • What's New?
    • Buy Now
    • Manual
    • 
    • Forum
    • VaultWiki How-Tos
    • VaultWiki Questions
    • Import Troubles

    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.

    Page 2 of 3 FirstFirst Previous 123 Next LastLast
    Results 16 to 30 of 39

    Thread: Import Troubles

    • Thread Tools
      • Show Printable Version
    1. October 12, 2008 #16
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      That didn't seem to do anything.

      Code:
      Database error in vBulletin 3.8.0 Beta 1:
      
      Invalid SQL:
      
      		INSERT INTO vault_revision
      			(threadid, userid, reason, dateline, pagetext, minor, section, rollback, pending)
      		VALUES
      		(
      			0,
      			1,
      			'',
      			1223844959,
      			'',
      			0,
      			'',
      			0,
      			0
      		);
      
      MySQL Error   : Duplicate entry '0-1223844959' for key 2
      Error Number  : 1062
      Request Date  : Sunday, October 12th 2008 @ 04:55:59 PM
      Error Date    : Sunday, October 12th 2008 @ 04:56:03 PM
      Script        : http://www.playbypost.com/forums/admincp/vaultwiki_import.php?do=import
      Referrer      : http://www.playbypost.com/forums/admincp/vaultwiki_import.php
      IP Address    : 71.232.39.188
      Username      : Kaelon
      Classname     : vB_Database
      MySQL Version : 5.0.51a-community-log
      Same SQL Error.
      Reply With Quote Reply With Quote

    2. October 12, 2008 #17
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      Actually, I don't notice a difference in your find/replace. Maybe that's why it's still producing the same error?
      Reply With Quote Reply With Quote

    3. October 12, 2008 #18
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,934
      Blog Entries
      18
      Rep Power
      659
      Okay, I'm guessing you didn't have to delete any Book articles before. In that case, it's likely an error is occurring when it tries to create the thread. By the looks of it, it would seem the error is that the post message is too short. It seems there is a missing phrase.

      In admincp/vaultwiki_import.php, find:
      PHP Code:
      $vbphrase['ces_default_book_message'] 
      Replace with:
      PHP Code:
      '[comment]This is the default message for new Book articles.[/comment]' 
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    4. October 12, 2008 #19
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      Nope, that didn't do it. That doesn't seem to address the root cause that your Importer is conflicting with key values.

      Code:
      Database error in vBulletin 3.8.0 Beta 1:
      
      Invalid SQL:
      
      		INSERT INTO vault_revision
      			(threadid, userid, reason, dateline, pagetext, minor, section, rollback, pending)
      		VALUES
      		(
      			85975,
      			1,
      			'',
      			1223845967,
      			'[comment]This is the default message for new Book articles.[/comment]',
      			0,
      			'',
      			0,
      			0
      		);
      
      MySQL Error   : Duplicate entry '85975-1223845967' for key 2
      Error Number  : 1062
      Request Date  : Sunday, October 12th 2008 @ 05:12:47 PM
      Error Date    : Sunday, October 12th 2008 @ 05:12:51 PM
      Script        : http://www.playbypost.com/forums/admincp/vaultwiki_import.php?do=import
      Referrer      : http://www.playbypost.com/forums/admincp/vaultwiki_import.php
      IP Address    : 71.232.39.188
      Username      : Kaelon
      Classname     : vB_Database
      MySQL Version : 5.0.51a-community-log
      Reply With Quote Reply With Quote

    5. October 12, 2008 #20
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,934
      Blog Entries
      18
      Rep Power
      659
      True, but it's actually conflicting now for a different reason. Before the thread wasn't actually created, so it was conflicting with other non-existent books (we had a bunch of zero-ids). Now that we fixed the 'message too short' error, the first Book is conflicting with itself because each book is in essence being created twice.

      In vault/special_plugins.php, find:
      PHP Code:
          vault_article_modify($newpost['threadid'], $vbulletin->userinfo['userid'], TIMENOW);

          
      vault_create_revision(
              
      $newpost['threadid'],
              
      $vbulletin->userinfo['userid'],
              
      '',
              
      TIMENOW,
              
      $newpost['message']
          ); 
      These lines can be removed completely. And you're going to have 1 Book to delete from your forums.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    6. October 12, 2008 #21
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      This time, we made it to importing article data, and it looks like we had another SQL Error:

      Code:
      Database error in vBulletin 3.8.0 Beta 1:
      
      Invalid SQL:
      
      			REPLACE INTO vault_article
      				(threadid, bookid, lastmodified, lastmodifiedbyid, lastposterid)
      			VALUES
      			
      		(
      			75752,
      			,
      			1223825328,
      			1,
      			1
      		),
                     ... several hundred lines ...
      		(
      			75753,
      			,
      			1200079038,
      			1,
      			1
      		)' at line 7
      Error Number  : 1064
      Request Date  : Sunday, October 12th 2008 @ 05:24:43 PM
      Error Date    : Sunday, October 12th 2008 @ 05:24:49 PM
      Script        : http://www.playbypost.com/forums/admincp/vaultwiki_import.php?do=import
      Referrer      : http://www.playbypost.com/forums/admincp/vaultwiki_import.php
      IP Address    : 71.232.39.188
      Username      : Kaelon
      Classname     : vB_Database
      MySQL Version : 5.0.51a-community-log
      Reply With Quote Reply With Quote

    7. October 12, 2008 #22
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,934
      Blog Entries
      18
      Rep Power
      659
      Okay, this time you should empty out the nuwiki_chapter / nuwiki_book tables, so it doesn't bother creating the Books again.

      In admincp/vaultwiki_import.php, find:
      PHP Code:
      $article['bookid'] 
      Replace with:
      PHP Code:
      intval($article['bookid']) 
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    8. October 12, 2008 #23
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      Well, we completed the import this round, but none of the Wiki articles have any text in them. They all display "There is currently no text in this page." I even ran the Clean Articles Post Cache, but still, no articles display. Any thoughts?
      Reply With Quote Reply With Quote

    9. October 12, 2008 #24
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,934
      Blog Entries
      18
      Rep Power
      659
      You need to Rebuild the Article Cache. You can do this from the Namespace Manager. Click "Rebuild All Namespaces."
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    10. October 12, 2008 #25
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      Yay, it worked!

      Thank you so much for your awesome support. Any other pitfalls, suggestions that I should be aware of?
      Reply With Quote Reply With Quote

    11. October 12, 2008 #26
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      And, tragically, another bug: "New Posts" returns a Fatal Error:

      Code:
      Fatal error: Call to undefined function special_search_complete() in /home/playbypo/public_html/forums/search.php(3743) : eval()'d code on line 10
      Reply With Quote Reply With Quote

    12. October 12, 2008 #27
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      Apparently, this search bug impacts all searches.
      Reply With Quote Reply With Quote

    13. October 12, 2008 #28
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      Another bug:

      On the top of all of my individual threads is a "Header for Header" bar, that doesn't seem to do anything. It directs to an invalid "editing" link:

      http://www.playbypost.com/forums/sho...rror&do=create

      Can't I simply just turn off all Headers, everywhere?
      Reply With Quote Reply With Quote

    14. October 12, 2008 #29
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,934
      Blog Entries
      18
      Rep Power
      659
      This requires a plugin edit. In the VaultWiki plugin at hook search_complete, find:
      PHP Code:
      special_search_complete(); 
      Add before:
      PHP Code:
      require_once( DIR . '/vault/special_plugins_search.php'); 
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    15. October 12, 2008 #30
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,934
      Blog Entries
      18
      Rep Power
      659
      Quote Originally Posted by Kaelon View Post
      Another bug:

      On the top of all of my individual threads is a "Header for Header" bar, that doesn't seem to do anything. It directs to an invalid "editing" link:

      http://www.playbypost.com/forums/sho...rror&do=create

      Can't I simply just turn off all Headers, everywhere?
      Apparently the showthread version of the Header bar looks for an invalid article. The reason that link is so bad, though, is that I believe your Header forum is not set to "Wiki."

      You can disable headers in all forums by running the following MySQL query:
      Code:
      UPDATE {PREFIX}forum SET forumheader_enabled = 0
      Replace {PREFIX} with your forum's TABLE_PREFIX.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    Page 2 of 3 FirstFirst Previous 123 Next LastLast

    Similar Threads

    1. Import Service
      By DirtRider in forum Pre-Sales Questions
      Replies: 7
      Last Post: March 2, 2014, 1:54 AM
    2. Nginx troubles
      By JesterP in forum General Discussion
      Replies: 3
      Last Post: April 4, 2012, 9:28 PM
    3. MediaWiki Import
      By palmpedia in forum VaultWiki Questions
      Replies: 1
      Last Post: June 8, 2011, 9:24 PM
    4. What to do after MW import
      By hollosch in forum VaultWiki Questions
      Replies: 1
      Last Post: March 10, 2010, 12:34 PM
    5. Import from Nuwiki
      By Storyteller in forum VaultWiki Questions
      Replies: 1
      Last Post: November 17, 2008, 5:21 PM

    Tags for this Thread

    333, able, about, admincp, align, all, also, another, any, appearing, are, aren, automatically, backup, because, been, before, being, better, but, cache, can, case, changes, check, class, com, comment, community, completely, configuration, conflicting, controlling, correct, could, creation, date, defined, deleting, did, different, disable, does, doing, don, down, due, duplicate, each, easy, enabled, entire, example, existing, few, field, files, first, footnote, for, forcetoc, format, forumid, friendly, from, generated, get, give, going, has, have, having, header forum, headlines, help, here, hide, hook, how, http, import, individual, into, invalid, its, key, know, knowledge, last, left, like, line, load, looks, manage, many, more, most, need, new, new posts, notes, notice, now, off, old, one, only, other, out, own, php, please, png, point, public, quote, reason, reference, reinstall, replace, revision, right, same, second, see, should, shown, showthreads, single, solution, some, space, specified, sub, sure, that, the, their, them, there, this, threads, too, troubles, try, trying, two, type, user, using, was, wasn, way, were, what, when, where, why, will, with, within, without, words, worked, would, www, you, your, zero

    View Tag Cloud

    Bookmarks

    Bookmarks
    • Submit to Digg Digg
    • Submit to del.icio.us del.icio.us
    • Submit to StumbleUpon StumbleUpon
    • Submit to Google Google

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •  
    • BB code is On
    • Smilies are On
    • [IMG] code is Off
    • [VIDEO] code is
    • HTML code is Off

    Forum Rules

    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 12:10 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.