• 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
    • MediaWiki Images not imported

    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: MediaWiki Images not imported

    • Issue Tools
      • View Changes
    1. issueid=2487 October 9, 2011 9:30 PM
      PaulaG PaulaG is offline
      New Member
      MediaWiki Images not imported
      MediaWiki images are not importing correctly

      I have successfully managed to import all the MediaWiki pages and convert them BB-code. However, only 1/3 of the images file names show up in the Images namespace, and none of them contain the actual image. All the pages that contain images display only the image file name (such as Bolt.jpg) and any descriptive text attached to the image.

      The MediaWiki images are referenced using [image:xxxx.jpg].

      Our vBulletin Forum stores image attachments in the database. MediaWiki image files are in /home/bbsorg/public_html/wiki/images.

      In the mediawiki.php file I defined $vault->config['imgpath'] = 'http://xxx.xxx.xxx/wiki/images/''; per the comments in the file.

      How does the VaultWiki importer handle images? Does it move them to the database, does it use the URLs, does it use local image path and filenames, or something else?

      I would prefer to handle them as image attachments stored in the database.
    Issue Details
    Issue Number 2487
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Images
    Status Not a Bug
    Priority 3 - Loss of Functionality
    Affected Version 3.0.14
    Fixed Version (none)
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags Import




    1. October 10, 2011 5:52 PM
      pegasus pegasus is offline
      VaultWiki Team
      VaultWiki passes the URLs to vBulletin's attachment system, vBulletin uploads them as if you tried to upload via URL (rather than your computer), vBulletin stores them like any other attachments.

      If your URL is correct, are the images publicly accessible? I have seen some users put a password protection on the MediaWiki directory because they intended to close it. If you do this, vBulletin can't access the images to import.

      Are the images very large in file size or dimensions? If the images are bigger than your vBulletin attachment settings allow, vBulletin won't try to import them.

      Does the server the MediaWiki installation is on allow HTTP requests using the HEAD method (as opposed to GET or POST)? vBulletin fetches metadata about the image before uploading, via HEAD request. If the server doesn't allow HEAD requests, vBulletin won't be able get this data, and won't try to import the image.

      Are the source images corrupt or compressed? I have seen users unable to import images because they were unaware the source hard drive had failed and corrupted many of the images.
      Reply Reply  
    2. October 11, 2011 2:42 PM
      PaulaG PaulaG is offline
      New Member
      Thank you for the detailed response. I'll look into each of these potential issues.
      Reply Reply  
    3. October 23, 2011 2:47 PM
      PaulaG PaulaG is offline
      New Member
      No success on any of these. Debugging mediawiki.php I can see that in function forge_article(&$page) it never attempts to import because "if ($page['thread_id']" always fails the test.

      Suggestions?
      Reply Reply  
    4. October 23, 2011 2:59 PM
      pegasus pegasus is offline
      VaultWiki Team
      What other modifications do you have installed? Obviously something is preventing the thread from being created if the threadid is always missing.
      Reply Reply  
    5. October 26, 2011 11:21 PM
      PaulaG PaulaG is offline
      New Member
      I have vbGarage installed though I suspect that is not the issue.

      On the very first import attempt the path to the MediaWiki images was wrong but it imported the articles. I corrected the path and I have tried multiple times to import, and each time all it does is re-import all the articles over, but no images.

      I do not understand the wording on the Import screen where it says "A previous import was detected." It is unclear to me what is the difference between answering yes or no. What I want to do is have it completely rewrite the previous import but that doesn't seem to be an option. Could this be what is going wrong?

      I am doing this work on a "sandbox" server because I don't want to try it on my production system until I understand how to make it work correctly.
      Reply Reply  
    6. October 27, 2011 4:51 AM
      pegasus pegasus is offline
      VaultWiki Team
      You will need to purge or cleanup the image forum that was affected by the incorrect path before you can import again.

      On "A previous import was detected":

      Yes, ignore duplicate IDs - This will result in getting 2 copies of articles. Rather than adding missing revisions to old articles, it creates a new copy of the article with the imported revisions. You need to sift through the duplicates manually, and this can only be done via the AdminCP, since duplicates share the same URL but have different content. That's one of the functions of the Wiki URL Manager. This is mainly useful if you're importing articles from multiple sources that might have name collisions.

      No, respect duplicate IDs - If an article with the same name already exists, it won't be imported. New edits to the article will still be imported, since we can match them to the article ID.

      In both cases, choosing Yes or No, it doesn't remove already imported content - in this case images that were imported with the wrong path. You will be stuck with them until you cleanup the image forum and import that forum again.
      Reply Reply  
    7. October 28, 2011 12:18 PM
      PaulaG PaulaG is offline
      New Member
      Deleting all the incorrectly imported images and running the import again worked. Thank you.
      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 4:53 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 © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.