WordPress后台不能编辑主题的解决办法
2012/08/05 06:48
教程
不能编辑主题的原因有很多,比如没有写入权限,这个不是我今天要说的。
刚才遇到的问题是
Warning: scandir() has been disabled for security reasons in /…/wp-includes/class-wp-theme.php on line 979 Warning: Invalid argument supplied for foreach() in /…/wp-includes/class-wp-theme.php on line 982 Warning: scandir() has been disabled for security reasons in /…/wp-includes/class-wp-theme.php on line 979 Warning: Invalid argument supplied for foreach() in /…/wp-includes/class-wp-theme.php on line 982
于是用探针看了一下,原来lnmp一键包默认禁用了scandir函数,在/usr/local/php/etc/php.ini 里修改然后重启一下lnmp就ok了
我的就不能编辑 我修改的时候一直用ftp下载了才修改