Page 1 of 1
PEAR.php error
Posted: Thu May 11, 2006 8:36 am
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.
Re: PEAR.php error
Posted: Thu May 11, 2006 10:55 am
by garvinhicking
Sf.Net file mirrors are down for the time, please use the netmirror.org file mirror.
Regards,
Garvin
Posted: Fri May 12, 2006 5:43 am
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.
Posted: Fri May 12, 2006 11:25 am
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
Posted: Fri May 12, 2006 5:38 pm
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.
Posted: Sat May 13, 2006 1:24 pm
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