Notice: Undefined variable: errno in drupal_http_request() (line 829 of ***.com/httpdocs/inclu
2014-05-23 11:31
417 查看
用drupal做了一个网站,在本机开发和测试都没出现这个警告,发布到万网的阿里云服务器上后,出现了如题的错误。google+drupal官网,说是因为安全原因引起的,服务器提供商没有开启一个叫要stream_socket_client()的函数,去万网的控制面板查看php函数设置,没有这个函数,倒是看到一个fsockopen的函数默认被禁用了。
试着打开这个函数,然后刷新网站,警告消失了。
官网上看到的一段话,记一下
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.
试着打开这个函数,然后刷新网站,警告消失了。
官网上看到的一段话,记一下
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.
相关文章推荐
- ExtJS中表格控件的使用,属性设置和数据的获取(copyfrom:http://www.itzhai.com/extjs-form-controls-in-the-use-of-property-)
- Dynamic load of a c++ dll in C#?http://www.codecomments.com/archive290-2004-7-216328.html
- Fatal error: Call to undefined function Think\C() in /var/www/html/ceshi.hzheee.com/think/ThinkPHP/Library/Think/Think.class.php on line 334 这个问题解决
- PHP Notice: Undefined variable: HTTP_POST_FILES Undefined variable: HTTP_POST_VARS
- Notice: Undefined variable: data in /var/www/html/bbeden/modoer/ecshop/includes/lib_base.php on line
- 关于display:inline-block,分享自张鑫旭-鑫空间-鑫生活[http://www.zhangxinxu.com]
- PHP中Notice: unserialize(): Error at offset of bytes in on line 的解决方法
- PHP中Notice: unserialize(): Error at offset 109 of 615 bytes in on line 的解决方法
- [php错误]PHP中Notice: unserialize(): Error at offset of bytes in on line 的解决方法
- Notice: unserialize(): Error at offset 134526789 of 2136547489 bytes in file.php on line 130
- Spring MVC How take the parameter value of a GET HTTP Request in my controller method?
- [php错误]PHP中Notice: unserialize(): Error at offset of bytes in on line 的解决方法
- Notice: Undefined offset: 4 in d:\...\chaxun\rbora.php on line 96错误方法
- Notice: Use of undefined constant user - assumed 'user' in E:\zendWorkspace\smarty_manage\configs\my
- why request event is fired before data event in http modlues of node.js.
- An error occurred at line: 307 in the generated java file The code of method _jspService (HttpServle
- PHP Notice: Use of undefined constant variable
- Notice: Undefined variable: xxxxx.php on line nn [php]
- Mongoose: mpromise (mongoose's default promise library) is deprecated, plug in your own promise library instead: http://mongoosejs.com/docs/promises.html
- Notice: Use of undefined constant mysql_fetch_array - assumed 'mysql_fetch_array' in E:\wamp\wamp\w