vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   mySQL crash : Unknown column 'completed' in 'where clause' (https://vborg.vbsupport.ru/showthread.php?t=158393)

NinjaX 09-21-2007 06:52 PM

mySQL crash : Unknown column 'completed' in 'where clause'
 
Hey can someone help me with this please. For some reason when users search my forums i get this sql error.

What does this error mean? how do i fix it?


everything else seems to work fine, just when someone uses the search, boom crash..

I get the same error from clicking the "quick links > today's posts" link as well.

Code:

Database error in vBulletin 3.6.8:

Invalid SQL:

                                        SELECT * FROM search AS search
                                        WHERE searchhash = 'b5650ec2ea57c04bfbe657d53e5d1125'
                                                AND userid = 1
                                                AND completed = 1;

MySQL Error  : Unknown column 'completed' in 'where clause'
Error Number : 1054
Date        : Friday, September 21st 2007 @ 10:40:54 PM
Script      : http://purehighspeed.com/forum/search.php?do=process
Referrer    : http://purehighspeed.com/forum/search.php
IP Address  : 24.30.84.90
Username    : xxxxxx
Classname    : vb_database


:confused:

Marco van Herwaarden 09-21-2007 06:55 PM

Run the following query:

[sql]ALTER TABLE search ADD COLUMN `completed` smallint(5) unsigned NOT NULL default '1';[/sql]

NinjaX 09-22-2007 02:10 AM

You are not authorized to execute SQL queries?

I'm logged in wih my super admin. it won't let me access it.

Dismounted 09-22-2007 04:56 AM

You will need to add your userid to the section in config.php where it says "Users With Query Running Permissions".

NinjaX 09-22-2007 04:01 PM

Man you guys rock. thank you so much for your help. Working 100% now. I also fixed the server info on the datastore cache config as well as running that query. Seemed to do the trick!

Thanks again!
: )


All times are GMT. The time now is 09:09 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.01168 seconds
  • Memory Usage 1,716KB
  • 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)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