织梦提示Call to undefined function解决办法
2017-05-13 18:48
260 查看
解决办法如下:
打开/include/common.func.php,搜索“function RunApp”,在这个函数的上面添加织梦新版本新增的函数:dede_htmlspecialchars(),
添加的具体代码如下:
function dede_htmlspecialchars($str) {
global $cfg_soft_lang;
if (version_compare(PHP_VERSION, '5.4.0', '<')) return htmlspecialchars($str);
if ($cfg_soft_lang=='gb2312') return htmlspecialchars($str,ENT_COMPAT,'ISO-8859-1');
else return htmlspecialchars($str);
}
保存后更新,就不会在 提示Call to undefined function了.
打开/include/common.func.php,搜索“function RunApp”,在这个函数的上面添加织梦新版本新增的函数:dede_htmlspecialchars(),
添加的具体代码如下:
function dede_htmlspecialchars($str) {
global $cfg_soft_lang;
if (version_compare(PHP_VERSION, '5.4.0', '<')) return htmlspecialchars($str);
if ($cfg_soft_lang=='gb2312') return htmlspecialchars($str,ENT_COMPAT,'ISO-8859-1');
else return htmlspecialchars($str);
}
保存后更新,就不会在 提示Call to undefined function了.
相关文章推荐
- php 提示Call to undefined function curl_init() 错误的解决办法
- dedecms后台登录提示Call to undefined function getcururl()解决办法
- php提示Call to undefined function curl_init() 错误的解决办法
- 解决php类中提示Call to undefined function的问题
- Call to undefined function imagecreatetruecolor() imageCreate() 的gd库解决办法
- DedeCMS提示"Call to a member function GetInnerText()"解决办法
- php在iis上配置时报Fatal error: Call to undefined function mysql_connect() in 错误解决办法
- PHP error: Call to undefined function imagecreate()的解决办法
- PHP:Call to undefined function curl_init()解决办法
- windows wamp运行提示 Fatal error: Call to undefined function curl_init的解决方法
- phpMyAdmin出现Fatal error: Call to undefined function __() in ..../core.lib.php on line 229解决办法
- Fatal error: Call to undefined function mysql_connect() 解决办法
- phpmyadmin:Call to undefined function __() Config.class.php on line 755 解决办法
- iis+php+mysql 错误 ---Call to undefined function mysql_connect()的解决办法
- 64位Win7 PHP5开启CURL模块(即 Call to undefined function curl_init() 解决办法)
- PHP FATAL ERROR: CALL TO UNDEFINED FUNCTION BCMUL()解决办法
- php在iis上配置时报Fatal error: Call to undefined function mysql_connect() in 错误解决办法
- Fatal error: Call to undefined function mysql_connect()的解决办法
- Call to undefined function mysql_connect()解决办法
- phpmyadmin:Call to undefined function __() Config.class.php on line 755 解决办法