Discuz7 2公升級失敗處理方法

2021-09-21 03:33:19 字數 1269 閱讀 3071

在使用upgrade13.php檔案進行公升級時,總會在最後提示乙個公升級失敗,其原因是因為公升級採用的**如下:

#主題圖章;

delete from `cdb_smilies` where `typeid` = 0 and `type` = 'stamp';

insert into `cdb_smilies` (`typeid`, `displayorder`, `type`, `code`, `url`) values

(0, 0, 'stamp', '精華', '001.gif'),

(0, 1, 'stamp', '熱帖', '002.gif'),

(0, 2, 'stamp', '美圖', '003.gif'),

(0, 3, 'stamp', '優秀', '004.gif'),

(0, 4, 'stamp', '置頂', '005.gif'),

(0, 5, 'stamp', '推薦', '006.gif'),

(0, 6, 'stamp', '原創', '007.gif'),

(0, 7, 'stamp', '版主推薦', '008.gif'),

(0, 8, 'stamp', '爆料', '009.gif');

需要將cdb_smilies表修改為自己的表,比如centosbbs.com_smiles,也即其完整**為:

delete from `centosbbs.com_smilies` where `typeid` = 0 and `type` = 'stamp';

insert into `centosbbs.com_smilies` (`typeid`, `displayorder`, `type`, `code`, `url`) values

(0, 0, 'stamp', '精華', '001.gif'),

(0, 1, 'stamp', '熱帖', '002.gif'),

(0, 2, 'stamp', '美圖', '003.gif'),

(0, 3, 'stamp', '優秀', '004.gif'),

(0, 4, 'stamp', '置頂', '005.gif'),

(0, 5, 'stamp', '推薦', '006.gif'),

(0, 6, 'stamp', '原創', '007.gif'),

(0, 7, 'stamp', '版主推薦', '008.gif'),

(0, 8, 'stamp', '爆料', '009.gif');

然後重新整理即可公升級成功!

更多好文章安天365論壇

zabbix自帶php5 4公升級至7 2公升級步驟

公升級前備份 etc php.ini 1.解除安裝原來低版本的php rpm qa grep php xargs i rpm e nodeps2.更新yum源 rpm uvh rpm uvh 生成一些repo檔案在 etc yum.repos.d 目錄下 ls etc yum.repos.d epe...

PHP編譯7 2公升級7 3

cd usr local src wgettar zxvf libzip 1.3.2.tar.gzcd libzip 1.3.2 configure make make installmv usr local php usr local php7.2.18cd usr local src wgett...

CentOS7 2公升級核心

yum y install gcc gcc c ncurses ncurses devel cmake elfutils libelf devel openssl devel或者可以安裝開發工具包 yum groupinstall development tools cd usr src wget ...