DedeCMS信息发布员发布文章错误Error page的问题
来源:互联网 发布:three.js vr demo 编辑:程序博客网 时间:2024/05/31 18:49
以下错误信息出现在“所有文档列表”和“我发布文档列表”中:
DedeCMS Error Warning!
Technical Support: http://bbs.dedecms.com
Error page: /zero/content_list.php?channelid=1&cid=150Error infos: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') And reid=0 And channeltype='1'' at line 1
Error sql: Select id,typename,ispart From `dede_arctype` where ispart<>2 And id in(150,) And reid=0 And channeltype='1'
以下出现在“发布文档”中:
DedeCMS Error Warning!
Technical Support: http://bbs.dedecms.com
Error page: /dede/article_add.php
Error infos: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') And reid=0 And ispart<>2' at line 1
Error sql: Select id,typename,ispart,channeltype From `dede_arctype` where id in(1,) And reid=0 And ispart<>2
解决方法:
--修复“所有档案列表”和“我发布的文档” 中出现的Error方法:
首先找到 include/channelunit.func.php文件
修改第264行如下:
function GetSonIds($id,$channel=0,$addthis=true)
{
global $_Cs;
$GLOBALS['idArray'] = array();
if( !is_array($_Cs) )
{
require_once(DEDEROOT."/data/cache/inc_catalog_base.inc");
}
GetSonIdsLogic($id,$_Cs,$channel,$addthis);
$rquery = join(',',$GLOBALS['idArray']);
$rquery = preg_replace("/,$/", '', $rquery);
return $rquery;
}
再找到 include/typelink.class.php文件
找到第245行 $admin_catalog = join(',', $admin_catalogs);
在后面加上下面这一行:
$admin_catalog = preg_replace("/,$/", '', $admin_catalog);
添加后并保存。
--修复“发 布文章” 中出现的Error方法:
找到/dede/inc/inc_catalog_options.php文件
在 第42行(注意是第42行,不是30行):$admin_catalog = join(',', $admin_catalogs);
在后面 添加下面这一行:
$admin_catalog = preg_replace("/,$/", '', $admin_catalog);
保 存后即可!
- DedeCMS信息发布员发布文章错误Error page的问题
- dedecms 信息发布员
- dede审核文章怎么去掉 dedecms“信息发布员”发布文章后出现待审核稿件
- dedecms首页调用文章发布作者的名称和头像
- dedecms 调用当前会员发布的文章总数
- Fck发布文章错误
- dedecms发布文章后自动通过审核
- dedecms 发布文章 提交后空白解决办法
- DEDECMS后台文章发布出错解决方案
- dedecms文章发布日期时间调用标签
- 测试文章发布问题
- 使用webmagic爬取搜狗上公众账号发布的文章信息
- 使用metaWeblog.newPost发布文章时的文章分类问题
- DedeCms批量更改已审核文章为未审核、未发布、未生成的sql语句
- 织梦dedecms调用文章发布时间的几种方法汇总
- DedeCms批量更改已审核文章为未审核、未发布、未生成的sql语句
- 解决织梦dedecms修改文章后,发布时间自动更新的教程
- DEDECMS 5.7定时审核,定时发布文章插件,织梦文章定时发布教程
- TCP为什么叫做流协议
- (转)保护自己的Flash程序(AS3) -- 基于socket方式传送swf文件
- 为Exchange server 2010新建路由组连接器
- hibernate延迟加载
- 怎样让eclipse的字体变大
- DedeCMS信息发布员发布文章错误Error page的问题
- C#,往线程里传参数的方法总结
- 学习使用多媒体
- OpenCV學習心得(2) -- 建立一個類來簡化OpenCV的函數.
- 查找一目录下面所有文件超过30M文件
- Linux下Nutch分布式配置和使用
- 写入文件 ../uploads/allimg/100407/1-10040G40556.jpg 失败
- usb高速握手过程
- LaTex中插入VISO 和 MATLAB 经验总结