Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 23 Apr 2002, 23:07
pattox2k1's Avatar
pattox2k1 pattox2k1 is offline
 
Join Date: Jan 2002
Mysql error!

hi....my board is giving me this

Database error in vBulletin 2.2.5:

Invalid SQL:
SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,icon.title as icontitle,icon.iconpath,
attachment.attachmentid,attachment.filename,attachment.visible AS attachmentvisible,attachment.counter
,avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline
FROM post
LEFT JOIN icon ON icon.iconid=post.iconid
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
WHERE post.postid IN (0,580)
ORDER BY dateline

mysql error: Unknown column 'attachment.counter' in 'field list'

mysql error number: 1054

Date: Wednesday 24th of April 2002 12:02:18 AM
Script: http://www.thugnature.net/forums/for...s=&threadid=77
Referer: http://www.thugnature.net/forums/online.php?

when you go to a thread

then -

when you try to acces an attachment there was a dif 1

can you please help!
thanks!
Reply With Quote
  #2  
Old 24 Apr 2002, 04:45
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
For some reason the 'counter' field is missing from your attachment table. Is this happening with all attchments or just this one?
__________________
Steve Machol, vBulletin Moderator

Please do not email or PM me for vBulletin support. I will try to answer all questions on the vB Forums. Thank you for respecting this request!
Reply With Quote
  #3  
Old 24 Apr 2002, 04:48
pattox2k1's Avatar
pattox2k1 pattox2k1 is offline
 
Join Date: Jan 2002
oh.....i previously had a problem with the attachments....so i told my fellow admin and he changed it....he may have removed it,

just to be sure....what should i add to attachments.php in phpmyadmin

if you could contact me on AIM = tsnoopcom
MSN = tupacsnop@hotmail.com

thanks!
Reply With Quote
  #4  
Old 24 Apr 2002, 04:58
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Sorry, I'm not good enogh with mySQL to know how to put a missing field back in. Hopefully someone else will have an idea.
__________________
Steve Machol, vBulletin Moderator

Please do not email or PM me for vBulletin support. I will try to answer all questions on the vB Forums. Thank you for respecting this request!
Reply With Quote
  #5  
Old 24 Apr 2002, 04:59
pattox2k1's Avatar
pattox2k1 pattox2k1 is offline
 
Join Date: Jan 2002
ok then....thanks...

i hope some1 can help!
Reply With Quote
  #6  
Old 24 Apr 2002, 05:19
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
That field should be:

counter smallint(5) unsigned NOT NULL default '0'

I can't imagine why the other admin would have dropped that field.
__________________
FWC
F5 Hosting
White Sox Interactive Forums
Reply With Quote
  #7  
Old 24 Apr 2002, 09:52
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
Run this query to add the field:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Teach your admins not to drop any fields, lol.
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

chen@avinadav.com
Reply With Quote
  #8  
Old 24 Apr 2002, 11:46
pattox2k1's Avatar
pattox2k1 pattox2k1 is offline
 
Join Date: Jan 2002
thanks fellas!

but i do have 1 other - its when u go to open an attachment

Database error in vBulletin 2.2.5:

Invalid SQL: SELECT downloads FROM user WHERE userid = 2
mysql error: Unknown column 'downloads' in 'field list'

mysql error number: 1054

Date: Wednesday 24th of April 2002 12:42:27 PM
Script: http://www.thugnature.net/forums/for...php?postid=568
Referer: http://www.thugnature.net/forums/sho...hp?threadid=74

hope yall can help again!
Reply With Quote
  #9  
Old 24 Apr 2002, 12:19
pattox2k1's Avatar
pattox2k1 pattox2k1 is offline
 
Join Date: Jan 2002
BTW chen....yall know im new....
was wondering why your who downloaded this hack isnt working here - http://www.thugnature.net/forums/sho...hp?threadid=74

thanks!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 09:57.

Layout Options | Width: Wide Color: