Skip Menu |
 

This queue is for tickets about the WWW-Google-SiteMap CPAN distribution.

Report information
The Basics
Id: 24655
Status: resolved
Priority: 0/
Queue: WWW-Google-SiteMap

People
Owner: Nobody in particular
Requestors: ZARQUON [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.02
  • 0.03
  • 1.00
  • 1.01
  • 1.02
  • 1.03
  • 1.04
  • 1.06
  • 1.08
  • 1.09
Fixed in: (no value)

Attachments


Subject: $map->file doesn't work with passing in $c->uri_for('blah')
Download (untitled) / with headers
text/plain 400b
If you're trying to use WWW::Google::Sitemaps from within a catalyst application and do something like: $map->add(loc => $c->uri_for('foo') the code throws a fatal error: "element #PCDATA can only be created from text at /Library/Perl/5.8.6/WWW/Google/SiteMap/URL.pm line 242" fixing the offending line(s) in the code from (val) to ("$val") so that the variable stringifies correctly fixes this.
Subject: www_gsm_catalyst_uri_for.patch
--- lib/WWW/Google/SiteMap/URL.pm 2007-01-29 10:34:54.000000000 +1100 +++ /Library/Perl/5.8.6/WWW/Google/SiteMap/URL.pm 2006-08-24 10:40:25.000000000 +1000 @@ -239,9 +239,10 @@ foreach(@fields) { my $val = $self->$_() || next; if($_ eq 'loc') { - $val = XML::Twig::Elt->new('#PCDATA' => encode_entities("$val")); $val->set_asis(1); + $val = XML::Twig::Elt->new('#PCDATA' => encode_entities($val)); + $val->set_asis(1); } else { - $val = XML::Twig::Elt->new('#PCDATA' => "$val"); + $val = XML::Twig::Elt->new('#PCDATA' => $val); } push(@elements,$val->wrap_in($_)); }
Download (untitled) / with headers
text/plain 190b
WWW::Google::SiteMap is being superceded by Search::Sitemap now that search engines other than Google are supporting it. This bug has been fixed in Search::Sitemap. -- www.jasonkohles.com


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.