[SOLVED] - Severe: CGFeedMaker not linking correct feeds

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

[SOLVED] - Severe: CGFeedMaker not linking correct feeds

Post 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!
Last edited by saltydog on Sun Jan 04, 2009 1:03 pm, edited 1 time in total.
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Re: Severe: CGFeedMaker not linking correct feeds

Post 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).
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Severe: CGFeedMaker not linking correct feeds

Post 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
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Re: Severe: CGFeedMaker not linking correct feeds

Post 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
Last edited by saltydog on Sat Jan 03, 2009 5:11 pm, edited 1 time in total.
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Re: Severe: CGFeedMaker not linking correct feeds

Post 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...
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Severe: CGFeedMaker not linking correct feeds

Post by RonnyK »

In SVN a change has been made, for non-english languages, to take the rfc_date for the pubdate....

Ronny
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Re: Severe: CGFeedMaker not linking correct feeds

Post 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 "&"
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Re: Severe: CGFeedMaker not linking correct feeds

Post by saltydog »

UPDATE: the links problem has been fixed by enabling pretty urls in the config file. I still have some problem with entities..
zigge
Forum Members
Forum Members
Posts: 75
Joined: Tue Jan 22, 2008 6:53 pm

Re: Severe: CGFeedMaker not linking correct feeds

Post 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
ZYV
Language Partners
Language Partners
Posts: 868
Joined: Tue Nov 15, 2005 9:08 pm

Re: Severe: CGFeedMaker not linking correct feeds

Post 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...
unsigned double ZYV;
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Re: Severe: CGFeedMaker not linking correct feeds

Post 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..)
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Re: Severe: CGFeedMaker not linking correct feeds

Post 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}
ZYV
Language Partners
Language Partners
Posts: 868
Joined: Tue Nov 15, 2005 9:08 pm

Re: [SOLVED] - Severe: CGFeedMaker not linking correct feeds

Post by ZYV »

Add eval & submit as diff for http://dev.cmsmadesimple.org/bug/view/2764 ?
unsigned double ZYV;
yannkee
Forum Members
Forum Members
Posts: 14
Joined: Thu Apr 17, 2008 6:37 pm

Re: Severe: CGFeedMaker not linking correct feeds

Post 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
farhadprm
Forum Members
Forum Members
Posts: 158
Joined: Mon May 28, 2007 2:40 pm
Location: Rome

Re: [SOLVED] - Severe: CGFeedMaker not linking correct feeds

Post 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
Post Reply

Return to “Modules/Add-Ons”