手机
当前位置:查字典教程网 >建站 >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看不到主题】相关文章:

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

wordpress建立数据库连接时出错解决办法

SiteServer CMS设计概念之栏目

phpcms文章页如何显示上一页下一页

zblog建站常用修改

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

Discuz如何导入主题模板

SiteServer CMS目录权限设置

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

如何解决wordpress管理后台产生过多重定向问题

精品推荐
分类导航