• 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
    • Failed to get controller response and reroute to error handler (XenForo_ControllerPublic_Index::actionindex)

    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: Failed to get controller response and reroute to error handler (XenForo_ControllerPublic_Index::actionindex)

    • Issue Tools
      • View Changes
    1. issueid=4088 November 26, 2014 8:09 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Failed to get controller response and reroute to error handler (XenForo_ControllerPublic_Index::actionindex)

      Code:
      Failed to get controller response and reroute to error handler (XenForo_ControllerPublic_Index::actionindex)
      
      An exception occurred: Undefined variable: title in /library/vw/XenForo/ReportHandler/vw.php on line 146
      
          XenForo_Application::handlePhpError() in vw/XenForo/ReportHandler/vw.php at line 146
          vw_XenForo_ReportHandler_vw->getContentTitle() in XenForo/ReportHandler/Abstract.php at line 111
          XenForo_ReportHandler_Abstract->prepareReport() in XenForo/ReportHandler/Abstract.php at line 149
          XenForo_ReportHandler_Abstract->prepareReports() in XenForo/Model/Report.php at line 185
          XenForo_Model_Report->getVisibleReportsForUser() in XenForo/Model/Report.php at line 273
          XenForo_Model_Report->getActiveReportsCountsForUser() in XenForo/ControllerPublic/Abstract.php at line 395
          XenForo_ControllerPublic_Abstract->_updateModeratorSessionReportCounts() in XenForo/ControllerPublic/Abstract.php at line 363
          XenForo_ControllerPublic_Abstract->_updateModeratorSessionCaches() in XenForo/ControllerPublic/Abstract.php at line 30
          XenForo_ControllerPublic_Abstract->_preDispatchType() in XenForo/Controller.php at line 308
          XenForo_Controller->preDispatch() in XenForo/FrontController.php at line 346
          XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
          XenForo_FrontController->run() in /index.php at line 13
    Issue Details
    Issue Number 4088
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Moderator Tools
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.0 RC 5
    Fixed Version 4.0.0 RC 5
    Milestone VaultWiki 4.0 Gold
    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. November 26, 2014 8:20 AM
      pegasus pegasus is offline
      VaultWiki Team
      In library/vw/ReportHandler/vw.php, find:
      Code:
      if (isset($contentInfo['title']))
      Add before:
      Code:
      $title = '';
      I'm not sure what kind of reported content you have though if it doesn't have any of kind of title to refer to. Even comments have the title of the discussion.
      Reply Reply  
    2. November 26, 2014 8:54 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Code:
      Parse error: syntax error, unexpected T_ELSE in /library/vw/XenForo/ReportHandler/vw.php on line 137
      Reply Reply  
    3. November 26, 2014 9:00 AM
      pegasus pegasus is offline
      VaultWiki Team
      The script had "undefined variable" before. It would only be possible to see that message if there were no parse errors. You either applied the new code after the find code (the correct position is BEFORE the find code), or you loaded the page while the file was still saving.

      When you're done, the file should look similar to this:
      Code:
      	public function getContentTitle(array $report, array $contentInfo)
      	{
      		$title = '';
      
      		if (isset($contentInfo['title']))
      		{
      			vw_Hard_Core::model('URL')->affix_prefix($contentInfo);
      Reply Reply  
    4. November 26, 2014 9:37 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      I applied the patch wrong. Its fixed now.
      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 2:25 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 © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.