tedh
New Member
Posts: 5
|
Post by tedh on Oct 9, 2006 17:09:29 GMT -5
Had an error running the RSS scripts. All modules are installed on my live server.
Script: gm-rss.cgi
Error: Greymatter - RSS Generator (2.0.0) Software error: XML::Atom::SimpleFeed::new(): Unknown element modified at gm-rss.cgi line 228
This relates to:
my $atom = XML::Atom::SimpleFeed->new( title => $prefs{title}, link => $link, modified => $w3cdtf_date, tagline => $prefs{description}, author => {name => $prefs{nameofwebmaster}, email => $prefs{emailofeditor} }, copyright => $prefs{copyright} );
What does this mean and how do I fix it please.
Hope you can help - thanks.
|
|
|
Post by petefinnigan on Oct 13, 2006 9:19:18 GMT -5
Hi Ted,
I would guess that the issue is with the line author => {name => $prefs{nameofwebmaster}, email => $prefs{emailofeditor} }, as all of the other variables except the date are used in RSS1 and RSS2 initalised before that. The other option is that its the date if you are not on Unix?
Check the contents of the config file gm-rssconfig.cfg for the elements used in the creation of the XML object. Also check the error_log to see if there is a better error message. Also you can run gm-rss in debug mode.
cheers
Pete
|
|
tedh
New Member
Posts: 5
|
Post by tedh on Oct 14, 2006 5:55:19 GMT -5
Hi Pete, I'll check that out and get back.
Noticed you cleaned up the spam, well done.
Back: Redid config file and made sure everything except the images were set. The time I had set to USA format and changed that to EUR.
The same error came up.
Checked out my server (Unix/Apache) and found: XML-Atom-SimpleFeed-0.8 - 03 Jun 2006 XML-RSS-1.10 - 11 Mar 2006
These are later versions than the ones I downloaded from your site. Could this be the problem?
- Ted
|
|
|
Post by petefinnigan on Oct 14, 2006 17:25:04 GMT -5
Hi Ted,
I have just had a look at the XML::Atom::Simplefeed version 0.8 on CPAN and its changed quite a lot. I have used version 0.7 to implement an Atom 0.3 feed. The 0.8 version creates a 0.8 Atom feed.
I think the XML:::RSS is Ok even if its later. the RSS feed format has not changed so there should not be an issue. The simplest thing for you to do is to install version 0.7 if you have root access, if not use the local file as I have done on my site but you may end up adding more local modules to get it work. But, yes the version of the code is the issue.
cheers
Pete
|
|
tedh
New Member
Posts: 5
|
Post by tedh on Oct 22, 2006 8:30:41 GMT -5
Ok. As I'm already in the process of writing my own blog script which does create a feed, I've decide to drop Greymatter.
Thanks anyway.
|
|