vb.org Archive

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

steven1091 02-26-2008 01:38 PM

VBSupport Plugin error :(
 
Hello, i get this error:

"Database error in vBulletin 3.6.8:

Invalid SQL:

SELECT
post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted,
user.*, userfield.*, usertextfield.*,

avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight,
level,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid

FROM vbs_ticket_post AS post
LEFT JOIN user AS user ON(user.userid = post.userid)
LEFT JOIN userfield AS userfield ON(userfield.userid = user.userid)
LEFT JOIN usertextfield AS usertextfield ON(usertextfield.userid = user.userid)

LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid) LEFT JOIN reputationlevel AS reputationlevel ON(user.reputationlevelid = reputationlevel.reputationlevelid)
WHERE post.postid IN (0,13)

ORDER BY post.dateline;

MySQL Error : Unknown column 'level' in 'field list'
Error Number : 1054
Date : Tuesday, February 26th 2008 @ 12:20:29 AM
Script : http://habbovalley.com/vbsupport.php...wthread&tid=11
Referrer : http://habbovalley.com/vbsupport.php?do=newthread
IP Address : 82.20.36.29
Username : Blured"

This is on the VB support system when sending or responding to a ticket.

Can you help??

Much appreciated!

Lynne 02-26-2008 02:19 PM

If you have problems with a modification, the best way to get help is to post in the Modification thread.

steven1091 02-26-2008 02:25 PM

Tried - no response - was advised to post here

Lynne 02-26-2008 02:56 PM

Well, the error is caused by a plugin you are using. The only way to fix it is to disable the plugin or fix the plugin. We don't know what plugin it is, nor do we know the code (obviously), so it is very hard to tell you what is wrong. Well, what is wrong is that they are calling for a column called "field" in the table "vbs_ticket_post" and it isn't there. So, you need to figure out why it isn't there and then add it or get rid of the call to that field if it is no longer needed (because you deleted a plugin).

shovel 02-26-2008 03:29 PM

In file showthread.php find the following

Code:

avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight
Right after that find there should be your problem. Remove "level," and hopefully you'll be able to troubleshoot the rest. By chance, did you modify your database for this mod?

Opserty 02-26-2008 03:34 PM

shovel: It's most likely the modification will be using Plugins to edit the queries (most common queries now have $hook_query_* vars) so you probably won't find the solution in the PHP files.

steven1091 02-26-2008 04:37 PM

ok so to sum it up what shalll i do? Btw to see what plugin i mean you can see below "imilar threads"

Thanks

p.s no i did not modify database - automatic install.

Lynne 02-26-2008 04:46 PM

Well, in his thread here, it looks like he has big huge letters that say
vbSupport v2.0.0 BETA 2 by CMX (http://www.cmgsccc.com)


Have you posted over there?

steven1091 02-26-2008 07:01 PM

thats a complete diff website so no... anyway does anyone know the problem or not :S or any suggestions on what to do

shovel 02-26-2008 07:08 PM

Quote:

Originally Posted by Opserty (Post 1451502)
shovel: It's most likely the modification will be using Plugins to edit the queries (most common queries now have $hook_query_* vars) so you probably won't find the solution in the PHP files.

The person stated that even after the plugins were disabled the query still failed, leading me to believe that the file was modified. Did I miss something?

Anywho, if you want to be so technical then how about you look in your plugin manager absolutely make sure that ALL plugins are deactivated. Then once again return to showthread.php and try to modify, etc. etc. on any given thread.

If that doesn't work, please reply again with your result.


All times are GMT. The time now is 09:12 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.01079 seconds
  • Memory Usage 1,739KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete