• 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
    • Template pages have disappeared after upgrade to 3.0.2. Agh!

    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: Template pages have disappeared after upgrade to 3.0.2. Agh!

    • Issue Tools
      • View Changes
    1. issueid=1919 August 14, 2010 5:03 PM
      dfidler dfidler is offline
      New Member
      Template pages have disappeared after upgrade to 3.0.2. Agh!
      Templates had not been setup previously and now all pages of the form Template:xyz are inaccessible

      Issue:

      I'm going through a re-org of our 2.5.7 wiki and, in order to unify the look-and-feel of the pages, I created a bunch of document templates (MoinMoin style, not MediaWiki style). I'd named them "Template:AbC", "Template:xYz".

      After the upgrade to 3.0.2 and setting up the categories, I can no longer access or edit my template pages! If I browse to <mywikurl>/Template:AbC?do=edit, the system automatically opens up an edit page for <mywikurl>/AbC (which is blank).

      Unfortunately, because I'd taken 3.0.2 to fix a bunch of bugs and because these templates were all unused, I don't even have examples to reconstruct them from.

      Workaround:

      Panic, run around lots and fall over from exhaustion. It doesn't fix the issue but it puts me to sleep. Consumption of vast amounts of alcohol might be an option too. Extensive trials may be required.

      The newsletter just went out advertising all of the work that I'd just done on these templates; figures.

      Notes:

      vB: 3.8.4
    Issue Details
    Issue Number 1919
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Templates
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 3.0.2
    Fixed Version 3.0.3
    Milestone VaultWiki 3.0.5
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. August 14, 2010 5:16 PM
      pegasus pegasus is offline
      VaultWiki Team
      Check AdminCP > VaultWiki > Namespace Manager. At the bottom is a Namespace Functions form. Make sure that Template is assigned as the Template namespace, and not as your Default namespace.
      Reply Reply  
    2. August 14, 2010 5:21 PM
      dfidler dfidler is offline
      New Member
      Pegasus, before making any changes, please note that Templates were not setup (and still aren't). These were just pages that happened to be named Template: and were created in ignorance of the Template behaviors of VaultWiki.

      If I start making changes to the functions, is there any possibility of my templates being overwritten or something like that?
      Reply Reply  
    3. August 14, 2010 5:23 PM
      dfidler dfidler is offline
      New Member
      PS - thanks for getting back to me so quickly!
      Reply Reply  
    4. August 14, 2010 5:27 PM
      pegasus pegasus is offline
      VaultWiki Team
      Changing functions won't overwrite any pages, it just changes how certain pages interact with other pages...

      If the Templates you created were regular wiki pages as you say, how are the rest of your pages (without the Template: prefix) faring? Can you find the Template pages in your forum list? If you can find the pages, or you see problems with other pages, you may have to click the [Rebuild All Namespaces] link at the bottom of the Namespace Manager. This was supposed to be done automatically during the upgrade but it's possible it didn't go quite as planned.
      Reply Reply  
    5. August 14, 2010 5:31 PM
      dfidler dfidler is offline
      New Member
      Yes, they're just regular wiki pages and they do still show up in the wiki list. Will try the rebuild.
      Reply Reply  
    6. August 14, 2010 6:02 PM
      dfidler dfidler is offline
      New Member
      As a further note, I was wrong with the title; templates aren't the only issue. Any page that is in a namespace gets auto-redirected to a page name without namespace prefix.

      So most of the pages that I've created over the last couple of weeks are inaccessible.

      Note: I have to wait a few hours for the board owner to come online. I am developing the wiki content but I don't have AdminCP access to the VaultWiki settings. I'll let you know if the changes fix the issue.
      Reply Reply  
    7. August 15, 2010 10:03 AM
      dfidler dfidler is offline
      New Member
      The Admin got sick of me bugging him so he gave me Admin to the vault wiki section of his site. Here's the problem.

      In 2.5.7, you could create a page like Bob:Speaks, and you'd be taken to that page where you can edit-and-save the page. However, in 3.0.2, if you create the page Bob:Speaks and the Namespace 'Bob' hasn't been created, you are automatically taken to Default:Speaks.

      So it looks like VW is checking the Namespace section of the page name and, looking for an existing namespace. If it doesn't find one, it simply replaces it with Default.

      I would think that the behavior should be the following:
      1. Parse out Namespace component
      2. If namespace exists and page exists, get the page
      3. If namespace DNE, store the page name, as is (including the namespace portion) as the full page name in the default name space (effectively making it Default:Bob:Speaks in this example)


      If I'm right, then the only workaround would be to create the myriad of 'virtual namespaces' that I have in the namespace manager (which will create a large number of top-level forums; ick) and then move the appropriate articles out of the default forum and into their respective forums for each of the relevant namespaces, then rebuild all of the name spaces.

      Is there an easier way?
      Reply Reply  
    8. August 15, 2010 10:44 AM
      pegasus pegasus is offline
      VaultWiki Team
      Duplicated here. Bug confirmed.
      Reply Reply  
    9. August 15, 2010 10:51 AM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed for the next build. In vault/functions/showwiki.php, find:
      Code:
      			$vault->field->fetch('title', $titlebits[0], $languageid) !== null AND
      			$titlebits[0] != $titlecache
      Replace with:
      Code:
      			$vault->field->fetch('title', $titlebits[0], $languageid) !== '' AND
      			$titlebits[0] != $titlecache
      Dev note: As of 3.0.2, vB_CES_Vault::fetch_instance('field')->fetch(item) no longer returns NULL when 'item' is not found. Instead, an empty string is returned. The goal was to have consistent output so that type matching worked with all input combinations.
      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 1: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.