Hi,

tried the module and get this after cron job and with "autoping when updating..." option :

Pingback to http://leapon.net/en/drupal-gets-pingback from http://www.simpleexcite.net/node/6 failed.
Error 16: The source URL does not exist.

Thanks for some help !!

Comments

ptilu8’s picture

Assigned: Unassigned » ptilu8

I tested pingback within my website, it works...

andreashaugstrup’s picture

This can have multiple reasons. They all relate to Drupal having trouble fetching the URL you are linking to.

  • Your PHP setup doesn't allow for fetching external webpages (solution: check your PHP configuration. Drupal uses fsockopn() to establish connections).
  • You are trying to pingback URL that are not http or https (solution: stop doing that)
  • The connection opened by fsockopen() received a network error (solution: check your PHP configuration to make sure fsockopen() is working and then try again. Could be a temporary issue).
  • The source you are linking to is returning http error codes i.e. anything not 200 or 302.

The first and third are the most likely reasons.

ptilu8’s picture

Thx for your quick answer,

could you please check http://www.simpleexcite.net/phpinfo.php and confirm I have trouble with PHP settings to make your module work ??

Thx a lot !

andreashaugstrup’s picture

I don't know enough about PHP configurations to tell you that. Try running through some of the examples at http://us2.php.net/manual/da/function.fsockopen.php in a non-Drupal enviroment (in its own script) to see if that function works.

Inside Drupal try running system_check_http_request() http://api.drupal.org/api/function/system_check_http_request/6 to see if Drupal thinks it can make HTTP requests.

I take it this happens with all URLs you are trying to pingback?

ptilu8’s picture

I got Error 16, error 500 linking on different source, I dig and post back..

Thx

andreashaugstrup’s picture

Sounds like the site you are linking to either has other trouble (giving a 500 to everyone) or is just not allowing Drupal to download the page.

ptilu8’s picture

Status: Active » Closed (fixed)

Seems it doesn't work on certain subdomains only, time to close...

willfe’s picture

Status: Closed (fixed) » Active

Sheepishly reopening this support request to report a similar problem on a Drupal 5.7 installation (please accept my apologies if this is a breach in etiquette). I tested that fopensock() works (in fact I used the first example shown on the linked PHP manual page, plugged in http://leapon.net/en/drupal-gets-pingback instead of example.com and the resulting page (on the same server) printed the contents of the remote page just fine (the test page is http://willfe.com/testing.php).

The error message I see in the logs is similar to the one reported above:

"Pingback to http://leapon.net/en/drupal-gets-pingback from http://willfe.com/willfecom_adds_pingback_support failed. Error 16: The source URL does not exist."

Both URLs mentioned in the error load just fine in my browser (from the same machine that's hosting willfe.com). Any ideas what could be breaking here? I've got root on the machine in question and can munge around with Apache and PHP configuration stuff as needed. Thanks!

*Edit: Additional details from my troubleshooting efforts.

I've made sure that my server is actually offering up the pingback service itself, and this interaction with the server demonstrates it is:

~$ telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HEAD /willfecom_adds_pingback_support HTTP/1.1
Host: willfe.com

HTTP/1.1 200 OK
Date: Fri, 09 May 2008 05:20:49 GMT
Server: Apache/2.2.8 (Ubuntu) mod_python/3.3.1 Python/2.5.2 PHP/5.2.4-2ubuntu5 with Suhosin-Patch
X-Powered-By: PHP/5.2.4-2ubuntu5
Set-Cookie: SESS8600b4aa05ba439403da400641ab1561=db4dee53a9129369f981d9563592b504; expires=Sun, 01 Jun 2008 08:54:13 GMT; path=/; domain=.willfe.com
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Last-Modified: Fri, 09 May 2008 05:20:53 GMT
Cache-Control: store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Set-Cookie: bb2_screener_=1210310453+127.0.0.1; path=/
X-Pingback: http://willfe.com/xmlrpc.php
Content-Type: text/html; charset=utf-8

Connection closed by foreign host.

I would assume the "X-Pingback: ..." header indicates that the pingback service is being properly advertised. Loading the referenced URL prints the expected "accepts POST requests only" warning.

Leonth’s picture

Component: Miscellaneous » Documentation
Assigned: ptilu8 » Unassigned
Category: support » task

This is the owner of leapon.net talking. I'm very sorry, but recently the server was going up and down, and it had some problem in outgoing connections (that is, fsockopen() returns correctly but no connection is made). Therefore the pingback client (in my server) cannot check the link. Now the server seems to be Ok.

Pingback can get some documentation about this though. e.g. Error 16: The source URL does not exist. Perhaps the destination server could not reach this website/server, or [insert other cases where the error might come up]. The same for other errors when issues arise.

willfe’s picture

You're right, and I noticed pingback was working on other sites so I'd assumed it was just a fluke on just that page. My apologies for not noting that here sooner :) Thanks for letting me know what was going on, though!