Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Notice: Undefined variable: errno in drupal_http_request() (line 829 of /home/vol14/byethost11.com/b11_6950981/dgil.iblogger.org/htdocs/drupal-7.0-rc2/includes/common.inc).
Notice: Undefined variable: errstr in drupal_http_request() (line 830 of /home/vol14/byethost11.com/b11_6950981/dgil.iblogger.org/htdocs/drupal-7.0-rc2/includes/common.inc).
Comment | File | Size | Author |
---|---|---|---|
#10 | 1002538.patch | 1.14 KB | swentel |
Comments
Comment #1
thehil CreditAttribution: thehil commentedComment #2
thehil CreditAttribution: thehil commentedComment #3
Josh The Geek CreditAttribution: Josh The Geek commentedDrupal policy is to test bugs against dev releases.
Comment #4
Josh The Geek CreditAttribution: Josh The Geek commentedI posted at the same time as you and changed the priority.
Comment #5
Sivaji_Ganesh_Jojodae CreditAttribution: Sivaji_Ganesh_Jojodae commentedthehil, did you read this ?
Comment #6
aranofacundo CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: Josh The Geek commentedDrupal policy to test bugs against dev releases.
Comment #9
droplet CreditAttribution: 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 CreditAttribution: swentel commentedAttached patch checks on the strings. Untested, but should do the job fine.
Comment #11
Alan D. CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: javyerso commented#10: 1002538.patch queued for re-testing.
Comment #15
Agitaous11-1 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: mikeytown2 commentedMoving this to D7 as D8 is using Guzzle.
Comment #19
sushis CreditAttribution: 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 CreditAttribution: 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.