vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Mysql error! (https://vborg.vbsupport.ru/showthread.php?t=37799)

pattox2k1 04-23-2002 10:07 PM

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,attach ment.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!

Steve Machol 04-24-2002 03:45 AM

For some reason the 'counter' field is missing from your attachment table. Is this happening with all attchments or just this one?

pattox2k1 04-24-2002 03:48 AM

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!

Steve Machol 04-24-2002 03:58 AM

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.

pattox2k1 04-24-2002 03:59 AM

ok then....thanks...

i hope some1 can help!

FWC 04-24-2002 04:19 AM

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.

Admin 04-24-2002 08:52 AM

Run this query to add the field:
Code:

ALTER TABLE attachment ADD counter smallint(5) unsigned NOT NULL default '0';
Teach your admins not to drop any fields, lol.

pattox2k1 04-24-2002 10:46 AM

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!

pattox2k1 04-24-2002 11:19 AM

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!


All times are GMT. The time now is 03:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00985 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete