
一、前言
在wordpress后台新建页面的时候,页面属性中会有模版选项。

但是发现,自己的wordpress新建页面中,并没有这个选项,这是为什么?
二、解决办法
出现以上的问题是由于php禁用了scandir函数。
解决办法:
1、编辑php.ini配置文件:
vim /usr/local/php/etc/php.ini
2、通过vim的查找,快速定位到scandir的位置,在disable_functions里面找到scandir函数,将其删除掉,wq保存退出。
3、重启服务器,或者重启php-fpm:
/etc/init.d/php-fpm restart
重启之后,php.ini即可生效。
三、总结
慢慢折腾吧!
来源:
https://cuijiahua.com/blog/2017/11/website_6.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_3215.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57