vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   The database error and Solutions (https://vborg.vbsupport.ru/showthread.php?t=163698)

solong2 11-27-2007 05:09 AM

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



==========

Marco van Herwaarden 11-27-2007 06:12 AM

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.

Lynne 11-27-2007 02:09 PM

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.

Opserty 11-27-2007 02:38 PM

I was going to say something but then I realised the two people above me said exactly what I was thinking. :p


All times are GMT. The time now is 06:55 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.01565 seconds
  • Memory Usage 1,926KB
  • 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
  • (84)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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