vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   SQL error ! database error in vbulletin 3.5.4 (https://vborg.vbsupport.ru/showthread.php?t=111091)

brianvu 03-22-2006 02:30 PM

SQL error ! database error in vbulletin 3.5.4
 

hi all people

my following problems is last month i used the vbb 3.5.3 version . its good , but last weekend i have this vbb database error from the vbulletin mail. now i update the vbb 3.5.3 to 3.5.4 the problem is not fix . please anybody know how can i fix this problem , help me to fix this problem . thanxs for your help and support .


Code:

Database error in vBulletin 3.5.4:

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)
                ORDER BY sticky DESC, thread.lastpost DESC;

MySQL Error  : Unknown table 'post' in field list
Error Number : 1109
Date        : Wednesday, March 22nd 2006 @ 03:15:38 PM
Script      : http://www.thuytinh.org/forums/forumdisplay.php?f=32
Referrer    :
IP Address  : 64.229.16.21
Username    : Unregistered
Classname    : vb_database


DrewM 03-22-2006 08:41 PM

have u edited any files any plugins?

Xenon 03-22-2006 09:10 PM

the post table is not joined....

brianvu 03-23-2006 01:11 PM

Quote:

Originally Posted by Larrysw
have u edited any files any plugins?

i think i have not edited any files or any plugins

Paul M 03-23-2006 04:11 PM

I think maybe you have a plugin linked to the forumdisplay_query_threadid hook that is adding the ",post.pagetext" to the query.

brianvu 03-23-2006 05:19 PM

Quote:

Originally Posted by Paul M
I think maybe you have a plugin linked to the forumdisplay_query_threadid hook that is adding the ",post.pagetext" to the query.


can i fix this error in the admin cp paul M
php code forumdisplay_query:

Code:

$hook_query_fields = ',post.pagetext';
so how can i fix this code . please post a fix code here for me , thanxs people !

Paul M 03-23-2006 05:46 PM

I had a look with the login details you provided.

This was being caused by a product you have installed called "Hide Hack : version 1.00B2". I have disabled that product which will stop the errors. You should contact the author for a fix.

brianvu 03-23-2006 06:11 PM

Quote:

Originally Posted by Paul M
I had a look with the login details you provided.

This was being caused by a product you have installed called "Hide Hack : version 1.00B2". I have disabled that product which will stop the errors. You should contact the author for a fix.

so what can i do . can you take the new hide hack version for me paul . i see under your nick . you are the hide hack master coder . :cross-eyed:

please help me paul

Xenon 03-23-2006 07:49 PM

below:

PHP Code:

$hook_query_fields ',post.pagetext'

a
PHP Code:

$hook_query_joins 'INNER JOIN post ON (post.postid = thread.firstpostid)'

should help

brianvu 03-23-2006 07:55 PM

Quote:

Originally Posted by Xenon
below:

PHP Code:

$hook_query_fields ',post.pagetext'

a
PHP Code:

$hook_query_joins 'INNER JOIN post ON (post.postid = thread.firstpostid)'

should help

look me try xenon ! can you check my 4ru m4 me please xenon . i have send the login fo to you !


All times are GMT. The time now is 02:25 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.01062 seconds
  • Memory Usage 1,742KB
  • 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_code_printable
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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