• 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
    • Syntax error

    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: Syntax error

    • Issue Tools
      • View Changes
    1. issueid=5008 April 8, 2017 9:07 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Syntax error

      Code:
      Error Info
      XenForo_Exception: Database Error: SELECT subscribeid FROM `vw_subscribe` WHERE userid = 281763 AND nodeid = AND nodetypeid = 5 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 'AND nodetypeid = 5' at line 1 - vault/core/controller/db/xf.php:173 
      Generated By: Budgetadvisoryservice, Today at 4:37 AM
      
      Stack Trace
      #0 /vault/core/controller/db/xf.php(254): vw_DB_Controller_XF->throw_error(Object(Zend_Db_Statement_Mysqli_Exception), 'SELECT subscrib...')
      #1 /vault/core/model/db/mysql/vw.php(27): vw_DB_Controller_XF->query_first('SELECT subscrib...')
      #2 /vault/core/controller/dm/subscribe/vw.php(207): vw_DB_MySQL_Model->select(Array)
      #3 /library/vw/XenForo/DataWriter.php(499): vw_DM_Subscribe_Controller->pre_save(true)
      #4 /library/XenForo/DataWriter.php(1460): vw_XenForo_DataWriter->_preSave()
      #5 /library/vw/XenForo/DataWriter.php(190): XenForo_DataWriter->preSave()
      #6 /vault/core/controller/dm/xf.php(382): vw_XenForo_DataWriter->preSaveWithReturn()
      #7 /vault/core/controller/ui/watch/vw.php(1404): vw_DM_Controller_XF->pre_save()
      #8 /vault/core/controller/ui/discussion/vw.php(1704): vw_UI_Watch_Controller->update(Array, false)
      #9 /vault/core/controller/ui/discussion/vw.php(87): vw_UI_Discussion_Controller->posttalk()
      #10 /vault/core/controller/ui/discussion/xf.php(72): vw_UI_Discussion_Controller->execute()
      #11 /vault/core/view/ui/page/vw.php(285): vw_UI_Discussion_Controller_XF->execute()
      #12 /vault/core/controller/ui/page/vw.php(891): vw_UI_Page_View->get_comments(Object(vw_UI_Page_Controller_XF), true)
      #13 /vault/core/controller/ui/page/vw.php(181): vw_UI_Page_Controller->comments()
      #14 /vault/core/controller/ui/page/xf.php(58): vw_UI_Page_Controller->execute()
      #15 /vault/core/controller/ui/stack/vw.php(271): vw_UI_Page_Controller_XF->execute()
      #16 /library/vw/XenForo/ControllerPublic/Wiki.php(70): vw_UI_Stack_Controller->execute()
      #17 /library/XenForo/FrontController.php(351): vw_XenForo_ControllerPublic_Wiki->actionIndex()
      #18 /library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
      #19 /index.php(13): XenForo_FrontController->run()
      #20 {main}
      Request State
      array(3) {
        ["url"] => string(95) "https://site.com/wiki/Category:xx?do=comments&action=posttalk"
        ["_GET"] => array(2) {
          ["do"] => string(8) "comments"
          ["action"] => string(8) "posttalk"
        }
        ["_POST"] => array(17) {
          ["edittitle"] => string(12) "Just testing"
          ["description"] => string(71) "A test of the functionality of discussions in the wiki, from an iPhone."
          ["message"] => string(163) "A test comment.
      
      Here is a picture of me, hard at work on testing the wiki:
      
      [ATTACH=full]62106[/ATTACH] 
      
      ... and as a thumbnail:
      
      [ATTACH]62106[/ATTACH] "
          ["_xfRelativeResolver"] => string(91) "https://site.com /wiki/Category:xxx?do=comments&action=talk"
          ["attachment_hash"] => string(32) "bc07cb8253f092aa2c1df7f88625c6d3"
          ["posthash"] => string(0) ""
          ["poststarttime"] => string(0) ""
          ["parseurl"] => string(1) "1"
          ["signature"] => string(1) "1"
          ["notifytype"] => string(1) "0"
          ["sub_options"] => array(2) {
            ["item_edits"] => string(1) "1"
            ["item_comments"] => string(1) "1"
          }
          ["sbutton"] => string(8) "Post Now"
          ["_xfToken"] => string(8) "********"
          ["do"] => string(8) "comments"
          ["action"] => string(8) "posttalk"
          ["loggedinuser"] => string(6) "281763"
          ["bb2_screener_"] => string(24) "xxx"
        }
      }
    Issue Details
    Issue Number 5008
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Discussions / Comments
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.17
    Fixed Version 4.0.18
    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. April 9, 2017 9:53 AM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next release. This occurs when subscribing to a custom discussion under a page. In vault/core/controller/dm/subscribe/vw.php, find:
      Code:
      $discussion = vw_Hard_Core::controller('Fetch')->get($talktypeid, $this->instance->get('nodeid'));
      Replace with:
      Code:
      $discussion = vw_Hard_Core::controller('Fetch')->get($talktypeid, $itemid);
      Reply Reply  
    2. April 9, 2017 3:22 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 6:01 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.