当前位置:首页 > CMS教程 > DeDecms > 列表

织梦CMS提示 Error:Tag disabled:"php" more...解决技巧

发布:smiling 来源: PHP粉丝网  添加日期:2014-10-17 16:54:43 浏览: 评论:0 

dedecms中模板中使用了dede:php标签了,只要有这个页面的执行时都会提示Error:Tag disabled:"php" more...错误了,导致这个问题是我们设置中不允许php标签执行了,下面来看看解决办法.

出现DedeCMS Error:Tag disabled:"php" more...!只要简单在后台网站后台--系统--系统基本参数---其他选项 ---模板引擎禁用标签 把里面的php 去掉就行了就可以了.

当然我们还可以使用sql直接操作了,代码如下:

  1. INSERT INTO `dede_sysconfig` (`varname`, `info`, `groupid`, `type`, `value`) VALUES('cfg_disable_funs''模板引擎禁用PHP函数', 7, 'bstring', 'phpinfo,eval,exec,passthru,shell_exec,system,proc_open, 
  2.  
  3. popen,curl_exec,curl_multi_exec,parse_ini_file,show_source,file_put_contents');  //phpfensi.com 
  4. INSERT INTO `dede_sysconfig` (`varname`, `info`, `groupid`, `type`, `value`) VALUES ('cfg_disable_tags''模板引擎禁用标签', 7, 'bstring''php'); 

这样执行之后就可以了,非常的简单.

Tags: Error:Tag disabled

分享到: