vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Sql error when uploading a plug (https://vborg.vbsupport.ru/showthread.php?t=119719)

VBUsers 06-27-2006 08:46 PM

Sql error when uploading a plug
 
1 Attachment(s)
ok my issue is im getting this error when i upload a a plug in that is suppose to help me show my forum stats globaly. can any one help

heres the error:
Code:

Database error in vBulletin 3.6.0 Beta 3:

Invalid SQL:
SELECT userid, username FROM adminrev_user WHERE adminrev_userid=3;

MySQL Error  : Unknown column 'adminrev_userid' in 'where clause'
Error Number : 1054
Date        : Tuesday, June 27th 2006 @ 05:43:25 PM
Script      : http://www.adminrevo.com/
Referrer    :
IP Address  : 0000000000
Username    : Steve
Classname    : vB_Database


and im attaching the plug in as well thank you

K1ng0e 06-27-2006 09:35 PM

Have you got a table prefix ?

VBUsers 06-27-2006 09:49 PM

Quote:

Originally Posted by K1ng0e
Have you got a table prefix ?


yes i do but it seems to be looking for another table or something.

Paul M 06-27-2006 09:52 PM

There is an error in that line of the plugin that the Author should fix - they have missed the table name after the table prefix in the 'where' clause (actually it should be rewritten to avoid table prefix code in where clauses, but that's another story).

Btw, are you aware that this code adds 6 new select queries to every page on your forum ?

VBUsers 06-27-2006 10:03 PM

Quote:

Originally Posted by Paul M
There is an error in that line of the plugin that the Author should fix - they have missed the table name after the table prefix in the 'where' clause (actually it should be rewritten to avoid table prefix code in where clauses, but that's another story).

Btw, are you aware that this code adds 6 new select queries to every page on your forum ?


thank you for the information. no i wasn't aware of the extra queries. do you happen to have an alternate solution for me? if you go to the link in my sig you will see on the top of the forum is where the forum stats will go. i tried adding them in the regular way but failed. if you can point me in the direction of a hack or template mod that will do what I'm looking for i would be very grateful.


All times are GMT. The time now is 07:20 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.01151 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
  • (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