• 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 2] Un-approving: count(): Parameter must be an array or an object that implements Countable

    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 2] Un-approving: count(): Parameter must be an array or an object that implements Countable

    • Issue Tools
      • View Changes
    1. issueid=5638 February 13, 2019 1:53 PM
      ACL ACL is offline
      Regular Member
      [4.1 Alpha 2] Un-approving: count(): Parameter must be an array or an object that implements Countable

      When attempting to un-approve a wiki page (return it back to the approval queue) via Options -> Change Moderation Status:
      ErrorException: [E_WARNING] count(): Parameter must be an array or an object that implements Countable in src/addons/vw/vw/_core/controller/dm/base/vw.php at line 2326

      Code:
      XF::handlePhpError() in src/addons/vw/vw/_core/controller/dm/base/vw.php at line 2326
      vw_DM_Base_Controller->existing_streams() in src/addons/vw/vw/_core/controller/dm/base/vw.php at line 2555
      vw_DM_Base_Controller->delete_streams() in src/addons/vw/vw/_core/controller/dm/base/vw.php at line 2545
      vw_DM_Base_Controller->delete_stream() in src/addons/vw/vw/_core/controller/dm/page/vw.php at line 1714
      vw_DM_Page_Controller->post_save_each() in src/addons/vw/vw/XF/Entity/Entity.php at line 573
      vw\vw\XF\Entity\Entity->_postSave() in src/XF/Mvc/Entity/Entity.php at line 1165
      XF\Mvc\Entity\Entity->save() in src/addons/vw/vw/XF/Entity/Entity.php at line 501
      vw\vw\XF\Entity\Entity->vwSave() in src/addons/vw/vw/_core/controller/dm/xf2.php at line 363
      vw_DM_Controller_XF2->save() in src/addons/vw/vw/_core/controller/ui/imod/action/approve/vw.php at line 201
      vw_UI_iMod_Action_Approve_Controller->process_approve_generic() in src/addons/vw/vw/_core/controller/ui/imod/action/approve/vw.php at line 164
      vw_UI_iMod_Action_Approve_Controller->perform_doapprove() in src/addons/vw/vw/_core/controller/ui/imod/action/base/vw.php at line 91
      vw_UI_iMod_Action_base_Controller->process() in src/addons/vw/vw/Handler/InlineMod/Base/AbstractAction.php at line 183
      vw\vw\Handler\InlineMod\Base\AbstractAction->applyToEntity() in src/XF/InlineMod/AbstractAction.php at line 87
      XF\InlineMod\AbstractAction->applyInternal() in src/XF/InlineMod/AbstractAction.php at line 80
      XF\InlineMod\AbstractAction->apply() in src/XF/Pub/Controller/InlineMod.php at line 131
      XF\Pub\Controller\InlineMod->actionPerform() in src/addons/vw/vw/XF/Pub/Controller/InlineMod.php at line 41
      vw\vw\XF\Pub\Controller\InlineMod->actionPerform() in src/XF/Mvc/Dispatcher.php at line 249
      XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88
      XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
      XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1934
      XF\App->run() in src/XF.php at line 333
      XF::runApp() in index.php at line 13
      The inline moderation tools also produce the same error when choosing "Unapprove Pages"
    Issue Details
    Issue Number 5638
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Moderator Tools
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 4.1.0 Alpha 2
    Fixed Version 4.1.0 Alpha 2
    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. February 13, 2019 2:03 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next build. In src/addons/vw/vw/_core/controller/dm/base/vw.php, find:
      Code:
      	public function delete_streams($contentids)
      	{
      AFTER it, add:
      Code:
      		if ($contentids AND !is_array($contentids))
      		{
      			$contentids = array($contentids);
      		}
      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 4:33 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.