Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
other
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2010 at 14:55 UTC
Updated:
7 Jul 2013 at 22:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
thehil commentedComment #2
thehil commentedComment #3
Josh The Geek commentedDrupal policy is to test bugs against dev releases.
Comment #4
Josh The Geek commentedI posted at the same time as you and changed the priority.
Comment #5
sivaji_ganesh_jojodae commentedthehil, did you read this ?
Comment #6
aranofacundo commentedI have the same problem with Drupal 7 RC2 and RC3
Notice: Undefined variable: errno in drupal_http_request() (line 829 of /home/vol3/byethost13.com/b13_6257237/htdocs/includes/common.inc).
Notice: Undefined variable: errstr in drupal_http_request() (line 830 of /home/vol3/byethost13.com/b13_6257237/htdocs/includes/common.inc).
It appears sometimes when i try to use Update Manager (admin/reports/updates/update). My web hosting is Byethost (http://byethost.com).
Hosting
Web server: Apache
PHP: 5.2.12
MySQL: 5.0.87-d10-ourdelta65
PHP extensions: Enable
PHP Memory: 24M
PHP register globals: Disabled
Unicode library: PHP Mbstring Extension
Comment #7
aranofacundo commentedI reinstalled Drupal 7 and I have the same errors.
Notice: Undefined variable: errno in drupal_http_request() (line 829 of /home/vol3/byethost13.com/b13_6257237/htdocs/includes/common.inc).
Notice: Undefined variable: errstr in drupal_http_request() (line 830 of /home/vol3/byethost13.com/b13_6257237/htdocs/includes/common.inc).
It appears sometimes when i try to use Update Manager (admin/reports/updates/update). My web hosting is Byethost (http://byethost.com).
Hosting
Web server: Apache
PHP: 5.2.12
MySQL: 5.0.87-d10-ourdelta65
PHP extensions: Enable
PHP Memory: 24M
PHP register globals: Disabled
Unicode library: PHP Mbstring Extension
Comment #8
Josh The Geek commentedDrupal policy to test bugs against dev releases.
Comment #9
droplet commentedbyethost.com is a free hosting, blocked http request (even cannot using some PHP functions I guess)
we can add a simple $var checks there, but should we do it ??
Comment #10
swentel commentedAttached patch checks on the strings. Untested, but should do the job fine.
Comment #11
alan d. commentedIn PHP, the string "" is read as FALSE or empty. ;)
Better readability:
$result->code = empty($errno) ? -1 : -$errno;
And maybe:
$result->error = isset($errstr) ? trim($errstr) : '';
if (!$result->error) {
$result->error = t('Error opening socket @socket', array('@socket' => $socket));
}
or using trim twice, singular condition:
$result->error = isset($errstr) && trim($errstr) ? trim($errstr) : t('Error opening socket @socket', array('@socket' => $socket));
Comment #12
chx commentedNormally
this will initialize $errno and $errstr as NULL because
they are taken by reference. If your PHP is crippled by your host then ... don't use them, I guess.
Comment #13
javyerso commented#10: 1002538.patch queued for re-testing.
Comment #15
Agitaous11-1 commentedNotice: Undefined variable: errno in drupal_http_request() (line 829 of /home/***.com/httpdocs/includes/common.inc).
Notice: Undefined variable: errstr in drupal_http_request() (line 830 of /home/***.com/httpdocs/includes/common.inc).
Updated to 7.10 and still the same problem.
Globals are open at the moment.
By the way, I have a paid hosting. They say, if you find out the problem; and it's about us; we will do out best to fix it.
Comment #16
oriol_e9gWe need solve this in D8 first or won't fix if is a hosting problem.
Comment #17
Agitaous11-1 commentedDear Oriol_e9g; you are right. If this is a hosting problem; you can not or should not fix it with Drupal7 or Drupal8. But If I do not have the required configuration info; I can not fix it or tell to fix to my hosting.
I am reactivating, because there is no work for D7. If won't fix, please inform.
Comment #18
mikeytown2 commentedMoving this to D7 as D8 is using Guzzle.
Comment #19
sushis commentedSame problem with D7_22. After the installation these errors appear.
This bug has more than 3 years! (December 2010).
This poses much problem for the development of the site?
Comment #20
godot882 commentedTo those who run into the same problem, it is probably a "problem" with the hosting. In my case my host provider disabled the steam_socket_client by default. If you can enable it or ask them to do so.