1 頁 (共 1 頁)

[問題] 裝了"性別MOD 1.2.5"後出現error??

發表於 : 2003-11-27 21:33
dhclee
裝了Gender Mod 1.2.5後出現以下error : -
http://phpbb-tw.net/phpbb/viewtopic.php ... ght=gender
Could not update users table

DEBUG MODE

SQL Error : 1054 Unknown column 'user_gender' in 'field list'

UPDATE phpbb_users SET user_email = 'nhkg@go.com', user_icq = '', user_website = '', user_occ = '', user_from = '', user_interests = '', user_sig = '', user_sig_bbcode_uid = '', user_viewemail = 1, user_aim = '', user_yim = '', user_msnm = '', user_attachsig = 0, user_allowsmile = 1, user_allowhtml = 0, user_allowbbcode = 1, user_allow_viewonline = 1, user_notify = 0, user_notify_pm = 1, user_popup_pm = 1, user_timezone = 8, user_dateformat = 'D d-m-y g:i a', user_lang = 'chinese_traditional_taiwan', user_style = 2, user_active = 1, user_actkey = '', user_gender = '1' WHERE user_id = 2

Line : 463
File : e:\appserv\www\phpbb2\includes\usercp_register.php
請高人指點!! :-( :-( [/quote]

發表於 : 2003-12-10 14:21
eliotsx
大大有人知道這是為什麼嗎

發表於 : 2003-12-10 15:59
aiken
你有新增性別的SQL嗎
執行一下gender_db_update.php試試看吧\r

說明裡面有
#-----[ SQL 語法 ]-------------------------------------------------
copy gender_db_update.php to gender_db_update.php
execute gender_db_update.php
delete gender_db_update.php

Re: [問題] 裝了"性別MOD 1.2.5"後出現error??

發表於 : 2004-01-27 02:01
garychia
裝了Gender Mod 1.2.5後出現以下error : -


請高人指點!! :-( :-(


Parse error: parse error in /home2/garychi/public_html/bbs/includes/usercp_register.php on line 972

代碼: 選擇全部

969=>$html_status =  ( $userdata['user_allowhtml'] && $board_config['allow_html'] ) ? $lang['HTML_is_ON'] : $lang['HTML_is_OFF'];
	
970=>$bbcode_status = ( $userdata['user_allowbbcode'] && $board_config['allow_bbcode']  ) ? $lang['BBCode_is_ON'] : $lang['BBCode_is_OFF'];

971=>$smilies_status = (// Start add - Gender MOD 

972=>switch ($gender) 

973=>{ 

974=>   case 1: $gender_male_checked="checked=\"checked\"";break; 

975=>   case 2: $gender_female_checked="checked=\"checked\"";break; 

976=>   default:$gender_no_specify_checked="checked=\"checked\""; 

977=>} 

978=>// End add - Gender MOD
 
979=>        $userdata['user_allowsmile'] && $board_config['allow_smilies']  ) ? $lang['Smilies_are_ON'] : $lang['Smilies_are_OFF'];

980=>
	
981=>if ( $error )