Posted by SuperFedya on November 14, 2006 at 3:00pm
Jump to:
| Project: | Google Sitemap |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | SuperFedya |
| Status: | closed (fixed) |
Issue Summary
First time all work well, after i see this:
warning: parse_url(/webmasters/tools/ping?sitemap=http://www.console-wars.com/gsitemap) [function.parse-url]: Unable to parse url in /home/consolew/public_html/includes/common.inc on line 369.
I disable all other modules, but problem remain. What the possible reason?
Comments
#1
This error started appearing early this morning (1am PST) and generates a 301 error from Google's submission server. It isn't necessarily a bug but possibly Google has changed something on their side. I suspect an update or they broke something.
#2
This is just because google moved the ping url, it used to be at:
http://www.google.com/webmasters/sitemaps/ping
now it is at:
http://www.google.com/webmasters/tools/ping
When the request is sent to google at the old url it returns a 301 error with the new url, but this is not handled well by the drupal_http_request funtion, so the nest request has not included "http://www.google.com" and the parse_url function fails.
Simple solution, update the ping URL in the gsitemap module at line 465 for the new one.
#3
I like simple fixes. Changed in all versions.
#4