• 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
    • Array to string conversion

    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: Array to string conversion

    • Issue Tools
      • View Changes
    1. issueid=4601 March 21, 2016 2:31 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Array to string conversion

      Code:
      ErrorException: Array to string conversion - vault/core/model/parser/handle/widget/xf.php:25 
      Generated By: Alfa, A moment ago
      
      Stack Trace
      #0 /vault/core/model/parser/handle/widget/xf.php(25): XenForo_Application::handlePhpError(8, 'Array to string...', '/home/...', 25, Array)
      #1 /vault/core/model/parser/handle/widget/vw.php(246): vw_Parser_Handle_Widget_Model_XF->handle_widget_threads_finally(' threads="117" ...')
      #2 /library/vw/XenForo/CodeEventListener/Public.php(298): vw_Parser_Handle_Widget_Model->replace_widgets_in_output('<!DOCTYPE html>...')
      #3 /library/XenForo/CodeEvent.php(90): vw_XenForo_CodeEventListener_Public::front_controller_post_view(Object(XenForo_FrontController), '<!DOCTYPE html>...')
      #4 /library/XenForo/FrontController.php(183): XenForo_CodeEvent::fire('front_controlle...', Array)
      #5 /index.php(13): XenForo_FrontController->run()
      #6 {main}
      Request State
      array(3) {
        ["url"] => string(59) "https://site.com/index.php?wiki/&title=Hyoscyamus"
        ["_GET"] => array(2) {
          ["wiki/"] => string(0) ""
          ["title"] => string(10) "Hyoscyamus"
        }
        ["_POST"] => array(0) {
        }
      }
    Issue Details
    Issue Number 4601
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Page Output
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.9
    Fixed Version 4.0.9
    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. March 21, 2016 4:05 PM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/core/model/parser/handle/widget/xf.php, find:
      Code:
      $output = '&lt;div class="vw-require" data-css="discussion_list"&gt;&lt;/div&gt;' . $output;
      Replace with:
      Code:
      $output['content'] = '&lt;div class="vw-require" data-css="discussion_list"&gt;&lt;/div&gt;' . $output['content'];
      Reply Reply
    2. March 21, 2016 8:53 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Now I have this:
      Code:
      An exception occurred: Undefined index: title in /vault/core/model/parser/handle/widget/vw.php on line 258
      
          XenForo_Application::handlePhpError() in /vault/core/model/parser/handle/widget/vw.php at line 258
          vw_Parser_Handle_Widget_Model->replace_widgets_in_output() in vw/XenForo/CodeEventListener/Public.php at line 298
          vw_XenForo_CodeEventListener_Public::front_controller_post_view() in XenForo/CodeEvent.php at line 90
          XenForo_CodeEvent::fire() in XenForo/FrontController.php at line 183
          XenForo_FrontController->run() in /index.php at line 13
      Seems very similar.
      Reply Reply
    3. March 22, 2016 10:22 AM
      pegasus pegasus is offline
      VaultWiki Team
      Try emptying the vw_parsedwidget table. One of the other errors you reported may have resulted in an invalid value being saved to the cache. In MySQL:
      Code:
      TRUNCATE TABLE vw_parsed_widget
      Reply Reply
    4. March 22, 2016 1:22 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Still the undefined index: title error.
      Reply Reply
    5. March 22, 2016 2:01 PM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/core/model/parser/handle/widget/xf.php, find:
      Code:
      if ($output)
      Replace with:
      Code:
      if ($output AND !empty($output['content']))
      Reply Reply
    6. March 22, 2016 4:04 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Finally 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 12: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.