I switched from wordpress to drupal because drupal gave me the hope of a much more flexible web site.
However, since the switch my traffic has fallen to 1/5th (or less) what it was using wordpress.
One of the things I depended on was pinging the aggregation services. But drupals ping.module doesn't give much in the way of feedback nor configurability. To configure multiple pings, I had to edit the ping.module source, for example. And I just don't have any confidence that it's doing anything.
I just checked using technorati .. pasting in text from postings over the last few days. A post from 3 days ago is indexed by technorati, while ones from 2 days ago are not. Does this mean technorati isn't receiving the ping?
Comments
add a watchdog event for successful pings
I have tweaked my ping.module file to register watchdog events in case of successful pings. I have also added more sites to be pinged.
Ideal solution is to make the ping module configurable so that you can simply add new services to be pinged without tweaking the source code. I think this is already a feature request.
Code is as follows:
There is also another service called pingoat.com . However I was unable to ping it from ping.module. I didnt get time to see why so that service is missing from the above list.
If I do get it to work I might post the code here...
My Drupal-powered Blog: ThoughtfulChaos - Varun's Blog
That helps, but
...but... I'm not getting the positive response in my log. So that verifies my suspicions, that my pings aren't going out.
First, it appears the only way ping_ping is called is from _ping_notify. And _ping_notify only gets called from ping_cron. Yes? I see no other invocation of a ping hook.
So in my logs there are several warnings associated with each cron run, and this message is one of them: Last cron run did not complete.
The other warnings are from the aggregator, concerning various feeds I've defined but are failing to parse. This must be for ones using the atom format.
Oh... shoot... it has nothing to do with the above. WHY IS NOT THE FOLLOWING REPORTED IN THE LOG? If I wget my cron.php, here's what I get:
Clearly that's my problem.
Hmmm... somehow in my upgrade process from 4.6.0 to 4.6.1 to 4.6.2 includes/xmlrpc.inc got out of line with the one from 4.6.2. So I just copied the one from 4.6.2 in-place of what's there, and redid my cron.php, and got notifications in the admin log that the pings succeeded. YAY!!
- David Herron - http://7gen.com/
+ David Herron - 7gen.com/, The Long Tail Pipe, davidherron.com/drupal-blogging-hints
Reported
See http://drupal.org/node/29812
- David Herron - http://7gen.com/
+ David Herron - 7gen.com/, The Long Tail Pipe, davidherron.com/drupal-blogging-hints
You do realize
There was a security update release (4.6.3) nearly 2 weeks ago.
===
Laura
pingVision
_____ ____ ___ __ _ _
Laura Scott :: design » blog » tweet
Whoops
You're right - and I had applied that, so I am/was at 4.6.3 - and I'd forgot - and the xmlrpc.inc I had was from 4.6.3
Soo.... then.... ping.module is incompatible with the xmlrpc.inc in 4.6.3
Still, my issue report is valid 'cause the log shoulda been telling me of these fatal errors (and it wasn't)
Okay, what's incompatible with xmlrpc.inc 4.6.2 is the above code which is correct against the xmlrpc.inc in 4.6.2. The ping.module in 4.6.3 is compatible with the xmlrpc.inc in 4.6.3. Hence, I can follow the same pattern as given above, but the coding has to be different calls because the xmlrpc API in 4.6.3 is different.
So.... I've been updating this as I'm looking at the details.
What I did was recode my ping_ping method as follows. I just posted a test message, wget'd my cron.php, and this works against the 4.6.3 version of xmlrpc.inc. I have one comment on reviewing this code ... what if $url is blank? Will the ping services be okay?
- David Herron - http://7gen.com/
+ David Herron - 7gen.com/, The Long Tail Pipe, davidherron.com/drupal-blogging-hints
Fabulous
I'll give it a try, as ping-o-matic so frequently seems to be down. It's an unfortunate bottleneck.
===
Laura
pingVision
_____ ____ ___ __ _ _
Laura Scott :: design » blog » tweet
I am getting notification of
I am getting no notification of pings anywhere and to my knowledge they are not going.
I am using reikiman's last posted script.
Is there a ping settings in the admin? I enabled the module but thought there would be a way to change ping config.... if there is I cant find it.
Rob - SEO Specialist
Founder: www.webforumz.com
Same problem
I have just used the code pasted above and I am not getting any notification in the watchdog. Perhaps someone can shed some light?
All Things Cheeky
Check the output from cron.php
If you read my other comments on this thread, the real breakthrough for me came when I manually fetched cron.php. I saw an error that led to the real solution.
The problem is that cron.php doesn't do its job properly -- and if errors happen, the errors are not caught and reported in the admin log.
See this problem report: http://drupal.org/node/29812
- David Herron - http://7gen.com/
+ David Herron - 7gen.com/, The Long Tail Pipe, davidherron.com/drupal-blogging-hints
hook, not hack
why not use hook_ping in a custom module instead of hacking core? there is a ping hook for just this purpose.
slogan and site name must be present
I know this is an older thread, but: it appears that the ping module in 4.7.x requires both the site name and slogan are non-empty in order to send a ping. Here's an excerpt from hook_cron() in ping.module:
Note that it will fail silently if ither of these variables are empty - no watchdog entry will appear if no ping happens due to misconfigured site name and slogan.
farkedmanager.com
older post on this subject, including patch
http://drupal.org/node/36676