加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > CMS系统 > Dedecms > 正文

DedeCMS信息发布员发布文章错误Error page的问题

发布时间:2020-12-14 04:03:22 所属栏目:Dedecms 来源:网络整理
导读:用信息发布员写文章出现如下错误。 ? ? ? 以下错误信息出现在“所有文档列表”和“我发布文档列表”中: ? DedeCMS Error Warning! ? Technical Support: http://bbs.dedecms.com ? Error page: /zero/content_list.php?channelid=1cid=150Error infos: You
用信息发布员写文章出现如下错误。
?
?
?
  以下错误信息出现在“所有文档列表”和“我发布文档列表”中:
?
  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,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);?
保存后即可!

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读