Select Page

WordPress 主题不显示 页面属性模板选项消失 解决办法

WordPress 主题不显示 页面属性模板选项消失 解决办法

如果遇到后台只显示一个主题或是不显示也无法切换到其它主题的情况,又或者是后台编辑页面属性模板选项菜单消失,是因为权限问题,php.ini 禁用了 scandir 函数。

解决方法 一

编辑php.ini文件

vim /usr/local/php/etc/php.ini

搜索到disable_functions这一行,将scandir函数删除,然后重启php服务

/etc/init.d/php-fpm restart

#或者 service php-fpm restart

解决方法 二

取消scandir函数禁用

sed -i 's/,scandir//g' /usr/local/php/etc/php.ini

重启php服务

/etc/init.d/php-fpm restart

#或者 service php-fpm restart

About The Author

Jackie Sung

Jackie Sung, also known by his nick-name KK, always strives for the best and learn from the best. Influenced by the age of Internet, for the last few years, in his spare time, he's been working and living as a Freelance Web Engineer/ Web Developer & Designer/ Amateur Photographer/ Husky Lover. The work he provides is of highest quality, fully-customized responsive, and tested in a wide range of devices, which typically covers both front-end (HTML5/ CSS3/ JavaScript) and back-end (WordPress as the CMS) responsibilities.

Leave a reply

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

9 − 4 =

Pin It on Pinterest

Share This