手机
当前位置:查字典教程网 >建站 >CMS教程 >解决因scandir函数导致WordPress看不到主题
解决因scandir函数导致WordPress看不到主题
摘要:WordPress主题文件夹已经上传了主题文件夹,在Wordpress后台却看不到,提示错误如下:Warning:scandir()hasb...

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就可以了。

【解决因scandir函数导致WordPress看不到主题】相关文章:

SiteServer CMS目录权限设置

SiteServer CMS设计概念之栏目

wordpress去掉分类category标志代码实现版本

将织梦dedecms后台编辑器更改为Ueditor

Dedecms限制栏目列表生成的最大页数

帝国CMS搜索伪静态教程

9款WordPress链接相关插件

DEDECMS使用拼音首字母做栏目名称

骑士人才系统资讯列表关键词及描述调用问题

DiscuzX没有合法的文件被上传的修复方法

精品推荐
分类导航