Skip to main content
 Web开发网 » 站长学院 » 织梦教程

织梦DEDECMS会员提示“数据校验不对,程序返回”问题的解决

2020年09月12日7020百度已收录

织梦DedeCMS5.7网站模板会员中心错误的修改方法:

在会员中心发布商品或分类信息时时,直接报错:数据校验不对,程序返回 内容来自

原因:member/inc/inc_archives_functions.php函数function PrintAutoFieldsEdit 内缺少输出dede_fieldshash字段值,导致编辑程序条件判断一直为真。

临时处理方法:

打开文件member/inc/inc_archives_functi***.php

查找

function PrintAutoFieldsEdit(&$fieldset, &$fieldValues, $loadtype='all') 

$dtp = new DedeTagParse(); 

之前加入

global $cfg_cookie_encode; 

查找

echo "<input type='hidden' name='dede_addonfields' value=\&;".$dede_addonfields."\&;>\r\n"; 

在其之后另行一行加入 

echo "<input type=\&;hidden\&; name=\&;dede_fieldshash\&; value=\&;".md5($dede_addonfields.$cfg_cookie_encode)."\&; />"; 


 

评论列表暂无评论
发表评论
微信