Go Back   vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Please Register to get full access to the forums.
Post New Thread  Reply



#1   04-13-2008, 05:41 PM
ArnyVee has a spectacular aura about Join Date: Apr 2008 Posts: 524
Help w/Database Error...


I'm not sure if it's 100% related, but I was adding a mod and when I went to test it out I got the following database error....
Code:
Database error in vBulletin 3.6.8:

Invalid SQL:
UPDATE user SET
	posts = posts + 1,
	usertitle = 'Administrator',
	lastpost = 1208129752,
	lastpostid = 0,
	threads = 1
WHERE userid = 1;

MySQL Error  : Unknown column 'threads' in 'field list'
Error Number : 1054
Date         : Sunday, April 13th 2008 @ 07:35:52 PM
Script       : Walt Disney Boards
Referrer     : Walt Disney Boards
IP Address   : 74.233.123.38
Username     : Admin
Classname    : vB_Database
......any help would be very appreciated!
--------------------
www.WaltDisneyBoards.com

Last edited by Brandon; 04-13-2008 at 06:47 PM.
Quote   |  



#2   04-13-2008, 05:58 PM
Send a message via Yahoo to Dave Dave is a jewel in the roughDave is a jewel in the rough Join Date: Jan 2008 Posts: 772 Location: Ohio
Re: Help w/Database Error...


You've got an extra colum in your field list table called threads.

Do you have other modifications installed, or does this modification the only one you haveinstalled?
--------------------
David / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Check out my Webmaster Articles at the vBulletin Setup Blog! World of Warcraft Macros
Quote   |  



#3   04-13-2008, 06:00 PM
Michael Biddle is just really niceMichael Biddle is just really nice Join Date: Aug 2006 Posts: 1,561 Location: Anaheim, CA
Re: Help w/Database Error...


that looks like its from a mod. If you are using it, then add a threads field to the user table
--------------------
Do NOT PM me for Support!
Michael Biddle / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Quote   |  



#4   04-13-2008, 06:04 PM
ArnyVee has a spectacular aura about Join Date: Apr 2008 Posts: 524
Re: Help w/Database Error...


I've put quite a few mods on there, but didn't get this database error until the last one or two. Any suggestions on a fix?

I'm new, so I need the help for sure!
--------------------
www.WaltDisneyBoards.com
Quote   |  



#5   04-13-2008, 06:22 PM
Send a message via AIM to James Send a message via MSN to James James is a jewel in the rough Join Date: Mar 2007 Posts: 306 Location: Kent, WA
Re: Help w/Database Error...


Then I would delete the past couple of mods to you forum and reinstall them 1 at a time to see which one is causing the error, then go from there. But you need to figure out what was is causing it.
--------------------
My Updated Blog
Quote   |  



#6   04-13-2008, 06:42 PM
Michael Biddle is just really niceMichael Biddle is just really nice Join Date: Aug 2006 Posts: 1,561 Location: Anaheim, CA
Re: Help w/Database Error...


Run this query

ALTER TABLE user ADD threads int(10)
--------------------
Do NOT PM me for Support!
Michael Biddle / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Quote   |  



#7   04-15-2008, 06:05 PM
ArnyVee has a spectacular aura about Join Date: Apr 2008 Posts: 524
Re: Help w/Database Error...


James, I did that with the last couple and it didn't help. So, I guess that it's one of those things that slipped through and I didn't realize I was having issues at the time.

Quote:
Originally Posted by Michael Biddle View Post
Run this query

ALTER TABLE user ADD threads int(10)
How do you 'run a query'? Remember, I'm a newb, so I need lots of help with this kinda thing.
--------------------
www.WaltDisneyBoards.com
Quote   |  



#8   04-15-2008, 07:14 PM
Michael Biddle is just really niceMichael Biddle is just really nice Join Date: Aug 2006 Posts: 1,561 Location: Anaheim, CA
Re: Help w/Database Error...


First delete the cookies... (Brandon and Lizard King are the only ones that will get that one)

If you have your userid setup in the config.php file to run queries, then you can run it through the admincp. It would be under the maintenance tab I believe.
--------------------
Do NOT PM me for Support!
Michael Biddle / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Quote   |  



#9   04-15-2008, 08:38 PM
ArnyVee has a spectacular aura about Join Date: Apr 2008 Posts: 524
Re: Help w/Database Error...


Got it!

It was, in fact, another mod. Finally retraced my steps and found the issue.

Thanks for the help folks!
--------------------
www.WaltDisneyBoards.com
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Thread Tools
Display Modes

 
Posting Rules
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
vbulletin database error? hitmann vBulletin Questions 9 03-21-2008 06:37 PM
Update Database Error OS Master vBulletin Questions 5 09-18-2007 04:50 AM
Database error in vBulletin 3.6.7: Help. Corey vBulletin Questions 1 08-12-2007 01:32 PM
Database Error dprundle vBulletin Questions 1 06-07-2007 05:57 PM


All times are GMT -6. The time now is 12:43 PM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions, vBulletin Skins, Styles, Templates
vBulletin Hacks / Modifications, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory