WordPress主題文件夾已經(jīng)上傳了主題文件夾,在Wordpress后臺(tái)卻看不到,
提示錯(cuò)誤如下:
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ù)問題引起的,只需要去掉這個(gè)函數(shù)就可以了。
可以通過FTP或者VI編輯 /usr/local/php/etc/php.ini文件中,找到 disable_functions ,將后面的 scandir 的函數(shù)刪掉即可。
最后,通過SSH編譯 /etc/init.d/php-fpm restart 重啟php-fpm就可以了。
更多信息請(qǐng)查看IT技術(shù)專欄