• 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
    • Invalid argument supplied for foreach()

    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: Invalid argument supplied for foreach()

    • Issue Tools
      • View Changes
    1. issueid=5249 September 26, 2017 10:44 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Invalid argument supplied for foreach()

      Code:
      ErrorException: Invalid argument supplied for foreach() - vault/core/controller/dm/xf.php:156 
      Generated By: Alfa, A moment ago
      
      Stack Trace
      #0 /vault/core/controller/dm/xf.php(156): XenForo_Application::handlePhpError(2, 'Invalid argumen...', '/home/...', 156, Array)
      #1 /vault/core/controller/ui/redirect/vw.php(347): vw_DM_Controller_XF->set_existing(false)
      #2 /vault/core/controller/ui/page/vw.php(711): vw_UI_Redirect_Controller->save()
      #3 /vault/core/controller/ui/page/vw.php(76): vw_UI_Page_Controller->post_redirect()
      #4 /vault/core/controller/ui/page/xf.php(58): vw_UI_Page_Controller->execute()
      #5 /vault/core/controller/ui/stack/vw.php(276): vw_UI_Page_Controller_XF->execute()
      #6 /library/vw/XenForo/ControllerPublic/Wiki.php(70): vw_UI_Stack_Controller->execute()
      #7 /library/XenForo/FrontController.php(351): vw_XenForo_ControllerPublic_Wiki->actionIndex()
      #8 /library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
      #9 /index.php(13): XenForo_FrontController->run()
      #10 {main}
      Please see error log 887 on my site for the request state.
    Issue Details
    Issue Number 5249
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Synonyms
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 4.0.19
    Fixed Version 4.0.20
    Milestone (none)
    Software DependencyXenForo 1.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. September 27, 2017 4:58 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed on your site and in the next release. This occurred in the following condition:

      1. A Manage Synonyms tab is open, and at least one synonym is listed under the existing synonyms there.
      2. One of the existing synonyms is deleted in another browser tab or by another user.
      3. The user with the Manage Synonyms tab open saves the tab.
      4. Since one of the existing synonyms on the tab no longer exists, this error is thrown.

      The correct behavior in this case is for the synonym to be recreated without throwing an error.

      In this case, this resulted in the prefix selection not being honored, and no prefix being used when the synonym was recreated.
      Additionally I noticed that when creating a new synonym on a page that already has at least one synonym, the prefix selection for the new synonym is not honored. However, it should still be possible to rename the synonym to include the prefix afterwards. This is also fixed.
      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:40 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.