• 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
    • Import from MediaWiki - DB 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: Import from MediaWiki - DB Error

    • Issue Tools
      • View Changes
    1. issueid=1071 February 2, 2010 2:29 PM
      hollosch hollosch is offline
      Senior Member
      Import from MediaWiki - DB Error

      While importing from a Mediawiki Installation the following DB-error breaks the import:
      Code:
      Datenbankfehler in vBulletin 4.0.1:
      
      Invalid SQL:
      
      			SELECT page.page_id AS import_page_id, page.page_namespace AS namespaceid,
      				page.page_title AS title, rev.rev_user AS userid, rev.rev_user_text AS ipaddress,
      				rev.rev_timestamp AS dateline, txt.old_text AS pagetext, txt.old_flags AS flags,
      				thread.import_page_id AS isimported,
      				usr.user_name AS username
      			FROM page AS page
      			LEFT JOIN revision AS rev ON (rev.rev_page = page.page_id)
      			LEFT JOIN text AS txt ON (txt.old_id = rev.rev_text_id)
      			LEFT JOIN vb3_thread AS thread ON (thread.import_page_id = page.page_id)
      			LEFT JOIN user AS usr ON (usr.user_id = rev.rev_user)
      			WHERE page.page_namespace NOT IN (1,3,4,5,7,8,9,11,12,13,15)
      			GROUP BY page.page_id
      			ORDER BY rev.rev_timestamp
      			LIMIT 0,50;
      
      MySQL-Fehler  : Table 'dbname.page' doesn't exist
      Fehler-Nr.    : 1146
      Fehler-Zeit   : Tuesday, 02.02.2010 @ 20:25:27
      Datum         : Tuesday, 02.02.2010 @ 20:25:27
      Skript        : http://www.xxxxxx
      Referrer      : http://www.xxxxxx
      IP-Adresse    : xxx.xxx.xxx.xxx
      Benutzername  : admin
      Klassenname   : vB_Database
      MySQL-Version : 5.0.67-1~ui40+2
    Issue Details
    Issue Number 1071
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Importing
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 3.0.0 Beta 3
    Fixed Version 3.0.0 Beta 4
    Milestone VaultWiki 3.0.0
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. February 2, 2010 3:41 PM
      pegasus pegasus is offline
      VaultWiki Team
      What version of MediaWiki are you using?

      Are MediaWiki and vBulletin both saved in the database "dbname". If not, you need to copy your MediaWiki tables to the vBulletin database. If neither MediaWiki nor vBulletin uses table prefixes, you will have to rename the MediaWiki tables to have a prefix during the copy (because both have a "user" table).
      Reply Reply  
    2. February 2, 2010 3:46 PM
      hollosch hollosch is offline
      Senior Member
      MediaWiki 1.15.1
      The database from Mediawiki is copyied to the DB of vBulletin. The Mediawiki tabels have the prefix mw_
      Reply Reply  
    3. February 2, 2010 5:47 PM
      pegasus pegasus is offline
      VaultWiki Team
      The importer was written for MediaWiki 1.13. It's possible there is no longer a "page" table. We may have to update the importer now...
      Reply Reply  
    4. February 2, 2010 5:54 PM
      hollosch hollosch is offline
      Senior Member
      Ok, i'll wait for a update...
      Reply Reply  
    5. February 3, 2010 10:14 AM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed. In admincp/vaultwiki_setup.php, find:
      Code:
      construct_hidden_code('table_prefix', $vbulletin->GPC['mw_prefix']);
      Replace with:
      Code:
      construct_hidden_code('mw_prefix', $vbulletin->GPC['mw_prefix']);
      Then continue your import as normal.
      Reply Reply  
    6. February 3, 2010 12:34 PM
      hollosch hollosch is offline
      Senior Member
      Cool, thanks. I'll try it out.
      Reply Reply  
    7. February 3, 2010 12:39 PM
      hollosch hollosch is offline
      Senior Member
      The DB-Error is fixed !
      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:38 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.