wordpress主题只有一个,下载之后原先的主题会消失

我第一次用wordpress做个人博客的时候,出现了下载之后原先的主题会消失,而且主题不能经行编辑,一编辑就会出现:“噢,没有这个文件。请重新检查文件名,然后再试。谢谢。”

 

如果再点击就会出现:Warning: scandir() has been disabled for security reasons in /var/www/html/chinayanor.com/wp-includes/class-wp-theme.php on line 981 Warning: Invalid argument supplied for foreach() in
/var/www/html/chinayanor.com/wp-includes/class-wp-theme.php on line 984 Warning: scandir() has been disabled for security reasons in /var/www/html/chinayanor.com/wp-includes/class-wp-theme.php on
line 981 Warning: Invalid argument supplied for foreach() in /var/www/html/chinayanor.com/wp-includes/class-wp-theme.php on line 984抱歉,您不能编辑这个文件。这样的文字。

 

那应该怎么解决呢?如果你用的是虚拟空间,就无法操作服务器,那么你就要重新更换程序或者叫空间管理商帮你处理。

 

如果可以,则解决方法:

找到你服务器上的php.ini的位置,可以用phpinfo()函数查看该文件的位置,找到后编辑该文件,一般php.ini文件会放在vi/usr/local/php/etc/php.ini中,在php.ini中找到disable_functions那一行去掉scandir函数即可 。

 

Be First to Comment

发表评论

邮箱地址不会被公开。 必填项已用*标注