• 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
    • Beta 3 completely broken cannot edit pages

    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: Beta 3 completely broken cannot edit pages

    • Issue Tools
      • View Changes
    1. issueid=5840 September 1, 2019 8:43 AM
      expanserpb expanserpb is offline
      Junior Member
      Beta 3 completely broken cannot edit pages

      Rolling back my site now:

      on any attempt to edit page:

      ErrorException: [E_WARNING] count(): Parameter must be an array or an object that implements Countable src/addons/vw/vw/XF/Mvc/View.php:105
      Generated by: Raigryn Vayd Sep 1, 2019 at 1:07 PM
      Stack trace
      #0 [internal function]: XF::handlePhpError(2, '[E_WARNING] cou...', 's...', 105, Array)
      #1 src/addons/vw/vw/XF/Mvc/View.php(105): count('')
      #2 src/XF/Mvc/Renderer/AbstractRenderer.php(91): vw\vw\XF\Mvc\View->renderJson()
      #3 src/XF/Mvc/Renderer/Json.php(63): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('vw\\vw:Wiki', 'public:vw_gener...', Array)
      #4 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Json->renderView('vw\\vw:Wiki', 'public:vw_gener...', Array)
      #5 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
      #6 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
      #7 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
      #8 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
      #9 src/XF.php(390): XF\App->run()
      #10 index.php(20): XF::runApp('XF\\Pub\\App')
      #11 {main}
      Request state
      array(4) {
      ["url"] => string(47) "/Folklore-tools/draft?draft-key=1%3A1156%3A%3A0"
      ["referrer"] => string(47) "https://chroniclesrp.net/Folklore/Qhrek?do=edit"
      ["_GET"] => array(1) {
      ["draft-key"] => string(9) "1:1156::0"
      }
      ["_POST"] => array(23) {
      ["message_html"] => string(3846) "page content here"
      ["query"] => string(0) ""
      ["reason"] => string(0) ""
      ["prefixid"] => string(1) "0"
      ["edittitle"] => string(5) "Qhrek"
      ["typelist"] => array(2) {
      [14] => string(1) "0"
      [15] => string(1) "0"
      }
      ["icontype"] => string(0) ""
      ["fonticon"] => string(4) "f15b"
      ["fontstyle"] => string(1) "r"
      ["parseurl"] => string(1) "1"
      ["untabbed"] => string(1) "0"
      ["autolink"] => string(2) "-2"
      ["notifytype"] => string(2) "-1"
      ["do"] => string(4) "save"
      ["section"] => string(1) "0"
      ["posthash"] => string(32) "db7fe6c9a4e3056ec73a8cffe79be5f4"
      ["poststarttime"] => string(10) "1567339599"
      ["revparentid"] => string(4) "7344"
      ["loggedinuser"] => string(1) "8"
      ["_xfRequestUri"] => string(23) "/Folklore/Qhrek?do=edit"
      ["_xfWithData"] => string(1) "1"
      ["_xfToken"] => string(8) "********"
      ["_xfResponseType"] => string(4) "json"
      }
      }




      there was another issue relating to Tabs but I didn't copy it properly before rolling back



      If anyone is still here from VW side I suggest you pull this update completely.
    Issue Details
    Issue Number 5840
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Editing Pages
    Status Fixed
    Priority 1 - Security / Login / Data Loss
    Affected Version Unknown
    Fixed Version (none)
    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. September 4, 2019 12:56 PM
      pegasus pegasus is offline
      VaultWiki Team
      According to the trace provided, this occurs when saving a draft of the editor contents in XenForo 2, if the page content was edited by someone else since the editor was opened (therefore the draft would be outdated).

      In src/addons/vw/vw/_core/view/ui/tools/draft/xf2.php, find:
      Code:
      $content = $templater->render();
      Replace with:
      Code:
      $content = $templater->get_output();
      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 7:09 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 © 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.