PEAR.php error

Found a bug? Tell us!!
Post Reply
vastneonwolf
Regular
Posts: 43
Joined: Sun May 22, 2005 6:57 am
Contact:

PEAR.php error

Post by vastneonwolf »

Tried to update the startcat plugin and got this error.

Code: Select all

Trying to open URL package_sidebar_en.xml...
Fetched 78292 bytes from already existing file on your server. Saving file as /var/vhost/writehand.org/html//templates_c/package_sidebar_en.xml...


Trying to open URL 0cloud.png?rev=1.9999...
Success
Notice: Success in /var/vhost/writehand.org/html/bundled-libs/PEAR.php on line 848
Success
Now I get it when I try to install any plugin from Spartacus.

Any ideas would be appreciated.
Everybody's children are so special. It makes you wonder where all the ordinary grown-ups come from.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: PEAR.php error

Post by garvinhicking »

Sf.Net file mirrors are down for the time, please use the netmirror.org file mirror.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
peaz
Regular
Posts: 18
Joined: Tue Apr 18, 2006 12:26 pm
Contact:

Post by peaz »

I also have this problem when I post my entries.

Code: Select all

Sending XML-RPC ping to host rpc.pingomatic.com...Malformed response.
Notice: Malformed response. in D:\peaz\atPeaz\bundled-libs\PEAR.php on line 848
Malformed response. 
The entry is still posted but the subsequent plugin that is suppose to run, that's to mirror my entry to Livejournal won't run anymore after the error.

Any idea why and how i can solve this?

This happens quite randomly since some of the servers are sometimes "pingable" and sometimes not and cause the malformed response as above.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hhhm, I don'T know what this "malformed response" is, that is being reported. :(

Can it be that your server might have some connectivity issues? Maybe you could patch your bundled-libs/HTTP/Request.php fil.e

Go do line 982 where you find this:

Code: Select all

 if (sscanf($line, 'HTTP/%s %s', $http_version, $returncode) != 2) {
                return PEAR::raiseError('Malformed response.');
modify that to:

Code: Select all

 if (sscanf($line, 'HTTP/%s %s', $http_version, $returncode) != 2) {
                print_r($line);
                return PEAR::raiseError('Malformed response.');
This should then show what output it is receiving that's causing the trouble(s)?

Regards,
garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
peaz
Regular
Posts: 18
Joined: Tue Apr 18, 2006 12:26 pm
Contact:

Post by peaz »

you were right. It's a connectivity problem. So I guess it's the server's problem.

But can the plugin be modifed not to fail like that and allow the rest of the servers to be pinged and other plugins to run?
Sending XML-RPC ping to host rpc.pingomatic.com...A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Notice: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in D:\peaz\atPeaz\bundled-libs\PEAR.php on line 848
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

For that one would need to modify the PEAR HTTP_Request class that we use to connect. Sadly I don't understand the code of the class very well, so I'm a bit lost on how to modify it to not fail so painfully.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply