合并phpwind sp1 论坛

要合并2个phpwind sp1的论坛。 从 http://www.phpwind.net/read-htm-tid-961998.html 下载到 PHPWind7.5论坛合并程序。按照操作步骤,进行到第16步时提示错误。

Error Url: http://xxx/75unit/index.php?m=build&step=16

Error Msg: Query Error: INSERT INTO pw_forums (fup,ifsub,childid,type,logo,name,descrip,title,dirname,metadescrip,keywords,vieworder,forumadmin,fupadmin,style,across,allowhtm,allowhide,allowsell,allowtype,copyctrl,allowencode,password,viewsub,allowvisit,allowread,allowpost,allowrp,allowdownload,allowupload,modelid,forumsell,pcid,f_type,f_check,t_type,cms,ifhide,showsub,ifcms) values ()

MySQL said: #1054 – Unknown column ‘title’ in ‘field list’

查看论坛的数据库,发现 forums 表没有title 字段,可能这个程序不是针对SP1版本的。打开 75unit/core.php 文件,找到第16步,把
$sql=”INSERT INTO {$pro1}forums (fup,ifsub,childid,type,logo,name,descrip,title,dirname,metadescrip,keywords,vieworder,forumadmin,fupadmin,style,across,allowhtm,allowhide,allowsell,allowtype,copyctrl,allowencode,password,viewsub,allowvisit,allowread,allowpost,allowrp,allowdownload,allowupload,modelid,forumsell,pcid,f_type,f_check,t_type,cms,ifhide,showsub,ifcms)”;
里面的 “,title” 删掉

$sql.=” values (‘$rt[fup]‘,’$rt[ifsub]‘,’$rt[childid]‘,’$rt[type]‘,’$rt[logo]‘,’$rt[name]‘,’$rt[descrip]‘,’$rt[title]‘,’$rt[dirname]‘,’$rt[metadescrip]‘,’$rt[keywords]‘,’$vieworder’,'$rt[forumadmin]‘,’$rt[fupadmin]‘,’$rt[style]‘,’$rt[across]‘,’$rt[allowhtm]‘,’$rt[allowhide]‘,’$rt[allowsell]‘,’$rt[allowtype]‘,’$rt[copyctrl]‘,’$rt[allowencode]‘,’$rt[password]‘,’$rt[viewsub]‘,’$rt[allowvisit]‘,’$rt[allowread]‘,’$rt[allowpost]‘,’$rt[allowrp]‘,’$rt[allowdownload]‘,’$rt[allowupload]‘,’$rt[modelid]‘,’$rt[forumsell]‘,’$rt[pcid]‘,’$rt[f_type]‘,’$rt[f_check]‘,’$rt[t_type]‘,’$rt[cms]‘,’$rt[ifhide]‘,’$rt[showsub]‘,’$rt[ifcms]‘)”;
里面的 “,’$rt[title]‘” 删掉。

修改后上传,刷新浏览器,又提示 Unknown column ‘metadescrip’ in ‘field list’,同样的修改方法,去掉 metadescrip。上传后刷新,没有错误,继续往下走了。

===============================
18 步的时候提示错误: Unknown column ‘topreplays’ in ‘field list’,同样的方法,删掉 topreplays

33 步的时候提示错误:
Error Msg: Query Error: select cl.*,bf.fid1,bu.newname from pw_colonys cl left join pw_bakfids bf on bf.fid2=cl.classid left join pw_bakuids bu on bu.username=cl.admin order by cl.id limit 0, 1000

MySQL said: #1267 – Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (gbk_chinese_ci,IMPLICIT) for operation ‘=’

查看次论坛的数据库,发现表 pw_colonys 的 admin 字段是 “gbk_chinese_ci”的,改成 “latin1_swedish_ci”,继续,没有错误了,直到结束。

然后到后台设置了新合并论坛的权限,可以访问了,试着看了帖子,下载附件,正常。 不知道还有其他问题没。


原创文章如转载,请注明:转载自 IT生活 [ http://www.djx1981.com/ ]

本文链接地址:http://www.djx1981.com/archives/463.html

相关文章

  • 无相关文章

Leave a Reply

最新评论及回复
文章归档
分类目录