• 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
    • Fatal Error: Call to undefined method vw_XenForo_CodeEventListener_Public::setController()

    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: Fatal Error: Call to undefined method vw_XenForo_CodeEventListener_Public::setController()

    • Issue Tools
      • View Changes
    1. issueid=4881 January 19, 2017 2:55 PM
      Gossamer Gossamer is offline
      Junior Member
      Fatal Error: Call to undefined method vw_XenForo_CodeEventListener_Public::setController()

      One of my members was trying to save their account preferences when they got a server error. This error popped up in my error log:

      Code:
      Error Info
      ErrorException: Fatal Error: Call to undefined method vw_XenForo_CodeEventListener_Public::setController() - library/vw/XenForo/ControllerPublic/Account.php:79
      Generated By: Damien, Today at 12:55 PM
      Stack Trace
      #0 [internal function]: XenForo_Application::handleFatalError()
      #1 {main}
      Request State
      array(3) {
        ["url"] => string(52) "http://whisperingstatic.com/account/preferences-save"
        ["_GET"] => array(0) {
        }
        ["_POST"] => array(16) {
          ["style_id"] => string(1) "0"
          ["language_id"] => string(1) "1"
          ["timezone"] => string(19) "Africa/Johannesburg"
          ["default_watch_state"] => string(1) "1"
          ["default_watch_state_email"] => string(1) "1"
          ["enable_rte"] => string(1) "1"
          ["enable_flash_uploader"] => string(1) "1"
          ["content_show_signature"] => string(1) "1"
          ["visible"] => string(1) "1"
          ["activity_visible"] => string(1) "1"
          ["vw_sub_options"] => string(1) "1"
          ["_xfToken"] => string(8) "********"
          ["save"] => string(12) "Save Changes"
          ["_xfRequestUri"] => string(20) "/account/preferences"
          ["_xfNoRedirect"] => string(1) "1"
          ["_xfResponseType"] => string(4) "json"
        }
      }
    Issue Details
    Issue Number 4881
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category User Profiles
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.16
    Fixed Version 4.0.16
    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. January 19, 2017 3:27 PM
      pegasus pegasus is offline
      VaultWiki Team
      In library/vw/XenForo/ControllerPublic/Account.php, find:
      Code:
      vw_XenForo_CodeEventListener_Public::setController($this);
      Replace with:
      Code:
      vw_Hard_Core::controller('Request')->set_controller($this);
      In library/vw/XenForo/DataWriter/User.php, find:
      Code:
      $controller = vw_XenForo_CodeEventListener_Public::getStoredController();
      Replace with:
      Code:
      $controller = vw_Hard_Core::controller('Request')->controller();
      Reply Reply
    2. January 19, 2017 7:01 PM
      Gossamer Gossamer is offline
      Junior Member
      I made those updates, but now I'm getting a Database Error when I save my preferences.

      Code:
      XenForo_Exception: Database Error: UPDATE `vw_usercount` SET `vw_options` = 'a:2:{s:14:"auto_subscribe";i:1;s:9:"autolinks";i:0;}' WHERE userid = LIMIT 1 Mysqli prepare error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 1 - vault/core/controller/db/xf.php:173
      Generated By: Rani, 1 minute ago
      Stack Trace
      #0 /home/pandorar/public_html/whisperingstatic.com/vault/core/controller/db/xf.php(157): vw_DB_Controller_XF->throw_error(Object(Zend_Db_Statement_Mysqli_Exception), 'UPDATE  `vw_use...')
      #1 /home/pandorar/public_html/whisperingstatic.com/vault/core/model/db/mysql/vw.php(1105): vw_DB_Controller_XF->query_write('UPDATE  `vw_use...')
      #2 /home/pandorar/public_html/whisperingstatic.com/vault/core/model/db/mysql/vw.php(768): vw_DB_MySQL_Model->shutdown_or_run('UPDATE  `vw_use...', false)
      #3 /home/pandorar/public_html/whisperingstatic.com/vault/core/controller/ui/watch/vw.php(311): vw_DB_MySQL_Model->update(Array)
      #4 /home/pandorar/public_html/whisperingstatic.com/library/vw/XenForo/DataWriter/User.php(88): vw_UI_Watch_Controller->update_prefs('vw_')
      #5 /home/pandorar/public_html/whisperingstatic.com/library/XenForo/DataWriter.php(1423): vw_XenForo_DataWriter_User->_postSave()
      #6 /home/pandorar/public_html/whisperingstatic.com/library/XenForo/ControllerPublic/Account.php(766): XenForo_DataWriter->save()
      #7 /home/pandorar/public_html/whisperingstatic.com/library/vw/XenForo/ControllerPublic/Account.php(81): XenForo_ControllerPublic_Account->actionPreferencesSave()
      #8 /home/pandorar/public_html/whisperingstatic.com/library/XenForo/FrontController.php(351): vw_XenForo_ControllerPublic_Account->actionPreferencesSave()
      #9 /home/pandorar/public_html/whisperingstatic.com/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
      #10 /home/pandorar/public_html/whisperingstatic.com/index.php(13): XenForo_FrontController->run()
      #11 {main}
      Request State
      array(3) {
        ["url"] => string(52) "http://whisperingstatic.com/account/preferences-save"
        ["_GET"] => array(0) {
        }
        ["_POST"] => array(13) {
          ["style_id"] => string(1) "4"
          ["language_id"] => string(1) "1"
          ["timezone"] => string(16) "America/New_York"
          ["enable_rte"] => string(1) "1"
          ["content_show_signature"] => string(1) "1"
          ["visible"] => string(1) "1"
          ["activity_visible"] => string(1) "1"
          ["vw_sub_options"] => string(1) "1"
          ["_xfToken"] => string(8) "********"
          ["save"] => string(12) "Save Changes"
          ["_xfRequestUri"] => string(1) "/"
          ["_xfNoRedirect"] => string(1) "1"
          ["_xfResponseType"] => string(4) "json"
        }
      }
      Reply Reply
    3. January 20, 2017 8:21 AM
      pegasus pegasus is offline
      VaultWiki Team
      See: https://www.vaultwiki.org/issues/4875/
      Reply Reply
    4. January 20, 2017 5:18 PM
      Gossamer Gossamer is offline
      Junior Member
      Thanks! 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 5:00 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.