找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 736|回复: 0

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

[复制链接]
发表于 2012-4-18 10:45:00 | 显示全部楼层 |阅读模式
织梦DedeCMS5.7网站模板会员中心错误的修改方法:
这里要说到的错误总共有两个,如下所示:
   第一个:在会员中心发布商品或分类信息时时,直接报错:数据校验不对,程序返回
   原因:member/inc/inc_archives_functi*****.php函数function PrintAutoFieldsEdit 内缺少输出dede_fieldshash字段值,导致编辑程序条件判断一直为真。
临时处理方法:
查找
  
function PrintAutoFieldsEdit(;$fieldset, ;$fieldValues, $loadtype='all')

$dtp = new DedeTagParse();
之前加入
global $cfg_cookie_encode;
查找
echo "\r\n";
在其之后另行一行加入
echo "";
第二个问题:在会员中心编辑相集时,如果缩略图上传框未选择有本地图片,会报错:Not allow filename for not userdir
原因:在对缩略图作检查时程序include/helpers/upload.helper.php使用了多条件判断,导致错误了!
临时处理方法:
查找
else if( !preg_match('#^http:#', $handname) ;; !preg_match('#^/'.$cfg_user_dir.'/'.$userid."#", $handname) ;; !$isadmin )
替换为
else if( preg_match('#^http:#', $handname) ;; !preg_match('#^/'.$cfg_user_dir.'/'.$userid."#", $handname) ;; !$isadmin )
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|要学吧论坛

GMT+8, 2026-1-24 01:19 , Processed in 0.165967 second(s), 27 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表