Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-27-2007, 05:09 AM
solong2 solong2 is offline
 
Join Date: Aug 2004
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default The database error and Solutions

here what you need

The problem
PHP Code:
mysql errorUnknown column 'lastthread' in 'field list' 
Solutions

PHP Code:
ALTER TABLE `forumADD `lastthreadCHAR250 NOT NULL 
ALTER TABLE `forumADD `lastthreadidINT10 NOT NULL 
==========

The problem


PHP Code:
mysql errorUnknown column 'u.downloads' in 'where clause' 

Solutions



PHP Code:
ALTER TABLE `userADD `downloadstext NOT NULL
==========

The problem


PHP Code:
mysql errorUnknown column 'avatardata' in 'field list' 

Solutions



PHP Code:
ALTER TABLE `userADD `avatardataINT(10UNSIGNED DEFAULT '0' NOT NULL
==========

The problem

PHP Code:
mysql errorUnknown column 'maxnewthreadtime' in 'field list' 

Solutions


PHP Code:
ALTER TABLE `usergroupADD `maxnewthreadtimeINT(10UNSIGNED DEFAULT '0' NOT NULL

==========

The problem


PHP Code:
MySQL Error Unknown column 'ipaddress' in 'field list' 

Solutions


PHP Code:
ALTER TABLE `moderatorlogADD `ipaddressINT(10UNSIGNED DEFAULT '0' NOT NULL


==========


The problem


PHP Code:
MySQL Error Unknown column 'showbirthday' in 'where clause' 

Solutions




PHP Code:
ALTER TABLE `userADD `showbirthdayMEDIUMBLOB NOT NULL
  
or
  
ALTER TABLE `userADD `showbirthdayINT(10UNSIGNED DEFAULT '0' NOT NULL


==========


The problem


PHP Code:
MySQL Error Unknown column 'receivebulletin' in 'field list' 

Solutions


PHP Code:
ALTER TABLE `userADD `receivebulletinINT(10UNSIGNED DEFAULT '0' NOT NULL

or

ALTER TABLE `userADD `receivebulletin_typeINT(10UNSIGNED DEFAULT '0' NOT NULL


==========


The problem


PHP Code:
MySQL Error Unknown column 'canview' in 'on clause' 


Solutions


PHP Code:
ALTER TABLE `subscribethreadADD `canviewsmallint(5unsigned NOT NULL default '1'


==========

The problem


PHP Code:
MySQL Error Unknown column 'maxnewthread' in 'field list' 


Solutions

PHP Code:
ALTER TABLE `usergroupADD `maxnewthreadINT(10UNSIGNED DEFAULT '0' NOT NULL


==========

The problem



PHP Code:
mysql errorUnknown column 'thread.threadid' in 'on clause' 

Solutions



PHP Code:
ALTER TABLE `threadADD `threadidINT(10UNSIGNED DEFAULT '0' NOT NULL


==========

The problem


PHP Code:
MySQL Error Unknown column 'skype' in 'field list' 


Solutions




PHP Code:
ALTER TABLE `userADD `skypeMEDIUMBLOB NOT NULL


==========

The problem

PHP Code:
MySQL Error Unknown column 'xxxx_vb.setting.grouptitle' in 'on clause' 

Solutions



PHP Code:
ALTER TABLE `settingADD `settinggroupidSMALLINTUNSIGNED DEFAULT '0' NOT NULL


==========

The problem



PHP Code:
MySQL Error  Unknown column 'titleonly' in 'field list' 


Solutions




PHP Code:
ALTER TABLE search ADD titleonly SMALLINT UNSIGNED NOT NULL DEFAULT '0' 



==========

The problem



PHP Code:
mysql errorUnknown column 'customavatar.avatardata' in 'field list' 


Solutions



PHP Code:
ALTER TABLE `customavatarADD `avatardataMEDIUMBLOB NOT NULL

=========

The problem



PHP Code:
MySQL Error Unknown column 'completed' in 'where clause' 


Solutions



PHP Code:
ALTER TABLE search ADD `completedsmallint(5unsigned NOT NULL default '1'

==========

The problem



PHP Code:
MySQL Error Unknown column 'phrasegroup_global' in 'field list' 


Solutions




PHP Code:
ALTER TABLE `languageADD `phrasegroup_globalmediumtext 


==========

The problem



PHP Code:
MySQL Error Can't find FULLTEXT index matching the column list 


Solutions




PHP Code:
ALTER TABLE thread ADD FULLTEXT(title); 


==========

The problem




PHP Code:
MySQL Error Unknown column 'showprivate' in 'field list' 


Solutions




PHP Code:
ALTER TABLE forum ADD showprivate TINYINT UNSIGNED NOT NULL DEFAULT '0'


==========

The problem



PHP Code:
MySQL Error Unknown column 'hhroptions' in 'field list' 

Solutions



PHP Code:
ALTER TABLE `usergroupADD `hhroptionsVARCHAR255 ) DEFAULT '0' NOT NULL 

==========

The problem



PHP Code:
MySQL Error Unknown column 'datatype' in 'field list' 


Solutions



PHP Code:
Alter table `settingADD `datatypeenum('free','number','boolean'NOT NULL default 'free'

==========


The problem



PHP Code:
MySQL Error Unknown column 'defaultsortfield' in 'field list' 


Solutions


PHP Code:
ALTER TABLE forum ADD defaultsortfield VARCHAR(50NOT NULL DEFAULT 'lastpost'

  
ALTER TABLE forum ADD defaultsortorder ENUM('asc''desc'NOT NULL DEFAULT 'desc'
==========



The problem



PHP Code:
MySQL Error Unknown column 'warnings' in 'field list' 


Solutions




PHP Code:
ALTER TABLE user ADD COLUMN `warningsint(10unsigned NOT NULL default '0'


=========

The problem



PHP Code:
MySQL Error Unknown column 'defaultsortorder' in 'field list' 



Solutions



PHP Code:
Alter table `forum`  DROP `defaultsortorder`;    
Alter table `forumDROP `defaultsortorder`;    
 
Alter table `forumADD `defaultsortfieldvarchar(50NOT NULL default 'lastpost';    
   
Alter table `forumADD `defaultsortorderenum('asc','desc'NOT NULL default 'desc';    
Alter table `forumADD `showprivatetinyint(3unsigned NOT NULL default '0'

==========

The problem



PHP Code:
mysql errorUnknown column 'lastvote' in 'field list' 


Solutions




PHP Code:
ALTER TABLE `pollADD `lastvoteINT(15) DEFAULT '0' NOT NULL

==========

The problem



PHP Code:
MySQL Error Unknown column 'executionorder' in 'field list' 



Solutions




PHP Code:
alter table  `pluginadd `executionordersmallint(5unsigned NOT NULL default '5'

==========




The problem



PHP Code:
MySQL Error  Unknown column 'styleid' in 'where clause' 


Solutions



PHP Code:
ALTER TABLE `styleADD `styleidINT(10UNSIGNED DEFAULT '0' NOT NULL

==========

The problem


PHP Code:
MySQL Error  Unknown column 'signaturepermissions' in 'field list' 


Solutions



PHP Code:
alter table usergroup add `signaturepermissionsint(10unsigned NOT NULL default '0'

==========

The problem



PHP Code:
MySQL Error Unknown column 'defaultsortfield' in 'field list' 


Solutions




PHP Code:
Alter table `forum`  DROP `defaultsortfield`;    
Alter table `forumDROP `defaultsortorder`;    
Alter table `forumADD `defaultsortfieldvarchar(50NOT NULL default 'lastpost';    
Alter table `forumADD `defaultsortorderenum('asc','desc'NOT NULL default 'desc';    
Alter table `forumADD `showprivatetinyint(3unsigned NOT NULL default '0'

==========

The problem



PHP Code:
MySQL Error  Unknown column 'field1' in 'field list' 



Solutions






PHP Code:
ALTER TABLE userfield add `field1mediumtext ;  
ALTER TABLE userfield add `field2mediumtext ;  
ALTER TABLE userfield add `field3mediumtext ;  
ALTER TABLE userfield add `field4mediumtext ;  
ALTER TABLE userfield add `field5mediumtext ;  
ALTER TABLE userfield add `field6mediumtext ;  
ALTER TABLE userfield add `field7mediumtext ;  
ALTER TABLE userfield add `field8mediumtext ;  
ALTER TABLE userfield add `field9mediumtext ;  
ALTER TABLE userfield add `field10mediumtext ;  
ALTER TABLE userfield add `field11mediumtext ;  
ALTER TABLE userfield add `field12mediumtext ;  
ALTER TABLE userfield add `field13mediumtext ;  
ALTER TABLE userfield add `field14mediumtext 


==========





The problem

رمز PHP:
PHP Code:
MySQL Error  Unknown column 'whoviewed' in 'field list' 


Solutions




PHP Code:
ALTER TABLE `threadADD `whoviewedINT(10UNSIGNED DEFAULT '0' NOT NULL

==========



The problem




PHP Code:
MySQL Error Unknown column 'ipaddress' in 'field list' 


Solutions



PHP Code:
ALTER TABLE `moderatorlogADD `ipaddressMEDIUMBLOB NOT NULL
==========

The problem



PHP Code:
MySQL Error Unknown column 'user.htmail' in 'field list' 


Solutions



PHP Code:
ALTER TABLE `userCHANGE `htmail` `msnVARCHAR100 CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL

==========

The problem



PHP Code:
MySQL Error  Unknown column 'userfield.field16' in 'field list' 


Solutions



PHP Code:
ALTER TABLE userfield ADD `field16mediumtext
==========



The problem



PHP Code:
MySQL Error  Unknown column 'adminoptions' in 'field list' 


Solutions




PHP Code:
ALTER TABEL user ADD `adminoptionsint(10unsigned NOT NULL default '0'

==========

The problem



PHP Code:
MySQL Error  Unknown column 'infractiongroupid' in 'field list' 


Solutions




PHP Code:
ALTER TABEL user ADD `infractiongroupidsmallint(5unsigned NOT NULL default '0'

==========

The problem

PHP Code:
mysql errorUnknown column 'title' in 'where clause' 

Solutions




PHP Code:
Alter table `profilefieldadd `titlevarchar(50NOT NULL default ''

==========

The problem



PHP Code:
MySQL Error Unknown column 'customprofilepic.width' in 'field list' 


Solutions




PHP Code:
ALTER TABLE customprofilepic ADD `widthsmallint(5unsigned NOT NULL default '0'


==========

The problem



PHP Code:
MySQL Error Unknown column 'post_parsed.styleid_code' in 'on clause' 


Solutions


PHP Code:
ALTER  TABLE  `post_parsedADD `styleid_codeint(11NOT NULL default '-1'
==========

The problem



PHP Code:
MySQL Error Unknown column 'maxnewthread' in 'field list' 


Solutions


PHP Code:
ALTER TABLE `usergroupADD `maxnewthreadINT11 ) DEFAULT '0' NOT NULL ;  
ALTER TABLE `usergroupADD `maxnewtimeINT11 ) DEFAULT '0' NOT NULL ;  
ALTER TABLE `usergroupADD `maxnewpostINT11 ) DEFAULT '0' NOT NULL ;  
ALTER TABLE `usergroupADD `maxnewposttimeINT11 ) DEFAULT '0' NOT NULL 

==========

The problem



PHP Code:
MySQL Error  Unknown column 'lastpostid' in 'field list' 


Solutions




PHP Code:
ALTER TABLE user ADD `lastpostidint(10unsigned NOT NULL default '0'
==========

The problem



PHP Code:
MySQL Error Unknown column 'infractiongroupid' in 'field list' 

Solutions




PHP Code:
ALTER TABLE `infractiongroupADD `infractiongroupidint(10unsigned NOT NULL auto_increment;
  
  
or
  
  
ALTER TABLE user ADD `infractiongroupidsmallint(5unsigned NOT NULL default '0' 


==========

The problem



PHP Code:
MySQL Error Unknown column 'grouptitle' in 'from 


Solutions



PHP Code:
ALTER TABLE `settinggroupADD `grouptitlevarchar(50NOT NULL


==========
Reply With Quote
  #2  
Old 11-27-2007, 06:12 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure what triggered you to create this thread or why you have ran into these database errors, but giving this as a standard solution for these errors is not the best thing to do.

If someone runs into these errors, he would first need to determine the cause of these errors, not just fight the symptoms by adding a lot of columns.
Reply With Quote
  #3  
Old 11-27-2007, 02:09 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think it would be much better to find the source of the errors and tackle the problem that way rather than through a bunch of empty columns into various tables.
Reply With Quote
  #4  
Old 11-27-2007, 02:38 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was going to say something but then I realised the two people above me said exactly what I was thinking.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:20 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.04209 seconds
  • Memory Usage 2,381KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (84)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete