织梦DEDECMS5.7网站模板會员中心错误的修改方法
这里要说到的错误总共有两个,如下所示:
第I.个:在会员中心发布商品或分类信息时时,直接报错:数据校验不对,程序返回内容来自
原因:member/inc/inc_archives_fu
更多精彩就在: 51免费论文网|www.jxszl.com
ncti*****.php函数functionPrintAutoFieldsEdit内缺少输出dede_fieldshash字段值,导致编辑程序条件判断I.直为真.
临时处理方法:
查找
functionPrintAutoFieldsEdit(&$fieldset,&$fieldValues,$loadtype=all)
在
$dtp=newDedeTagParse();
之前加入
global$cfg_cookie_encode;
查找
echo"
在其之后另行I.行加入
echo"
第II个问题:在会员中心编辑相集时,如果缩略图上传框未选择有本地图片,会报错:Notallowfilenamefornotuserdir
原因:在对缩略图作检查时程序include/helpers/upload.helper.php使用了多条件判断,导致错误了!
临时处理方法:
查找
elseif(!preg_match(#^http:#,$handname)&&!preg_match(#^/.$cfg_user_dir./.$userid."#",$handname)&&!$isadmin)
替换为
elseif(preg_match(#^http:#,$handname)&&!preg_match(#^/.$cfg_user_dir./.$userid."#",$handname)&&!$isadmin)
原文链接:http://www.jxszl.com/biancheng/dedecms/75035.html
热门阅读