Unable to parse url

SuperFedya - November 14, 2006 - 15:00
Project:Google Sitemap
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:SuperFedya
Status:closed
Description

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?

#1

Shane Birley - November 14, 2006 - 16:44

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

leflores - November 14, 2006 - 17:33

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

SamAMac - November 14, 2006 - 17:40
Status:active» fixed

I like simple fixes. Changed in all versions.

#4

SamAMac - November 22, 2006 - 21:50
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.