Unable to do any pinging

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
leonard
Regular
Posts: 6
Joined: Wed Sep 28, 2005 9:22 am
Contact:

Unable to do any pinging

Post by leonard »

Hi,

I'm using Serendipity 0.8.4, and downloaded the Announce entries plugin. I've set the plugin to ping the listed host. But when I create new entry all it says is "Your entry has been saved" and "Serendipity is now saving your entry, creating trackbacks and performing possible XML-RPC calls. This may take a while.."

I read in this forum that there should be some information regarding sending of ping etc.

I looked into the Apache log, but there's no error. Anyone has the same experience?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Unable to do any pinging

Post by garvinhicking »

Did you make sure the checkboxes at the bottom of the entry creation screen are checked?

If you get no output of which hosts were pinged this means your webserver is not able to connect to outgoing ressource because of firewall or PHP restrictions...

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/
leonard
Regular
Posts: 6
Joined: Wed Sep 28, 2005 9:22 am
Contact:

Re: Unable to do any pinging

Post by leonard »

garvinhicking wrote:Did you make sure the checkboxes at the bottom of the entry creation screen are checked?

If you get no output of which hosts were pinged this means your webserver is not able to connect to outgoing ressource because of firewall or PHP restrictions...

Regards,
Garvin
Yes, I've checked all the checkboxes. Also, I've allowed port 80 from the server to the internet and personally tested it with a browser on the server.

I've turned on PHP display_errors = On, but there's no error. Is there any other way I can debug?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Unable to do any pinging

Post by garvinhicking »

Yes, you could edit the serendipity_event_weblog ping plugin.

Look for the code:

Code: Select all

case 'backend_publish':
Now just insert a:

Code: Select all

echo "Weblog ping starting...<br />";
echo "Services: " . print_r($this->services, true) . "<br />";
echo "Announcement: " . print_r($serendipity['POST'], true) . "<br />";
after that line.

This should lead to some output. If it doesn't it means some other plugin before may be interfering; in that case please tell me which other event plugins you have installed.

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/
leonard
Regular
Posts: 6
Joined: Wed Sep 28, 2005 9:22 am
Contact:

Post by leonard »

Sorry, I guess I don't know much about pinging. I only read through the code and understand that only new entries will be pinged to the servers.

Funny tho. Previously I tried to create a new entry and there's no pinging too. But it's working now. Thanks!
Post Reply