• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
      • Try XenForo Demo
      • New Posts
      • FAQ
      • Calendar
      • Community
        • Groups
        • Albums
        • Member List
      • Forum Actions
        • Mark Forums Read
      • Quick Links
        • Today's Posts
        • Who's Online
      • Sponsor
        • Sponsor a Feature
        • List of Donors
    • Wiki
    • Support
    • What's New?
    • Buy Now
    • Manual
    • 
    • Forum
    • VaultWiki How-Tos
    • VaultWiki Questions
    • Strange MYSQL error after installing Wikiw

    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.

    Results 1 to 5 of 5

    Thread: Strange MYSQL error after installing Wikiw

    • Thread Tools
      • Show Printable Version
    1. October 19, 2008 #1
      jwocky
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      jwocky is offline
      Junior Member
      Join Date
      October 18, 2008
      Posts
      6
      Rep Power
      0

      Strange MYSQL error after installing Wikiw

      First off, the wiki is amazing. I'm in love

      But ever since installing it i'm getting these strange errors, about 3-5 per hour..

      Code:
      Database error in vBulletin 3.7.3:
      
      Invalid SQL:
      
      SELECT
      post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted,
      user.*, userfield.*, usertextfield.*,
      
      avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight,
      
      editlog.userid AS edit_userid, editlog.username AS edit_username, editlog.dateline AS edit_dateline,
      editlog.reason AS edit_reason, editlog.hashistory,
      postparsed.pagetext_html, postparsed.hasimages,
      sigparsed.signatureparsed, sigparsed.hasimages AS sighasimages,
      sigpic.userid AS sigpic, sigpic.dateline AS sigpicdateline, sigpic.width AS sigpicwidth, sigpic.height AS sigpicheight,
      IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid
      
      
      FROM post AS post
      LEFT JOIN user AS user ON(user.userid = post.userid)
      LEFT JOIN userfield AS userfield ON(userfield.userid = user.userid)
      LEFT JOIN usertextfield AS usertextfield ON(usertextfield.userid = user.userid)
      
      LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)
      
      LEFT JOIN editlog AS editlog ON(editlog.postid = post.postid)
      LEFT JOIN postparsed AS postparsed ON(postparsed.postid = post.postid AND postparsed.styleid = 16 AND postparsed.languageid = 1)
      LEFT JOIN sigparsed AS sigparsed ON(sigparsed.userid = user.userid AND sigparsed.styleid = 16 AND sigparsed.languageid = 1)
      LEFT JOIN sigpic AS sigpic ON(sigpic.userid = post.userid)
      
      WHERE post.threadid =  AND post.dateline > 1224383443 AND (post.visible = 1 OR post.postid = 164690)
      
      ORDER BY dateline;
      
      MySQL 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 post.dateline > 1224383443 AND (post.visible = 1 OR post.postid = 164690)
      ' at line 27
      Error Number  : 1064
      Request Date  : Saturday, October 18th 2008 @ 10:56:41 PM
      Error Date    : Saturday, October 18th 2008 @ 10:56:41 PM
      Any ideas what the fix for this might be?
      Reply With Quote Reply With Quote

    2. October 19, 2008 #2
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      687
      This error can be safely ignored. There is an ongoing investigation into what causes it. Perhaps if you also report the content of the post that generated this error (id: 164690)
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. October 19, 2008 #3
      jwocky
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      jwocky is offline
      Junior Member
      Join Date
      October 18, 2008
      Posts
      6
      Rep Power
      0
      Quote Originally Posted by pegasus View Post
      This error can be safely ignored. There is an ongoing investigation into what causes it. Perhaps if you also report the content of the post that generated this error (id: 164690)
      Well it seems from the error that the problem is that the ThreadID is being left blank in that call, I put in my (there should be a value here) in the place that was originally left blank.

      Original
      WHERE post.threadid = AND post.dateline > 1224383443 AND (post.visible = 1 OR post.postid = 164690)

      WHERE post.threadid = (there should be a value here) AND post.dateline > 1224383443 AND (post.visible = 1 OR post.postid = 164690)

      Im assuming in your hack it is clearing out the threadid value and null-ingit somewhere along the way, or its not globalizing and passing it or something along those lines.
      Reply With Quote Reply With Quote

    4. October 19, 2008 #4
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      687
      We are aware that the threadID is NULL but there is nowhere in the code where it would modify the threadID. Also considering that it doesn't happen in every Quick Reply, we believe there may be something in common with the content of the replies that do cause this (because the mod does run that through the parser before the query).

      We believe that part of the issue arises because the $threadinfo array is not passed by reference in vBulletin's build_new_post() function, but as I said that is only part of the issue.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    5. June 18, 2009 #5
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      687
      We have not had this error pop up for months. I believe that we finally squashed it during the 2.2.x series (around January).
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    Similar Threads

    1. Issue installing Wiki for Vbulletin 4
      By loganforand in forum General Discussion
      Replies: 1
      Last Post: July 11, 2011, 6:06 PM
    2. MySQL 5.5?
      By Alfa1 in forum VaultWiki Questions
      Replies: 4
      Last Post: May 19, 2011, 1:54 PM
    3. Installing 2.5.0 Stage 7
      By na641 in forum VaultWiki Questions
      Replies: 4
      Last Post: August 11, 2009, 6:51 PM
    4. MySQL Error
      By HellRazor in forum VaultWiki Questions
      Replies: 2
      Last Post: August 31, 2008, 9:51 PM
    5. MySQL Error when trying to use Books
      By Home Alone in forum VaultWiki Questions
      Replies: 3
      Last Post: August 30, 2008, 10:47 PM

    Tags for this Thread

    about, after, also, are, because, before, being, but, can, check, considering, does, error, every, first, for, from, generated, get, getting, going, have, here, installing, into, its, left, mysql, new, off, only, out, place, pop, quick, quote, reason, reference, reply, right, should, some, something, strange, that, the, there, this, user, value, was, way, what, where, wikiw, with, would, you, your

    View Tag Cloud

    Bookmarks

    Bookmarks
    • Submit to Digg Digg
    • Submit to del.icio.us del.icio.us
    • Submit to StumbleUpon StumbleUpon
    • Submit to Google Google

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •  
    • BB code is On
    • Smilies are On
    • [IMG] code is Off
    • [VIDEO] code is
    • HTML code is Off

    Forum Rules

    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 7:14 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.