Notice: Undefined variable: errno in drupal_http_request() (line 829 of ***.com/httpdocs/inclu
来源:互联网 发布:土星五号 知乎 编辑:程序博客网 时间:2024/05/02 00:13
用drupal做了一个网站,在本机开发和测试都没出现这个警告,发布到万网的阿里云服务器上后,出现了如题的错误。google+drupal官网,说是因为安全原因引起的,服务器提供商没有开启一个叫要stream_socket_client()的函数,去万网的控制面板查看php函数设置,没有这个函数,倒是看到一个fsockopen的函数默认被禁用了。
试着打开这个函数,然后刷新网站,警告消失了。
官网上看到的一段话,记一下
Notice: Undefined variable: errno in drupal_http_request() (line 829 of /foobar.com/includes/common.inc).
Notice: Undefined variable: errstr in drupal_http_request() (line 830 of /foobar.com/includes/common.inc).
In my case (as it turns out), my hosting provider had disabled a whole basket of php functions (41 in total) for security reasons. One of the disabled functions was stream_socket_client().
My host provider was kind enough to enable this function (after I told them it was now part of Drupal 7 core) but they offered the opinion that this was a security compromise.
0 0
- Notice: Undefined variable: errno in drupal_http_request() (line 829 of ***.com/httpdocs/inclu
- Notice: Undefined variable: data in /var/www/html/bbeden/modoer/ecshop/includes/lib_base.php on line
- PHP Notice: Use of undefined constant variable
- Notice: Undefined variable: xxxxx.php on line nn [php]
- Notice: Use of undefined constant out - assumed 'out' in D:wampwwwdaoruindex.php on line 4解决办法
- Notice: Undefined variable解决办法
- Notice:undefined variable
- Notice: Undefined variable解决办法
- Notice: Undefined variable解决办法
- Notice: Undefined variable解决办法
- Notice: Undefined variable
- Notice: Undefined variable
- Notice: Use of undefined constant title - assumed 'title' in D:\wamp\www\99Pursey\left.php on line
- Notice: Undefined variable 的解决方法
- Notice …Undefined variable…
- Notice …Undefined variable…
- Notice: Undefined variable 的解决方法
- php提示Notice: Undefined variable:
- 技术点详解---IPSec VPN基本原理
- 【SqlServer】跨服务器查询报错
- 出国体检 西安 USC
- alibaba
- MySQL数据库安全解决方案
- Notice: Undefined variable: errno in drupal_http_request() (line 829 of ***.com/httpdocs/inclu
- 简单的PHP 分页
- CentOS设置开机启动
- WebService中使用自定义类的解决方法(5种)
- html form 表单
- 从File类开始IO系统介绍
- [LeetCode]Divide Two Integers
- HadoopCV(2)—— hadoop平台上运行javaCV程序
- 黑色星期五