dedecms中模板中使用了dede:php標簽了,只要有這個頁面的執行時都會提示Error:Tag disabled:"php" more...錯誤了,導致這個問題是我們設置中不允許php標簽執行了,下面來看看解決辦法.
出現DedeCMS Error:Tag disabled:"php" more...!只要簡單在后臺網站后臺--系統--系統基本參數---其他選項 ---模板引擎禁用標簽 把里面的php 去掉就行了就可以了,如下圖所示。
當然我們還可以使用sql直接操作了,代碼如下:
- 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'); --Vevb.com
- INSERT INTO `dede_sysconfig` (`varname`, `info`, `groupid`, `type`, `value`) VALUES ('cfg_disable_tags', '模板引擎禁用標簽', 7, 'bstring', 'php');
這樣執行之后就可以了,非常的簡單.
新聞熱點
疑難解答