

Zblog报错“PHP file_get_contents函数获取https内容”解决方法
source link: https://www.huhexian.com/19654.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Zblog报错“PHP file_get_contents函数获取https内容”解决方法
今天在排查另外一个网站的时候,发现导航主题在部分情况下会出现错误,报错代码如下:“PHP file_get_contents函数获取https内容”,通过度娘,查询到了是file_get_contents函数的问题,下面就来给大家讲解一下解决方法:
在网上找了两种做多的方法,一个是修改php.ini配置文件,找到“extension=php_openssl.dll”这一行,去掉前面的“;”另外一个是找到“allow_url_include = Off ”这一行,将Off改为On,然后重启服务器。两种方法尝试后完全不管用,尤其是修改了“extension=php_openssl.dll”文件之后无法重启php。
解决方法:
找到include.php文件,将“//top.baidu.com/buzz?b=1&fr=topcategory_c513”修改成“http://top.baidu.com/buzz?b=1&fr=topcategory_c513”,如图:
修改完成后,后台修改完成后,后台首页“清空缓存并编译模板”,这样就解决了。
Recommend
-
26
...
-
14
idea启动springboot项目报错 Command line is too long 解决方法 Wiken 2021-05-18 错误:Error ru...
-
12
postman的报错:This request does not have any tests解决方法发布于 54 分钟前步骤1.查看是否保存了请求。步骤2.查看变量是否存在。步骤3.查看是否设...
-
15
记录解决Nginx出现报错403 forbidden的四种方法 2022-02-17...
-
9
报错 Allowed memory size of 134217728 bytes exhausted 解决方法 日期:2022年04月11日 · 分类:技术积累...
-
4
幻悠尘的小窝The quieter you become,the more you are able to hear.pip install nbextensions插件报错:ReadTimeoutError解决方法今天再给Jupyter Notebook安装jupy...
-
5
VS使用scanf函数报错如何解决 2022-05-1911:31:56评论 首先...
-
7
vs2022scanf函数的使用,使用scanf的报错-返回值被忽略:解决·方法 原创 可爱的辅师...
-
4
服务器上的 Docker 是 1.13 版本的有点老了,于是打算升级一下; 结果发现加入了 Docker 源之后使用 yum 安装报错了…,这里总结一下; centos7中使用yum安装docker报错解决方法
-
6
执行Shell脚本报错:/bin/bash^M: bad interpreter 解决方法执行Shell脚本报错:/bin/bash^M: bad interpreter 解决方法 执行Shell脚本提示: /bin/bash^M: bad interpreter: No such file or directory ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK