Page 1 of 1
Spartacus - error in url to netmirror ?
Posted: Mon Nov 07, 2005 8:23 am
by JWalker
Serendipity 0.9 release 28.10.2005
Windows XP SP2, Apache 2.0.54/PHP 5.0.2/MySQL 4.1.14/Firefox 1.0.5
Here is what I get from Spartacus plugin when it tries to connect to netmirror.org:
Trying to open URL package_event_bg.xml...
The URL http://netmirror.org/mirror/serendipity//package_event_bg.xml could not be opened. Maybe the Serendipity or SourceForge.net Server is down - we are sorry, you need to try again later..
The double forward slashes are a problem. I tried then
http://netmirror.org/mirror/serendipity/package_event_bg manualy and it opens in the browser.
Re: Spartacus - error in url to netmirror ?
Posted: Mon Nov 07, 2005 10:33 am
by garvinhicking
No, the double forward slashes cause no problem. It is the same if you type "///////////////////////////////////////" or only "/".
Thus the error must come from your server that is denying access?!
Best regards,
Garvin
Some debugging...
Posted: Mon Nov 07, 2005 1:40 pm
by JWalker
Yes, the count of "/" does not matter realy...
In FireFox, I can view package_event_bg.xml (it comes to my browser).
Some debugging with debug print:
serendipity_event_spartacus.php, line 271
Code: Select all
require_once S9Y_PEAR_PATH . 'HTTP/Request.php';
$req = &new HTTP_Request($url);
echo 'Spartacus req = ' . $req . '<br> $url = ' . $url . '<br>';
if (PEAR::isError($req->sendRequest()) || $req->getResponseCode() != '200') {
printf('responce code = %d<br>',$req->getResponseCode());
printf(PLUGIN_EVENT_SPARTACUS_FETCHERROR, $url);
......
Here is the output:
Code: Select all
Trying to open URL package_sidebar_bg.xml...
Spartacus req = Object id #43
$url = http://netmirror.org/mirror/serendipity//package_sidebar_bg.xml
responce code = 0
The URL http://netmirror.org/mirror/serendipity//package_sidebar_bg.xml could not be opened. Maybe the Serendipity or SourceForge.net Server is down - we are sorry, you need to try again later.
What I noted is that the responce code is 0.
P.S. The Spartacus version installed is 2.4.
Re: Some debugging...
Posted: Mon Nov 07, 2005 4:40 pm
by garvinhicking
Were you able to ever download a plugin using the server you are testing with? A response code of 0 is when PEAR is not able to utilize any networking functions on the server at all (firewall, disablet socket functions, ...)
Regards,
Garvin
Firewall
Posted: Mon Nov 07, 2005 7:03 pm
by JWalker
No, I did not ever download a plugin (I use s9y for about 3 months). Now I know, the issue is firewall related. As I know, our firewall (and sysadmin

) is very restrictive. I'll try in another network.
Thanks for the answer, anyway,
Regards