• 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 Beta 3] Editing pages: undefined index tab_style, autolink field "Please enter a number that is at least 0"

    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 Beta 3] Editing pages: undefined index tab_style, autolink field "Please enter a number that is at least 0"

    • Issue Tools
      • View Changes
    1. issueid=5842 September 6, 2019 7:11 AM
      ACL ACL is offline
      Regular Member
      [4.1 Beta 3] Editing pages: undefined index tab_style, autolink field "Please enter a number that is at least 0"

      Saving/previewing an edit for an existing page: ErrorException: [E_NOTICE] Undefined index: tab_style in src/addons/vw/vw/_core/controller/ui/edit/page/vw.php at line 509

      Code:
      XF::handlePhpError() in src/addons/vw/vw/_core/controller/ui/edit/page/vw.php at line 509
      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 157
      vw_UI_Edit_Controller->save() in src/addons/vw/vw/_core/controller/ui/page/vw.php at line 443
      vw_UI_Page_Controller->save() in src/addons/vw/vw/_core/controller/ui/page/vw.php at line 170
      vw_UI_Page_Controller->execute() in src/addons/vw/vw/_core/controller/ui/stack/vw.php at line 293
      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 244
      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 2178
      XF\App->run() in src/XF.php at line 390
      XF::runApp() in index.php at line 20
      I can reproduce this undefined index error on the VW.org XF2 demo.

      --

      Saving/previewing a new page (and sometimes when editing an existing page): Oops We ran into some problems. Please enter a number that is at least 0.

      This appears to be triggered by the autolink field since the error is only thrown with "[Use Area Value]" (-2) and "[Do NOT Auto-Link]" (-1). I consistently experience this validation error when attempting to preview or publish new pages. Sometimes (but not always) the error may be shown when editing an existing page.

      In the admin cp, an error is also logged: ErrorException: [E_WARNING] count(): Parameter must be an array or an object that implements Countable src/addons/vw/vw/XF/Mvc/View.php:105. However, this exception has already been reported in issue 5840 (for editing pages) so feel free to overlook this as part of this issue report.
    Issue Details
    Issue Number 5842
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Editing Pages
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.1.0 Beta 3
    Fixed Version 4.1.0 Beta 3
    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. September 6, 2019 10:11 AM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed all in the next build.

      While the error message was similar, the count() error was different in this case. Here the count error was thrown because it was encountering a string, while in the other report it was encountering a class instance.

      The undefined index tab_style revealed that users who upgraded to Beta 3 were not getting the new tab_style column added to the vw_revision table, which would cause database errors when trying to save page content. Build 002 should automatically detect this situation and correct it.
      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 12:43 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.