为discuzx3.5升级做准备discuzx3.4 gbk全站转码utf8遇到个人资料空白积分设置丢失等
为discuzx3.5升级做准备,discuzx3.4论坛gbk全站转码utf8遇到个人资料页空白、积分设置丢失、论坛,版块标题,SEO关键词,描述丢失、手机论坛设置丢失、实名认证字段丢失(部分有设置的站长)等处理方案:discuz x3.5即将正式发布,越来越多站长将Discuz论坛由GBK转换成utf8编码。但是转换后个人资料页空白,只剩下一个用户名。具体表现为:前台【设置】-【个人资料】页面空白,后台-【用户】-【用户栏目】-【栏目分组】内的分组项目丢失,后台无法直接添加。解决方案,修复教程。 DZX3.4论坛,由GBK转UTF8编码后,会员去设置个人资料,就只显示用户名了,其他一片空白。根本无法修改自己的个人资料。
修复教程:
需要进入PHPMYADMIN,手动修改对应的MYSQL数据库,找到pre_common_setting表里面的 profilegroup字段,添加以下svalue 值。GBK转UTF8后 profilegroup字段的 svalue值:a:5:{s:4:"base";a:4:{s:9:"available";i:1;s:12:"displayorder";i:0;s:5:"title";s:12:"基本资料";s:5:"field";a:17:{s:8:"realname";s:8:"realname";s:6:"gender";s:6:"gender";s:8:"birthday";s:8:"birthday";s:9:"birthcity";s:9:"birthcity";s:10:"residecity";s:10:"residecity";s:10:"residedist";s:10:"residedist";s:15:"affectivestatus";s:15:"affectivestatus";s:10:"lookingfor";s:10:"lookingfor";s:9:"bloodtype";s:9:"bloodtype";s:6:"field1";s:6:"field1";s:6:"field2";s:6:"field2";s:6:"field3";s:6:"field3";s:6:"field4";s:6:"field4";s:6:"field5";s:6:"field5";s:6:"field6";s:6:"field6";s:6:"field7";s:6:"field7";s:6:"field8";s:6:"field8";}}s:7:"contact";a:4:{s:5:"title";s:12:"联系方式";s:9:"available";s:1:"1";s:12:"displayorder";s:1:"1";s:5:"field";a:7:{s:9:"telephone";s:9:"telephone";s:6:"mobile";s:6:"mobile";s:3:"icq";s:3:"icq";s:2:"qq";s:2:"qq";s:5:"yahoo";s:5:"yahoo";s:3:"msn";s:3:"msn";s:6:"taobao";s:6:"taobao";}}s:3:"edu";a:4:{s:9:"available";i:1;s:12:"displayorder";i:2;s:5:"title";s:12:"教育情况";s:5:"field";a:2:{s:14:"graduateschool";s:14:"graduateschool";s:9:"education";s:9:"education";}}s:4:"work";a:4:{s:9:"available";i:1;s:12:"displayorder";i:3;s:5:"title";s:12:"工作情况";s:5:"field";a:4:{s:10:"occupation";s:10:"occupation";s:7:"company";s:7:"company";s:8:"position";s:8:"position";s:7:"revenue";s:7:"revenue";}}s:4:"info";a:4:{s:5:"title";s:12:"个人信息";s:9:"available";s:1:"1";s:12:"displayorder";s:1:"4";s:5:"field";a:10:{s:10:"idcardtype";s:10:"idcardtype";s:6:"idcard";s:6:"idcard";s:7:"address";s:7:"address";s:7:"zipcode";s:7:"zipcode";s:4:"site";s:4:"site";s:3:"bio";s:3:"bio";s:8:"interest";s:8:"interest";s:7:"sightml";s:7:"sightml";s:12:"customstatus";s:12:"customstatus";s:10:"timeoffset";s:10:"timeoffset";}}}');原因在于,GBK四个汉字占8个字符,UTF8四个汉字占12个字符,s:8:"基本资料",在UTF8里面就是 要写成 s:12:
DZ由GBK转UTF8后出现的其他问题DZX3.4论坛,由GBK转UTF8编码后,可能会出现一些问题:论坛积分设置方案丢失论坛,版块标题,SEO关键词,描述丢失手机论坛设置丢失实名认证字段丢失(部分有设置的站长)
其他萌新站长需要将DZ论坛由GBK转UTF8的, 或者论坛搬家,收费帮忙处理。数据库不要太大,太大站长懒得上传下载。不接。操作搬家 转换 升级之类一定记得先备份。
页:
[1]