call_user_func_array() 错误解决方法

这几天好不容易网站搬家成功,wordpress博客 也能够成功运行了,但是却出现了这样的错误

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'importFile' not found or invalid function name in /home/wwwroot/bocserve/boc/wp-includes/plugin.php on line 213

213行代码如下:

$value = call_user_func_array($the_['function'], array_slice($args, 1, (int) $the_['accepted_args']));

由于搬家后php版本出现了改变,所以这个问题的解决方法就是

在 php的配置文件php.ini中找到display_errors = Off(把on 改为Off就OK了)



爆款云服务器s6 2核4G 低至0.46/天,具体规则查看活动详情Blog Img