WordPress主题文件夹已经上传了主题文件夹,在Wordpress后台却看不到,
提示错误如下:
Warning: scandir() has been disabled for security reasons in /wp-includes/class-wp-theme.php on line 980
Warning: Invalid argument supplied for foreach() in /wp-includes/class-wp-theme.php on line 983
Warning: scandir() has been disabled for security reasons in /wp-includes/class-wp-theme.php on line 980
Warning: Invalid argument supplied for foreach() in /wp-includes/class-wp-theme.php on line 983
解决办法
这是由于服务器环境下的php.ini文件scandir()函数问题引起的,只需要去掉这个函数就可以了。
可以通过FTP或者VI编辑 /usr/local/php/etc/php.ini文件中,找到 disable_functions ,将后面的 scandir 的函数删掉即可。
最后,通过SSH编译 /etc/init.d/php-fpm restart 重启php-fpm就可以了。
更多信息请查看IT技术专栏