• 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] BBcode error exception while attempting to save a new template containing html <tr> element.

    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] BBcode error exception while attempting to save a new template containing html <tr> element.

    • Issue Tools
      • View Changes
    1. issueid=5715 April 23, 2019 10:05 AM
      ACL ACL is offline
      Regular Member
      [4.1 Alpha 3] BBcode error exception while attempting to save a new template containing html <tr> element.

      ErrorException: [E_NOTICE] Undefined index: tr in src/addons/vw/vw/BbCode/Renderer/Plain.php at line 419

      This exception was encountered when attempting to save a new template page containing HTML. The code was copied an older VW instance, VW v4.1.0 Alpha 2 (XF2.0), to a newer version, VW v4.1.0 Alpha 3 (XF2.1). Removing or renaming <tr> fixes this error.

      Code:
      XF::handlePhpError() in src/addons/vw/vw/BbCode/Renderer/Plain.php at line 419
      vw\vw\BbCode\Renderer\Plain->renderTag() in src/XF/BbCode/Traverser.php at line 61
      XF\BbCode\Traverser->renderSubTree() in src/addons/vw/vw/BbCode/Renderer/Plain.php at line 454
      vw\vw\BbCode\Renderer\Plain->vwRenderAsText() in src/addons/vw/vw/BbCode/Renderer/Plain.php at line 427
      vw\vw\BbCode\Renderer\Plain->renderTag() in src/XF/BbCode/Traverser.php at line 61
      XF\BbCode\Traverser->renderSubTree() in src/XF/BbCode/Traverser.php at line 37
      XF\BbCode\Traverser->renderAst() in src/addons/vw/vw/BbCode/Renderer/Plain.php at line 157
      vw\vw\BbCode\Renderer\Plain->renderAst() in src/XF/BbCode/Traverser.php at line 20
      XF\BbCode\Traverser->render() in src/addons/vw/vw/BbCode/Renderer/Plain.php at line 152
      vw\vw\BbCode\Renderer\Plain->vwParentRender() in src/addons/vw/vw/BbCode/Renderer/Plain.php at line 106
      vw\vw\BbCode\Renderer\Plain->vwRender() in src/addons/vw/vw/_core/instance/parser/renderer/xf2.php at line 326
      vw_Parser_Renderer_Instance_XF2->render() in src/addons/vw/vw/_core/model/parser/instance/xf2.php at line 190
      vw_Parser_Instance_Model_XF2->parse() in src/addons/vw/vw/_core/model/parser/instance/vw.php at line 266
      vw_Parser_Instance_Model->get_preview() in src/addons/vw/vw/_core/model/parser/instance/xf2.php at line 237
      vw_Parser_Instance_Model_XF2->get_preview() in src/addons/vw/vw/_core/model/string/vw.php at line 681
      vw_String_Model->summarize() in src/addons/vw/vw/_core/controller/dm/revision/vw.php at line 1085
      vw_DM_Revision_Controller->pre_save() in src/addons/vw/vw/XF/Entity/Entity.php at line 619
      vw\vw\XF\Entity\Entity->_preSave() in src/XF/Mvc/Entity/Entity.php at line 1297
      XF\Mvc\Entity\Entity->preSave() in src/addons/vw/vw/XF/Entity/Entity.php at line 610
      vw\vw\XF\Entity\Entity->vwPreSave() in src/addons/vw/vw/_core/controller/dm/xf2.php at line 329
      vw_DM_Controller_XF2->pre_save() in src/addons/vw/vw/_core/controller/dm/page/vw.php at line 2523
      vw_DM_Page_Controller->internal_pre_save() in src/addons/vw/vw/_core/controller/dm/page/vw.php at line 1025
      vw_DM_Page_Controller->process_revision() in src/addons/vw/vw/_core/controller/dm/page/vw.php at line 785
      vw_DM_Page_Controller->pre_save() in src/addons/vw/vw/XF/Entity/Entity.php at line 619
      vw\vw\XF\Entity\Entity->_preSave() in src/XF/Mvc/Entity/Entity.php at line 1297
      XF\Mvc\Entity\Entity->preSave() in src/addons/vw/vw/XF/Entity/Entity.php at line 610
      vw\vw\XF\Entity\Entity->vwPreSave() in src/addons/vw/vw/_core/controller/dm/xf2.php at line 329
      vw_DM_Controller_XF2->pre_save() in src/addons/vw/vw/_core/controller/ui/edit/page/vw.php at line 493
      vw_UI_Edit_Page_Controller->start_dm() in src/addons/vw/vw/_core/controller/ui/edit/page/xf0.php at line 21
      vw_UI_Edit_Page_Controller_XF0->start_dm() in src/addons/vw/vw/_core/controller/ui/edit/vw.php at line 149
      vw_UI_Edit_Controller->save() in src/addons/vw/vw/_core/controller/ui/create/vw.php at line 434
      vw_UI_Create_Controller->publish() in src/addons/vw/vw/_core/controller/ui/index/vw.php at line 69
      vw_UI_Index_Controller->publish() in src/addons/vw/vw/_core/controller/ui/index/vw.php at line 33
      vw_UI_Index_Controller->execute() in src/addons/vw/vw/_core/controller/ui/stack/vw.php at line 261
      vw_UI_Stack_Controller->execute() in src/addons/vw/vw/Pub/Controller/Wiki/Wiki.php at line 80
      vw\vw\Pub\Controller\Wiki\Wiki->_actionIndex() in src/addons/vw/vw/Mvc/Dispatcher.php at line 30
      vw\vw\Mvc\Dispatcher::dispatch() in src/addons/vw/vw/Pub/Controller/Wiki/AbstractController.php at line 26
      vw\vw\Pub\Controller\Wiki\AbstractController->actionIndex() in src/XF/Mvc/Dispatcher.php at line 321
      XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 248
      XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
      XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
      XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
      XF\App->run() in src/XF.php at line 390
      XF::runApp() in index.php at line 20
    Issue Details
    Issue Number 5715
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Editing Pages
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.1.0 Alpha 3
    Fixed Version (none)
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. April 23, 2019 12:07 PM
      pegasus pegasus is offline
      VaultWiki Team
      Please provide a minimum code sample that will reproduce this issue. I have not had much luck so far.
      Reply Reply  
    2. April 23, 2019 12:12 PM
      ACL ACL is offline
      Regular Member
      Sure. I can reproduce the problem with the following HTML:
      Code:
      <table style="{{{style|}}}">
        <tr>
          <td style="{{{textstyle|}}}">test</td>
        </tr>
      </table>
      Reply Reply  
    3. April 23, 2019 12:23 PM
      ACL ACL is offline
      Regular Member
      Can also be reproduced for https://www.vaultwiki.org/xf-wiki/

      Exception is actually thrown regardless of the page type (page, template, book, category), when previewing the page or creating (saving) the page.
      Reply Reply  
    4. April 23, 2019 12:34 PM
      pegasus pegasus is offline
      VaultWiki Team
      Okay, to reproduce: the HTML must be entered while the BB-Code editor is available and toggled active (which will damage the custom HTML). When creating a template directly (Create New Template button) there is no BB-Code editor, which is why I could not reproduce before.
      Reply Reply  
    5. April 23, 2019 12:52 PM
      ACL ACL is offline
      Regular Member
      Thanks. Yes, this is with the standard BBcode editor.

      If you were wondering how I arrived at this issue in the first place:
      I encountered this on one of my test sites after clicking the sub-navigation "Create New Page" link. As the subnavigation does not currently offer to create a specific page type (see main navigation suggestion), creating a template via this method uses the standard editor initially. However because I can later check the "Treat this page as : Template" option, editing this template later would then use the correct editor.
      Reply Reply  
    6. May 17, 2019 4:06 PM
      pegasus pegasus is offline
      VaultWiki Team
      It looks to me like this is resolved in Beta 1. Adding this to the changelog for Beta 1.
      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 3:47 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.