• 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
    • XenForo_Exception: Database Error: UPDATE `vw_counter` SET `lastupdate` = CASE `pageid` WHEN 1 THEN END WHERE `pageid` IN (1)

    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: XenForo_Exception: Database Error: UPDATE `vw_counter` SET `lastupdate` = CASE `pageid` WHEN 1 THEN END WHERE `pageid` IN (1)

    • Issue Tools
      • View Changes
    1. issueid=4211 February 15, 2015 7:13 PM
      hollosch hollosch is offline
      Senior Member
      XenForo_Exception: Database Error: UPDATE `vw_counter` SET `lastupdate` = CASE `pageid` WHEN 1 THEN END WHERE `pageid` IN (1)

      Code:
      XenForo_Exception: Database Error: UPDATE `vw_counter` SET `lastupdate` = CASE `pageid` WHEN 1 THEN END WHERE `pageid` IN (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 'WHERE `pageid` IN (1)' at line 3 - vault/core/controller/db/xf.php:146
      Generiert durch: Tischtennisabteilung, Vor einem Moment
      Stapelverfolgung
      #0 /../vault/core/controller/db/xf.php(132): vw_DB_Controller_XF->throw_error(Object(Zend_Db_Statement_Mysqli_Exception), 'UPDATE `vw_coun...')
      #1 /../vault/core/model/db/mysql/vw.php(907): vw_DB_Controller_XF->query_write('UPDATE `vw_coun...')
      #2 /../vault/core/model/db/mysql/vw.php(676): vw_DB_MySQL_Model->shutdown_or_run('UPDATE `vw_coun...', false)
      #3 /../vault/core/controller/dm/base/vw.php(993): vw_DB_MySQL_Model->update(Array)
      #4 /../vault/core/controller/dm/discussion/vw.php(100): vw_DM_Base_Controller->rebuild_lastupdate(5, Array, true)
      #5 /../library/vw/XenForo/DataWriter.php(424): vw_DM_Discussion_Controller->post_save_each()
      #6 /../library/XenForo/DataWriter.php(1409): vw_XenForo_DataWriter->_postSave()
      #7 /../vault/core/controller/dm/xf.php(400): XenForo_DataWriter->save()
      #8 /../vault/core/controller/ui/discussion/vw.php(1363): vw_DM_Controller_XF->save()
      #9 /../vault/core/controller/ui/discussion/vw.php(89): vw_UI_Discussion_Controller->posttalk()
      #10 /../vault/core/controller/ui/discussion/xf.php(69): vw_UI_Discussion_Controller->execute()
      #11 /../vault/core/view/ui/page/vw.php(200): vw_UI_Discussion_Controller_XF->execute()
      #12 /../vault/core/controller/ui/page/vw.php(717): vw_UI_Page_View->get_comments(Object(vw_UI_Page_Controller), true)
      #13 /../vault/core/controller/ui/page/vw.php(177): vw_UI_Page_Controller->comments()
      #14 /../vault/core/controller/ui/stack/vw.php(222): vw_UI_Page_Controller->execute()
      #15 /../library/vw/XenForo/ControllerPublic/Wiki.php(68): vw_UI_Stack_Controller->execute()
      #16 /../library/XenForo/FrontController.php(347): vw_XenForo_ControllerPublic_Wiki->actionIndex()
      #17 /../library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
      #18 /../index.php(13): XenForo_FrontController->run()
      #19 {main}
      Benötigter Status
      array(3) {
        ["url"] => string(55) "http://geislingen.net/wiki/?do=comments&action=posttalk"
        ["_GET"] => array(2) {
          ["do"] => string(8) "comments"
          ["action"] => string(8) "posttalk"
        }
        ["_POST"] => array(13) {
          ["edittitle"] => string(4) "test"
          ["description"] => string(4) "test"
          ["message_html"] => string(23) "<p>Das ist ein Test</p>"
          ["_xfRelativeResolver"] => string(51) "http://geislingen.net/wiki/?do=comments&action=talk"
          ["parseurl"] => string(1) "1"
          ["posthash"] => string(0) ""
          ["poststarttime"] => string(0) ""
          ["notifytype"] => string(1) "1"
          ["sbutton"] => string(8) "Absenden"
          ["_xfToken"] => string(8) "********"
          ["do"] => string(8) "comments"
          ["action"] => string(8) "posttalk"
          ["loggedinuser"] => string(3) "114"
        }
      }
    Issue Details
    Issue Number 4211
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Discussions / Comments
    Status Fixed
    Priority 1 - Security / Login / Data Loss
    Affected Version 4.0.1
    Fixed Version 4.0.2
    Milestone (none)
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. February 15, 2015 8:48 PM
      hollosch hollosch is offline
      Senior Member
      discussion was created.

      how to delete the discussion now?
      http://geislingen.net/wiki/?do=comments&discussionid=56
      Reply Reply  
    2. February 15, 2015 10:48 PM
      pegasus pegasus is offline
      VaultWiki Team
      I can't really tell what you were trying to do by the error message in the first post. It looks like you created a new discussion and it has no 'dateline' field, but this is impossible because that's a main field on the discussion table. It's also automatically set to the current time whenever it's empty.

      I will need more information to reproduce the problem.

      To delete a discussion go to http://geislingen.net/wiki/?do=comments&action=list
      Reply Reply  
    3. February 16, 2015 3:50 AM
      hollosch hollosch is offline
      Senior Member
      Hi,
      everthing i do is creating a (test)-discussion as a registered user.

      Testting again - same error:
      Code:
      XenForo_Exception: Database Error: UPDATE `vw_counter` SET `lastupdate` = CASE `pageid` WHEN 1 THEN END WHERE `pageid` IN (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 'WHERE `pageid` IN (1)' at line 3 - vault/core/controller/db/xf.php:146
      Generiert durch: Tischtennisabteilung, Vor einem Moment
      Stapelverfolgung
      #0 /../vault/core/controller/db/xf.php(132): vw_DB_Controller_XF->throw_error(Object(Zend_Db_Statement_Mysqli_Exception), 'UPDATE `vw_coun...')
      #1 /../vault/core/model/db/mysql/vw.php(907): vw_DB_Controller_XF->query_write('UPDATE `vw_coun...')
      #2 /../vault/core/model/db/mysql/vw.php(676): vw_DB_MySQL_Model->shutdown_or_run('UPDATE `vw_coun...', false)
      #3 /../vault/core/controller/dm/base/vw.php(993): vw_DB_MySQL_Model->update(Array)
      #4 /../vault/core/controller/dm/discussion/vw.php(100): vw_DM_Base_Controller->rebuild_lastupdate(5, Array, true)
      #5 /../library/vw/XenForo/DataWriter.php(424): vw_DM_Discussion_Controller->post_save_each()
      #6 /../library/XenForo/DataWriter.php(1409): vw_XenForo_DataWriter->_postSave()
      #7 /../vault/core/controller/dm/xf.php(400): XenForo_DataWriter->save()
      #8 /../vault/core/controller/ui/discussion/vw.php(1363): vw_DM_Controller_XF->save()
      #9 /../vault/core/controller/ui/discussion/vw.php(89): vw_UI_Discussion_Controller->posttalk()
      #10 /../vault/core/controller/ui/discussion/xf.php(69): vw_UI_Discussion_Controller->execute()
      #11 /../vault/core/view/ui/page/vw.php(200): vw_UI_Discussion_Controller_XF->execute()
      #12 /../vault/core/controller/ui/page/vw.php(717): vw_UI_Page_View->get_comments(Object(vw_UI_Page_Controller), true)
      #13 /../vault/core/controller/ui/page/vw.php(177): vw_UI_Page_Controller->comments()
      #14 /../vault/core/controller/ui/stack/vw.php(222): vw_UI_Page_Controller->execute()
      #15 /../library/vw/XenForo/ControllerPublic/Wiki.php(68): vw_UI_Stack_Controller->execute()
      #16 /../library/XenForo/FrontController.php(347): vw_XenForo_ControllerPublic_Wiki->actionIndex()
      #17 /../library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
      #18 /../index.php(13): XenForo_FrontController->run()
      #19 {main}
      Benötigter Status
      array(3) {
        ["url"] => string(55) "http://geislingen.net/wiki/?do=comments&action=posttalk"
        ["_GET"] => array(2) {
          ["do"] => string(8) "comments"
          ["action"] => string(8) "posttalk"
        }
        ["_POST"] => array(13) {
          ["edittitle"] => string(5) "test2"
          ["description"] => string(0) ""
          ["message_html"] => string(20) "<p>Das ist Test2</p>"
          ["_xfRelativeResolver"] => string(51) "http://geislingen.net/wiki/?do=comments&action=talk"
          ["parseurl"] => string(1) "1"
          ["posthash"] => string(0) ""
          ["poststarttime"] => string(0) ""
          ["notifytype"] => string(1) "1"
          ["sbutton"] => string(8) "Absenden"
          ["_xfToken"] => string(8) "********"
          ["do"] => string(8) "comments"
          ["action"] => string(8) "posttalk"
          ["loggedinuser"] => string(3) "114"
        }
      }
      Reply Reply  
    4. February 16, 2015 11:53 AM
      pegasus pegasus is offline
      VaultWiki Team
      This only occurs when creating discussions (possibly editing and other updates) for pages that appear on at least 1 feed.

      Fixed on your install and for the next release. In vault/core/controller/dm/base/vw.php, find:
      Code:
      while ($feeditem = vw_DB::get()->func()->fetch_array($feeds))
      Before it, add:
      Code:
      $feedtypeid = vw_Hard_Core::model('Node')->id('Feed');
      Reply Reply  
    5. February 16, 2015 12:42 PM
      hollosch hollosch is offline
      Senior 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 11: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.