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技术专栏
2025国考·省考课程试听报名