• 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
    • [4.1 Alpha 3] Problem with one specific template showing as link with [template] bbcode

    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: [4.1 Alpha 3] Problem with one specific template showing as link with [template] bbcode

    • Issue Tools
      • View Changes
    1. issueid=5735 May 2, 2019 10:06 AM
      ACL ACL is offline
      Regular Member
      [4.1 Alpha 3] Problem with one specific template showing as link with [template] bbcode

      1) One template refuses to render its content on other pages

      This template will only show up as a link (clicking the link will load the template OK, although it does add the ?expecttypeid=# URL parameter. I have tried some troubleshooting but I cannot determine what a cause might be as I cannot reproduce the issue with any other template. I'll attempt to describe what I've tried in the hope that you might have an idea what the cause could be.

      Let's call the template "Fruit box". So [template]Fruit box[/template] = Fruit box.

      ---

      The template name contains a space, "Fruit box", so I tried changing the title to something without spaces, "Fruitbox". Trying to include the template on another page under this new name renders as a red link (with parameters da and expecttypeid). After clicking the red link, the template contents displays on its own page just fine.

      So [template]Fruitbox[/template] = Fruitbox. As this did not help, I moved the template back to its original name (with space). The template showing as link problem remained.

      ---

      I then copied the entire template contents to a new template page under a different name. This name was the same one as above, but without the space, "Fruitbox". This time [template]Fruitbox[/template] works as expected with the template contents displayed. [template]Fruit box[/template] is still a link.

      [template]Fruitbox[/template] = template contents rendered!
      [template]Fruit box[/template] = Fruit box.

      ---

      Then I tried creating another copy of the template with identical content but under a different name. This name is the original name plus a test suffix, "Fruit box test". But this time [template]Fruit box test[/template] works as intended.

      [template]Fruit box test[/template] = template contents rendered!

      ---

      As a last resort, I permanently deleted the funky template and then re-created it under the same name. Now there is no issue with the template only rendering as a link and not showing its contents on other pages .

      [template]Fruit box[/template] = template contents rendered!!!

      ---

      So far, I have only experienced the [template] quirk with the one template. I can't reproduce this behaviour for other templates (even though their contents are exactly the same). From first noticing this quirk, the problem template would have been at most an hour old.


      ----------------


      2) Rebuild content URLs

      While rebuilding content URLs , accessing the funky template from 1) resulted in a fatal error:

      Fatal Error: attempted to instantiate non-existent class vw_UI_Tab_Template_Model
      [vw-core]/model/ui/tab/template/vw.php does not exist or does not contain the specified class.

      After rebuilding content URLs is complete, no fatal error occurs anymore. Having said that, the funky template showing as a text link with [template] remained a problem until I permanently deleted and then recreated that template.

      Code:
      #0: vw_Hard_Core::fetch_object() in [vw-platform]/src/addons/vw/vw/_hard/core.php at line 762
      #1: vw_Hard_Core::model() in [vw-core]/controller/ui/index/vw.php at line 128
      #2: vw_UI_Index_Controller->can_create() in [vw-core]/view/ui/error/vw.php at line 38
      #3: vw_UI_Error_View->view() in [vw-core]/view/reply/view/vw.php at line 48
      #4: vw_Reply_View_View->render_type() in [vw-core]/view/reply/base/vw.php at line 134
      #5: vw_Reply_base_View->render() in [vw-core]/view/reply/stack/vw.php at line 44
      #6: vw_Reply_Stack_View->render() in [vw-platform]/src/addons/vw/vw/XF/Mvc/View.php at line 25
      #7: vw\vw\XF\Mvc\View->renderHtml() in [vw-platform]/src/XF/Mvc/Renderer/AbstractRenderer.php at line 91
      #8: XF\Mvc\Renderer\AbstractRenderer->renderViewObject() in [vw-platform]/src/XF/Mvc/Renderer/Html.php at line 45
      #9: XF\Mvc\Renderer\Html->renderView() in [vw-platform]/src/XF/Mvc/Dispatcher.php at line 418
      #10: XF\Mvc\Dispatcher->renderView() in [vw-platform]/src/XF/Mvc/Dispatcher.php at line 400
      #11: XF\Mvc\Dispatcher->renderReply() in [vw-platform]/src/XF/Mvc/Dispatcher.php at line 360
      #12: XF\Mvc\Dispatcher->render() in [vw-platform]/src/XF/Mvc/Dispatcher.php at line 53
      #13: XF\Mvc\Dispatcher->run() in [vw-platform]/src/XF/App.php at line 2177
      #14: XF\App->run() in [vw-platform]/src/XF.php at line 390
      #15: XF::runApp() in [vw-platform]/index.php at line 20
    Issue Details
    Issue Number 5735
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Templates
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.1.0 Alpha 3
    Fixed Version 4.1.0 Beta 1
    Milestone (none)
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. May 2, 2019 11:24 AM
      pegasus pegasus is offline
      VaultWiki Team
      There are a number of legitimate possible reasons for a template only rendering as a link, but let's assume that you did not trigger most of those situations because your tests were otherwise simple.

      Assuming you had tried editing the pages containing the links, and they still rendered as links afterwards, we can probably rule out a cache issue.

      If the original Fruit Box was awaiting approval, or if it only had edits that were awaiting approval, then it would render as a link.

      Check Admin > Wiki > Maintenance > URL Conflicts for conflicts on "Fruit Box". If there is a synonym named "Fruit Box", it is possible that, at the time, the synonym was found first. I can see there is a bug where synonyms with spaces in the title might not resolve to the correct template if we put the synonym in template tags instead.

      This is one of those issues that I generally would need access to the site while the issue is still happening in order to figure out.
      Reply Reply  
    2. May 2, 2019 11:46 AM
      ACL ACL is offline
      Regular Member
      Thanks for the reply.

      Assuming you had tried editing the pages containing the links
      Yes, I tried reediting the target page a few times. At one point I tried creating a new test target page.

      If the original Fruit Box was awaiting approval
      This was all experienced from an admin-account. Throughout these tests no pages were sent to the moderation queue.

      Check Admin > Wiki > Maintenance > URL Conflicts for conflicts on "Fruit Box"
      There are no conflicts right now, but there might have been prior to deleting the problem page. When renaming the page, "Do not create a redirect when renaming this page" was left unchecked.

      I did however notice a minor bug with the URL conflicts page. After clicking the "Go" submit button, the result opens in an overlay. This results in an identical form showing over the top of the orginal form.

      I generally would need access to the site while the issue is still happening in order to figure out
      I experienced this within a local offline environment, but at a later stage if I can reproduce this on a public-facing server I'll let you know.
      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 2:39 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.