织梦DEDECMS会员中心发布文章修改提示"数据校验不对,程序返回"

一、文件:member/inc/inc_archives_function.php


找到函数

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

1. 在

$dtp = new DedeTagParse(); 

之前加入

global $cfg_cookie_encode; 

2. 查找

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)."\" />";

 

二、修改之后,再提交测试时会提示“提交表单同系统配置不相符,请重新提交”:

 

解决方法:


文件:member/article_edit.php
1. 查找

$inadd_f .= ','.$vs[0]." ='".${$vs[0]}."' "; 

在其之后加入

$inadd_f1 .= ','.$vs[0];

2. 查找

if ($fontiterm != $inadd_f)

修改为

if ($fontiterm != $inadd_f1)
posted @ 2018-07-19 17:04  bubuchu  阅读(228)  评论(0编辑  收藏  举报