vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Someone tell me the cause of this error. (https://vborg.vbsupport.ru/showthread.php?t=142500)

haytham 03-19-2007 12:48 PM

Someone tell me the cause of this error.
 
Hi
I know it must be a mod I installed but I uninstalled most mods. The ones I have, I really need. Please look at the eroor and try to tell me what maybe causing it. Thanks
========================
Database error in vBulletin 3.6.5:

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, thread.lastposter, thread.lastpostid, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach,
hiddencount, deletedcount




,post.pagetext
FROM thread AS thread







WHERE thread.threadid IN (0)
ORDER BY sticky DESC, lastpost DESC;

MySQL Error : Unknown table 'post' in field list
Error Number : 1109
Date : Monday, March 19th 2007 @ 05:05:54 AM
Script : http://####.com/vb/forumdisplay.php?f=15
Referrer : http://www.google.ae/search?hl=ar&q=...85%D8%A7&meta=
IP Address : 203.22.2.24
Username : unregistered
Classname : vb_database

Marco van Herwaarden 03-19-2007 01:02 PM

De-activate them one-by-one until the error goes away.

Lynne 03-22-2007 04:00 PM

Quote:

Originally Posted by haytham (Post 1207286)
,post.pagetext
FROM thread AS thread

If you are selecting post.pagetext, you need to add post into the FROM part of your query.

haytham 03-22-2007 06:47 PM

It appears that the cause was that I chose to prvent visitors from browsing the forum so if they clicked on any forum they'd get the error. Also when searching google and finding a page on my site. they weren't able to see it so they got those error messages.
Now I opened my forum to browsing of visitors and I am not getting any more errors.

Just wanted to share how it was solved in case someone gets the same error.

Haytham

Thanks all

Marco van Herwaarden 03-22-2007 08:10 PM

The error is caused by a modification. You will not get that error with default vBulletin on a closed board.


All times are GMT. The time now is 02:40 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.01032 seconds
  • Memory Usage 1,719KB
  • 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_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