Page 1 of 2
[SOLVED] - Severe: CGFeedMaker not linking correct feeds
Posted: Sat Jan 03, 2009 8:18 am
by saltydog
I am using CGFeedMake 1.0.3 and CMSMS 1.5.1 but I am experiencing a severe problem: all the feeds in my list are pointing to the same article! The feed corretcly lists the title for each article, but the link is the same for each one!
Re: Severe: CGFeedMaker not linking correct feeds
Posted: Sat Jan 03, 2009 2:26 pm
by saltydog
UPDATE: I was doing some debuggin and I have found that the link is malformed. Here it is what CGFeedMaker writes in the feed:
Code: Select all
index.php?mact=News,cntnt01,detail,0&cntnt01articleid=190
and this is the correct link:
Code: Select all
index.php?mact=News,cntnt01,detail,0&cntnt01articleid=190
For some reason, CGFeedMaker transposes the ampersand character with & , which is not recognized by the reader and it brings to another article (always the same).
Re: Severe: CGFeedMaker not linking correct feeds
Posted: Sat Jan 03, 2009 4:24 pm
by RonnyK
Check if you are using latest feedmaker, and if sp after upgrading, make sure, that you have the latest default template. You get that by restoring it, as an upgrade doesnt touch your template.
Ronny
Re: Severe: CGFeedMaker not linking correct feeds
Posted: Sat Jan 03, 2009 4:59 pm
by saltydog
Ronny,
I have removed and reinstalled new version of CGFeedMaker and checked that latest template is in use. Now it is even worst: the feed doesn't work and gives this error:
Code: Select all
string(134) "Smarty error: [in temporary template line 34]: [plugin] modifier 'us_date_format' is not implemented (core.load_plugins.php, line 124)"
PS: I have CGExtensions 1.14.1
Re: Severe: CGFeedMaker not linking correct feeds
Posted: Sat Jan 03, 2009 5:06 pm
by saltydog
Besides this error, all accented chars and html special chars are escaped with the &xxx; form, and this doesn't work...
I'm really missing the RSS functionality of the News module. My sites are all without feeds now...
Re: Severe: CGFeedMaker not linking correct feeds
Posted: Sat Jan 03, 2009 6:19 pm
by RonnyK
In SVN a change has been made, for non-english languages, to take the rfc_date for the pubdate....
Ronny
Re: Severe: CGFeedMaker not linking correct feeds
Posted: Sat Jan 03, 2009 6:22 pm
by saltydog
Yes, this fixes just the date issue, but the links are still wrong... There is "&" into the url that breaks it. It should just be "&"
Re: Severe: CGFeedMaker not linking correct feeds
Posted: Sat Jan 03, 2009 9:30 pm
by saltydog
UPDATE: the links problem has been fixed by enabling pretty urls in the config file. I still have some problem with entities..
Re: Severe: CGFeedMaker not linking correct feeds
Posted: Sat Jan 03, 2009 10:33 pm
by zigge
saltydog wrote:
UPDATE: the links problem has been fixed by enabling pretty urls in the config file. I still have some problem with entities..
See my problems with special characters an News in conjunction with feeds:
http://forum.cmsmadesimple.org/index.php/topic,29418.0.html
The problem was apparently that my previous editor FCKeditorX transformed special characters to & and resaving them using TinyMCE solved this problem.
Mats
Re: Severe: CGFeedMaker not linking correct feeds
Posted: Sat Jan 03, 2009 10:41 pm
by ZYV
No, this sounds more like your news-reader has a problem (?). Does the feed validate now?! Try
{$entry->moreurl|replace:"&":"&"}
as a workaround if you want it to work with your reader anyway. You got the idea...
Re: Severe: CGFeedMaker not linking correct feeds
Posted: Sun Jan 04, 2009 12:03 pm
by saltydog
ZYV wrote:
as a workaround if you want it to work with your reader anyway. You got the idea...
I have fixed the link problem by enabling pretty urls. Still having validation issues on italian accented chars (À é etc..)
Re: Severe: CGFeedMaker not linking correct feeds
Posted: Sun Jan 04, 2009 1:02 pm
by saltydog
I finally FIXED all the issues! I had to play with combination of "htmltenities" and "html_entity_decode", but now all my feeds validate correctly.
This is the past part of the template (the foresch loop) where I made modifications:
Code: Select all
{foreach from=$items item='entry'}
<item>
<title>{$entry->title|htmlentities}</title>
<link>{$entry->moreurl}</link>
<description>{if isset($entry->summary)}{$entry->summary|htmlentities|strip_tags|summarize:40}{else}{$entry->content|htmlentities|strip_tags|summarize:40}{/if}</description>
<pubDate>{$entry->postdate|rfc_date}</pubDate>
<guid>{$entry->moreurl}</guid>
</item>
{/foreach}
Re: [SOLVED] - Severe: CGFeedMaker not linking correct feeds
Posted: Sun Jan 04, 2009 3:52 pm
by ZYV
Re: Severe: CGFeedMaker not linking correct feeds
Posted: Mon Jan 05, 2009 4:27 pm
by yannkee
RonnyK wrote:
In SVN a change has been made, for non-english languages, to take the rfc_date for the pubdate....
Ronny
Hello, where did you change anything for this problem ?
Thx a lot
Re: [SOLVED] - Severe: CGFeedMaker not linking correct feeds
Posted: Fri Jan 09, 2009 10:55 pm
by farhadprm
I have also the same problem:
Invalid at the top level of the document.
Line: 1 Character: 1
string(134) "Smarty error: [in temporary template line 34]: [plugin] modifier 'us_date_format' is not implemented (core.load_plugins.php, line 124)"
How I can fix this? I downloaded the 1.0.4 version of CGFeedMaker from SVN but it did not work the same. My site's language is Italian.
Thanks
Far