• 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
    • Embedded VW3 images lost

    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: Embedded VW3 images lost

    • Issue Tools
      • View Changes
    1. issueid=5222 September 14, 2017 6:18 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Embedded VW3 images lost

      VW3 had forum attachments. VW4 has a new system and images have mostly migrated. But if VW3 wiki articles had images embedded from another wiki article then the link was not changed during import.
      The link to the old Vaultwiki 3 attachment remained. Which means that in the case of XenForo it will redirect to the related thread. As we no longer use Wiki threads, those threads have been deleted. The result is that many wiki images are broken.

      Example:
      /forum/attachment.php?attachmentid=27767&stc=1&d=1345712635
      It works in VW3, but not in VW4.

      I can see why this happened. I did not expect that this would concern so many wiki attachments. Can anything be done to save these images?
    Issue Details
    Issue Number 5222
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Importing
    Status Working as Designed
    Priority 1 - Security / Login / Data Loss
    Affected Version 4.0.19
    Fixed Version (none)
    Milestone (none)
    Software DependencyXenForo 1.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. September 16, 2017 10:36 AM
      pegasus pegasus is offline
      VaultWiki Team
      If the missing attachment was originally attached directly to a wiki page, then the importer did make a record of this attachment ID and the new wiki attachment that it points to.

      Assuming you already have an attachment.php redirect script setup for XenForo, it should be as simple as adding the following to your vault/config.php file:
      Code:
      define('VW_301_ATTACHMENTS', 1);
      What this does is that whenever XenForo_ControllerPublic_Attachment is about to return 404, VaultWiki will first check its import records to make sure that the attachment ID is not related to its 301-permanent-redirect records. Note that 301s are only maintained for 6 months, so you should update these URLs as soon as possible.
      Reply Reply  
    2. September 16, 2017 11:46 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      I would like to update those URLs but I have no list of malfunctioning or redirected URLs. So how do I find those URLs in 2125 pages?
      Is there any way to make those redirects permanent? Or find some way to mass rewrite the URLs in the wiki content?

      The config file already has that code. But it does not redirect to the correct vaultwiki file.
      Reply Reply  
    3. September 16, 2017 11:58 AM
      pegasus pegasus is offline
      VaultWiki Team
      With the advent of Mass Search and Replace, you can do something like this:

      Make a template "Link Needs Updating" which shows an icon and/or text:
      Code:
      (this link needs updating)
      In Mass Management, search for content in all pages, matching the attachment links:
      Code:
      \[img\]http://forum\.com/attachment\.php.*\[/img\]
      Replace with:
      Code:
      $0 [template]Link Needs Updating[/template][comment]LinkNeedsUpdating[/comment]
      Then, visit the template "Link Needs Updating" and go to View > Pages That Use This Template.
      This should be a complete list of all such pages that can be shared with your wiki helpers to get this job done. It will be simple to edit each page and Ctrl+F for the template locations.

      Alternatively, you should also be able to do a forum search for "LinkNeedsUpdating" and get the same list of pages.
      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 6:33 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 © 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.