wordpress主題文件夾已經(jīng)上傳了主題文件夾,在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
解決辦法
這是由于服務(wù)器環(huán)境下的php.ini文件scandir()函數(shù)問題引起的,只需要去掉這個函數(shù)就可以了。
可以通過ftp或者vi編輯 /usr/local/php/etc/php.ini文件中,找到 disable_functions ,將后面的 scandir 的函數(shù)刪掉即可。
最后,通過ssh編譯 /etc/init.d/php-fpm restart 重啟php-fpm就可以了。
更多信息請查看IT技術(shù)專欄