导读:在最新的dedecms5.7版本安装完后会出现这个,其他版本暂时不知.出现的原因是:官方出于平安考虑默认将{dede:php}{/dede:php}标签禁用了....
在最新的dedecms5.7版本安装完后会呈现这个,其他版本暂时不知.呈现的原因是:
官方出于平安考虑默认将{dede:php}{/dede:php}标签禁用了.所以如果页面的模版中使用该标签则会出现这个“DedeCMS Error:Tag disabled:"php"”提示.

办法/步骤
1、登录后台找到网站后台--系统--系统基本参数---其他选项 ---模板引擎禁用标签,把php删失落即可.

2、如果默认就没有,则必要先导入数据,再执行第一步的操作.
导入数据可以直接在phpmyadmin里面选择数据库然后执行:
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,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source,file_put_contents'); INSERT INTO `dede_sysconfig` (`varname`, `info`, `groupid`, `type`, `value`) VALUES ('cfg_disable_tags', '模板引擎禁用标签', 7, 'bstring', 'php');
--------------
如果不太认识phpmyadmin的操作的读者请看第三步.

3、可以在dedecms的后台的搜索“SQL命令行对象”然后执行同样的SQL插入命令.

实现