vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Databse error. Please advise (https://vborg.vbsupport.ru/showthread.php?t=107755)

icare 02-12-2006 01:23 AM

Databse error. Please advise
 
Database error in vBulletin 3.5.3:

Invalid SQL:

SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,

thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open,
replycount, postusername, postuserid, thread.iconid AS threadiconid,
thread.lastpost, lastposter, thread.dateline, IF(views<=replycount, replycount+1,
views) AS views, notes, thread.visible, sticky, votetotal, thread.attach,
hiddencount


,post.pagetext
FROM thread AS thread






WHERE thread.threadid IN
(0,521,440,381,463,504,339,438,435,433,492,490,467 ,468,481,461,375,471,470,466,281,359)

ORDER BY sticky DESC, thread.lastpost DESC;

MySQL Error : Unknown table 'post' in field list
Error Number : 1109
Date : Saturday, February 11th 2006 @ 10:06:05 PM
Script : http://www.example.com/forumdisplay.php?f=2
Referrer : http://www.example.com/
IP Address : xxx.xxx.xxxx.xx
Username : Unregistered
Classname : vb_database

Please help me, I got about 1000 emails today in my admin email as users are getting this error. Anybody please help

peterska2 02-12-2006 01:30 AM

Me thinks this is coz of the gap in the query. It's not advisable so get rid of all the sapce/text/junk between the two bits of the query and try again.

icare 02-12-2006 01:54 AM

Quote:

Originally Posted by peterska2
Me thinks this is coz of the gap in the query. It's not advisable so get rid of all the sapce/text/junk between the two bits of the query and try again.

Please explain i am newbie. ho to do that?

peterska2 02-12-2006 01:58 AM

Something that you have installed has required a file edit in the middle of a SQL query. You need to make sure that there is no commented text in the query otherwise it causes errors

icare 02-12-2006 02:36 AM

Quote:

Originally Posted by peterska2
Something that you have installed has required a file edit in the middle of a SQL query. You need to make sure that there is no commented text in the query otherwise it causes errors


I installed bunch of crap today. now i am not sure which one did caused the problem.. now uninstalling one by on... hope it will fix it..


All times are GMT. The time now is 02:48 AM.

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.01640 seconds
  • Memory Usage 1,718KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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