By usabilitydeveloper.com on
See the following feed for the content type "event":
http://www.citypeek.com/event/feed
It shows nothing. But when I open the source file of the feed page in Firefox, there is actually a list of content there. When I open it with Chrome, it shows a warning:
------
This page contains the following errors:
error on line 42 at column 15: Namespace prefix georss on point is not defined
Below is a rendering of the page up to the first error.
------
Georss is
http://www.georss.org/Main_Page
Is it anything to do with Location or Google Map module I used in this content type?
Comments
Problem fixed by update the
Problem fixed by update the header of rss output. add
xmlns:georss="http://www.georss.org/georss"
in my case, i updated event.module
from
$output = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
$output .= "\n";
$output .= format_rss_channel(variable_get('site_name', 'drupal') . t(' - Events Feed'), $base_url . '/event/feed', $description, $items, $locale);
$output .= "\n";
return $output;
}
to
$output = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
if(module_exists('location')){
$output .= "\n";
}
else {
$output .= "\n";
}
$output .= format_rss_channel(variable_get('site_name', 'drupal') . t(' - Events Feed'), url('event/feed', NULL, NULL, TRUE), $description, $items, $locale);
$output .= "\n";
return $output;
}