• 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=5520 October 26, 2018 3:54 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Invalid argument supplied for foreach()

      When I opened a report in the XF report center I got this error. I think this may be relating to a spam deleted comment.

      ErrorException: Invalid argument supplied for foreach() - vault/core/view/factory/comment/xf.php:336
      Generated By: Alfa, A moment ago

      Stack Trace
      #0 /vault/core/view/factory/comment/xf.php(336): XenForo_Application::handlePhpError(2, 'Invalid argumen...', '/home/nginx/dom...', 336, Array)
      #1 /vault/core/view/factory/comment/vw.php(99): vw_Factory_Comment_View_XF->parse_bbcode()
      #2 /vault/core/view/editor/vw.php(83): vw_Factory_Comment_View->get_content(Array, NULL)
      #3 /library/vw/XenForo/ReportHandler/vw.php(199): vw_Editor_View->preview(Array, NULL, false)
      #4 /library/XenForo/ViewPublic/Report/View.php(10): vw_XenForo_ReportHandler_vw->viewCallback(Object(SV_ReportImprovements_XenForo_ViewPu blic_Report_View), Array, Array)
      #5 /library/SV/ReportImprovements/XenForo/ViewPublic/Report/View.php(11): XenForo_ViewPublic_Report_View->renderHtml()
      #6 /library/XenForo/ViewRenderer/Abstract.php(229): SV_ReportImprovements_XenForo_ViewPublic_Report_View->renderHtml()
      #7 /library/XenForo/ViewRenderer/HtmlPublic.php(71): XenForo_ViewRenderer_Abstract->renderViewObject('SV_ReportImprov...', 'Html', Array, 'report_view')
      #8 /library/XenForo/FrontController.php(624): XenForo_ViewRenderer_HtmlPublic->renderView('XenForo_ViewPub...', Array, 'report_view', NULL)
      #9 /library/XenForo/FrontController.php(176): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
      #10 /index.php(13): XenForo_FrontController->run()
      #11 {main}
      Request State
      array(3) {
      ["url"] => string(38) "https://my-forum.com/reports/14869/"
      ["_GET"] => array(1) {
      ["/reports/14869/"] => string(0) ""
      }
      ["_POST"] => array(0) {
      }
      }
    Issue Details
    Issue Number 5520
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Discussions / Comments
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.0.24
    Fixed Version 4.0.25
    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. October 26, 2018 5:39 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next version. In library/vw/XenForo/ReportHandler/vw.php, find:
      Code:
      $message = null;
      After it, add:
      Code:
      $attachments = array();
      Reply Reply  
    2. October 26, 2018 6:41 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Thanks!
      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 8:11 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.