Advertisement

Module Syndication Feeds not working in 1.7?

Joomla versions 2.5, 1.7 and 1.6 are all end-of-life since December 31st 2014 and are no longer supported. Please use Joomla 3.x instead.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
User avatar
chrisconradi
Joomla! Apprentice
Joomla! Apprentice
Posts: 35
Joined: Fri Jul 22, 2011 6:17 am

Module Syndication Feeds not working in 1.7?

Post by chrisconradi » Fri Jul 22, 2011 7:12 am

I did an upgrade yesterday from 1.6.5 to 1.7.

Everything works like a charm, but the RSS feed link (livemarks.png) I had in my header is gone. Making debug-changes like trying to insert <h1>test</h1> to modules/mod_syndicate/tmpl/default.php doesn't seem to do anything. Am I looking at the wrong file?

Anybody else experienced troubles with the syndication when upgrading from 1.6 to 1.7?

Edit: Made my question a bit clearer.

Advertisement
User avatar
chrisconradi
Joomla! Apprentice
Joomla! Apprentice
Posts: 35
Joined: Fri Jul 22, 2011 6:17 am

Re: Module Syndication Feeds not working in 1.7?

Post by chrisconradi » Fri Jul 22, 2011 7:33 am

Okay, don't ask me how I figured this one out, and don't ask me why this works, but I opened modules/mod_syndicate/mod_syndicate.php and changed line 19 from

Code: Select all

$link = modSyndicateHelper::getLink($params);
to

Code: Select all

$link = modSyndicateHelper::getLink($params)."";
and everything works. For some reason, adding a blank string to the end of the $link somehow activates the module.

User avatar
Nick Savov
Joomla! Ace
Joomla! Ace
Posts: 1076
Joined: Tue Apr 13, 2010 7:40 pm

Re: Module Syndication Feeds not working in 1.7?

Post by Nick Savov » Fri Jul 22, 2011 1:56 pm

I'm glad you got it sorted! :)
Joomla Templates created by the Wright Framework.

"God is most glorified in us, when we are most satisfied in Him" - http://www.desiringgod.org/

User avatar
chrisconradi
Joomla! Apprentice
Joomla! Apprentice
Posts: 35
Joined: Fri Jul 22, 2011 6:17 am

Re: Module Syndication Feeds not working in 1.7?

Post by chrisconradi » Fri Jul 22, 2011 2:02 pm

Argh, sorry about that one. It turns out, my little hack only displays the little png image. The link, only links back to the same page. I.e. no rss support after all.

When looking at the code from mod_syndicate.php:

Code: Select all

$params->def('text', 'Feed Entries');
$params->def('format', 'rss');
$link = modSyndicateHelper::getLink($params);
$link never gets set and is null for some reason. The issue seems to be in the call modSyndicateHelper::getLink($params);

Any ideas? It worked like a charm in 1.6.5.

User avatar
chrisconradi
Joomla! Apprentice
Joomla! Apprentice
Posts: 35
Joined: Fri Jul 22, 2011 6:17 am

Re: Module Syndication Feeds not working in 1.7?

Post by chrisconradi » Fri Jul 22, 2011 9:51 pm

Great success!

I changed /modules/mod_syndicate/helper.php from

Code: Select all

class modSyndicateHelper
{
	static function getLink(&$params)
	{
		$document = JFactory::getDocument();

		foreach($document->_links as $link)
		{
			if (strpos($link, 'application/'.$params->get('format').'+xml')) {
				preg_match("#href=\"(.*?)\"#s", $link, $matches);
				return $matches[1];
			}
		}

	}
}
to

Code: Select all

class modSyndicateHelper
{
	static function getLink(&$params)
	{
		$document = JFactory::getDocument();

		foreach($document->_links as $i=>$value)
		{
			if ($value[attribs][type] == 'application/'.$params->get('format').'+xml')
				return $i;
		}
	}
}
No idea why this happens when upgrading to 1.7. But this code should do the trick.

I feel like I reverse-engineered halv of Joomla to get there :) At least I learned a lot about the API :)

oklink
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Jul 23, 2011 2:28 pm

Re: Module Syndication Feeds not working in 1.7?

Post by oklink » Sat Jul 23, 2011 8:36 pm

Hi there!

I got the same problem.

Everything worked fine with Joomla! 1.5.23 and 1.6.5.
After upgrading to 1.7.0 my syndication-module didn't work as expected any more. It displayed the module title but no item text or link to bookmark or view the feed.

Fortunately I could fix the problem with the suggestion chrisconradi made in his last post.

Thanks a lot!

Oli

User avatar
Nick Savov
Joomla! Ace
Joomla! Ace
Posts: 1076
Joined: Tue Apr 13, 2010 7:40 pm

Re: Module Syndication Feeds not working in 1.7?

Post by Nick Savov » Sat Jul 23, 2011 9:07 pm

Hi guys,

Is this in reference to the default Joomla module or to a 3rd party extension?

Kind regards,
Nick
Joomla Templates created by the Wright Framework.

"God is most glorified in us, when we are most satisfied in Him" - http://www.desiringgod.org/

User avatar
chrisconradi
Joomla! Apprentice
Joomla! Apprentice
Posts: 35
Joined: Fri Jul 22, 2011 6:17 am

Re: Module Syndication Feeds not working in 1.7?

Post by chrisconradi » Sat Jul 23, 2011 10:19 pm

Is this in reference to the default Joomla module or to a 3rd party extension?
Default Joomla module. Using the YouGrids framework. If that at all matters.

It is a fresh install, as I'm just upgrading my webpage (www.hvafor.no).

User avatar
Nick Savov
Joomla! Ace
Joomla! Ace
Posts: 1076
Joined: Tue Apr 13, 2010 7:40 pm

Re: Module Syndication Feeds not working in 1.7?

Post by Nick Savov » Sat Jul 23, 2011 10:30 pm

Do you mind reporting it to the Joomla Bug Squad and then posting the link here once you've reported the issue?
http://docs.joomla.org/Filing_bugs_and_issues

Kind regards,
Nick
Joomla Templates created by the Wright Framework.

"God is most glorified in us, when we are most satisfied in Him" - http://www.desiringgod.org/

User avatar
chrisconradi
Joomla! Apprentice
Joomla! Apprentice
Posts: 35
Joined: Fri Jul 22, 2011 6:17 am

Re: Module Syndication Feeds not working in 1.7?

Post by chrisconradi » Sat Jul 23, 2011 11:14 pm


User avatar
Nick Savov
Joomla! Ace
Joomla! Ace
Posts: 1076
Joined: Tue Apr 13, 2010 7:40 pm

Re: Module Syndication Feeds not working in 1.7?

Post by Nick Savov » Sun Jul 24, 2011 4:34 am

Cheers Chris :)
Joomla Templates created by the Wright Framework.

"God is most glorified in us, when we are most satisfied in Him" - http://www.desiringgod.org/

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Module Syndication Feeds not working in 1.7?

Post by infograf768 » Sun Jul 24, 2011 2:59 pm

Please test this patch:
http://joomlacode.org/gf/project/joomla ... m_id=26483

(as the one above does not work as should)
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
Nick Savov
Joomla! Ace
Joomla! Ace
Posts: 1076
Joined: Tue Apr 13, 2010 7:40 pm

Re: Module Syndication Feeds not working in 1.7?

Post by Nick Savov » Sun Jul 24, 2011 7:57 pm

Great job Jean-Marie!
Joomla Templates created by the Wright Framework.

"God is most glorified in us, when we are most satisfied in Him" - http://www.desiringgod.org/

Folamour
Joomla! Explorer
Joomla! Explorer
Posts: 315
Joined: Sun Mar 07, 2010 11:19 am

Re: Module Syndication Feeds not working in 1.7?

Post by Folamour » Mon Aug 08, 2011 2:52 am

Hi I have exactly the same issue in joomla 1.7 but how to install this 'patch' the extension is 'patch' i've watched the txt its parcelar there is a lot of modification,

how to install it ? thanks a lot....
https://www.crashdebug.fr talk about actualities and politics and many other topics.

How to boost the SEO of a Joomla site : https://www.crashdebug.fr/comment-ameli ... ite-joomla

User avatar
Nick Savov
Joomla! Ace
Joomla! Ace
Posts: 1076
Joined: Tue Apr 13, 2010 7:40 pm

Re: Module Syndication Feeds not working in 1.7?

Post by Nick Savov » Mon Aug 08, 2011 4:51 am

Give this a try:
http://docs.joomla.org/Setting_up_your_ ... th_Patches

Kind regards,
Nick
Joomla Templates created by the Wright Framework.

"God is most glorified in us, when we are most satisfied in Him" - http://www.desiringgod.org/

Folamour
Joomla! Explorer
Joomla! Explorer
Posts: 315
Joined: Sun Mar 07, 2010 11:19 am

Re: Module Syndication Feeds not working in 1.7?

Post by Folamour » Mon Aug 08, 2011 5:20 am

Wow... hum, thanks a lot nick i was expecting an answer :) , but in fact i'm not a developper, i was just guessing to get my blog getting his rss back :D does i have to compile the whole joomla for that ??? (if i understood ? i don't understood very well the doc) :-[ where is this php explorer ? i'll have to get the source of joomla in 1.7 apply the patch and get the corrected file to inject it to my blog ?

Sorry english is not my natural language but technically normally its not a problem, but i've never updated joomla unless with the traditional process "patch" with file copy or install. and my blog is online its not a LAB

My syndication module is well displayed but my rss feed is empty :eek: Does this patch well correct this issue ?

http://www.crashdebug.fr/index.php?format=feed&type=rss


Thanks a lot of what you can do,
https://www.crashdebug.fr talk about actualities and politics and many other topics.

How to boost the SEO of a Joomla site : https://www.crashdebug.fr/comment-ameli ... ite-joomla

Folamour
Joomla! Explorer
Joomla! Explorer
Posts: 315
Joined: Sun Mar 07, 2010 11:19 am

Re: Module Syndication Feeds not working in 1.7?

Post by Folamour » Mon Aug 08, 2011 10:46 am

ok i'm certainly totaly wrong i'll open a new thread, thanks anyway,
https://www.crashdebug.fr talk about actualities and politics and many other topics.

How to boost the SEO of a Joomla site : https://www.crashdebug.fr/comment-ameli ... ite-joomla

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Module Syndication Feeds not working in 1.7?

Post by infograf768 » Mon Aug 08, 2011 11:18 am

Should be easier this way:
http://docs.joomla.org/1.7.0_Syndication_module_broken

Remember though: RSS feeds are only provided in Joomla for Blogs, Featured and Category.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

Folamour
Joomla! Explorer
Joomla! Explorer
Posts: 315
Joined: Sun Mar 07, 2010 11:19 am

Re: Module Syndication Feeds not working in 1.7?

Post by Folamour » Mon Aug 08, 2011 12:34 pm

Hi infograf68 glad to meet you, i modified the the file but nothing has change you can check http://www.crashdebug.fr/index.php?format=feed&type=rss

i dont understood this issue everything was working fine unless i publish the news of the AA+ for the usa, i dont have touch anything i just have upgraded automaticaly akeeba

its common on joomla 1.7 ? (i just have upgraded)

this bugging me because other blog copy my blog using rss,

thanks,
https://www.crashdebug.fr talk about actualities and politics and many other topics.

How to boost the SEO of a Joomla site : https://www.crashdebug.fr/comment-ameli ... ite-joomla

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Module Syndication Feeds not working in 1.7?

Post by infograf768 » Mon Aug 08, 2011 3:16 pm

Folamour wrote: i dont understood this issue everything was working fine unless i publish the news of the AA+ for the usa, i dont have touch anything i just have upgraded automaticaly akeeba
its common on joomla 1.7 ? (i just have upgraded)
You are using a Joomlart template JA_Purity_ii with I guess their beta JAT3 plugin.
This template/framework is not compatible with 1.7. It may be a matter of the template itself, or the plugin.
I suggest you ask the template provider.

The reference btw should be
http://www.crashdebug.fr/index.php/international
and not, as far as I see, http://www.crashdebug.fr
as this last one just presents an article and would not display the syndicate module anyway.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

Folamour
Joomla! Explorer
Joomla! Explorer
Posts: 315
Joined: Sun Mar 07, 2010 11:19 am

Re: Module Syndication Feeds not working in 1.7?

Post by Folamour » Mon Aug 08, 2011 5:44 pm

Hi infograf78, i'm totaly desperate, this was working until this nigth at 3h31, what does i have to do to make it work again ????
https://www.crashdebug.fr talk about actualities and politics and many other topics.

How to boost the SEO of a Joomla site : https://www.crashdebug.fr/comment-ameli ... ite-joomla

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Module Syndication Feeds not working in 1.7?

Post by infograf768 » Tue Aug 09, 2011 7:23 am

1. Make sure you update their JAT3 plugin to
plg_system_jat3.v1.3.0 Beta.zip
http://www.joomlart.com/forums/download ... a&act=down

2. edit line 176 on of /plugins/system/jat3/jat3/core/joomla/documenthtml.php
change this function

Code: Select all

	/**
	 * Adds <link> tags to the head of the document
	 *
	 * <p>$relType defaults to 'rel' as it is the most common relation type used.
	 * ('rev' refers to reverse relation, 'rel' indicates normal, forward relation.)
	 * Typical tag: <link href="index.php" rel="Start"></p>
	 *
	 * @param	string  $href		The link that is being related.
	 * @param	string  $relation	Relation of link.
	 * @param	string  $relType	Relation type attribute.  Either rel or rev (default: 'rel').
	 * @param	array	$attributes Associative array of remaining attributes.
	 * @return	void
	 */
	public function addHeadLink($href, $relation, $relType = 'rel', $attribs = array())
	{
		$attribs = JArrayHelper::toString($attribs);
		$generatedTag = '<link href="'.$href.'" '.$relType.'="'.$relation.'" '.$attribs;
		$this->_links[] = $generatedTag;
	}
to

Code: Select all

/**
	 * Adds <link> tags to the head of the document
	 *
	 * <p>$relType defaults to 'rel' as it is the most common relation type used.
	 * ('rev' refers to reverse relation, 'rel' indicates normal, forward relation.)
	 * Typical tag: <link href="index.php" rel="Start"></p>
	 *
	 * @param	string  $href		The link that is being related.
	 * @param	string  $relation	Relation of link.
	 * @param	string  $relType	Relation type attribute.  Either rel or rev (default: 'rel').
	 * @param	array	$attributes Associative array of remaining attributes.
	 * @return	void
	 */
	public function addHeadLink($href, $relation, $relType = 'rel', $attribs = array())
	{
		$this->_links[$href]['relation']	= $relation;
		$this->_links[$href]['relType']		= $relType;
		$this->_links[$href]['attribs']		= $attribs;
	}
and then let them know their stuff is not working... :pop
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

Folamour
Joomla! Explorer
Joomla! Explorer
Posts: 315
Joined: Sun Mar 07, 2010 11:19 am

Re: Module Syndication Feeds not working in 1.7?

Post by Folamour » Tue Aug 09, 2011 8:05 am

Hi Infograpf768 thanks you so much to dig the issue i have warned joomlart, no body else seem to take care of this issue, i dont know if i'm alone to face it.. :-[

anyway the modification on the file modules/mod_syndicate/helper.php is still active i have put the modification above but the feed still empty,

you can check on the site, if you want i can gave you some credential by pm, its up to you and the free time you get above you,

NB. the new plug in crash all the display http://www.crashdebug.fr

thanks a lot,

Folamour,
https://www.crashdebug.fr talk about actualities and politics and many other topics.

How to boost the SEO of a Joomla site : https://www.crashdebug.fr/comment-ameli ... ite-joomla

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Module Syndication Feeds not working in 1.7?

Post by infograf768 » Tue Aug 09, 2011 9:49 am

Have you used the plg_system_jat3.v1.3.0 Beta.zip?
Is your template
version 1.1.1 of ja_purity_ii ?

You can send me superuser access is the replies to both is yes.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

Folamour
Joomla! Explorer
Joomla! Explorer
Posts: 315
Joined: Sun Mar 07, 2010 11:19 am

Re: Module Syndication Feeds not working in 1.7?

Post by Folamour » Tue Aug 09, 2011 4:50 pm

when i woke up after a nigth of debug fixing an angel came to me, its a compatriote ! 45 mn of phone call later the site was online

nervermind the lamer coding of joomlart, its a boys band ....

we was able to make the site/blog online, sadely only the atom feed work... but its ok for the blogger who follow us,

one more time i said : thank you jean marie, and about joomlart, you know what i think...

i need a professional template for my blog, no body can give me one....
Last edited by Folamour on Tue Aug 09, 2011 9:55 pm, edited 1 time in total.
https://www.crashdebug.fr talk about actualities and politics and many other topics.

How to boost the SEO of a Joomla site : https://www.crashdebug.fr/comment-ameli ... ite-joomla

TamMars
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Tue Aug 09, 2011 3:20 pm

Re: Module Syndication Feeds not working in 1.7?

Post by TamMars » Tue Aug 09, 2011 5:00 pm

thanks this discussion helped me ;)

Folamour
Joomla! Explorer
Joomla! Explorer
Posts: 315
Joined: Sun Mar 07, 2010 11:19 am

Re: Module Syndication Feeds not working in 1.7?

Post by Folamour » Sat Aug 13, 2011 2:30 am

Finnaly the engineer of joomlart work well on the issue and found a clue, i'll digged more this way and found that in the description of my blog i got the folowing sentence "international & france "

and the rss was blocking on the "&" so i'll managed to replace it by "et" and all get back to NORMAL !!!!

Special thanks goes to starter, peter and of course jean marie, and the team of joomlart who is not so bad at all finally

Thanks you to all, and have a nice day full of RSS ; )))

an happy droopy,

folamour,
https://www.crashdebug.fr talk about actualities and politics and many other topics.

How to boost the SEO of a Joomla site : https://www.crashdebug.fr/comment-ameli ... ite-joomla

User avatar
Peter_P
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Mon Jan 04, 2010 8:50 pm
Contact:

Re: Module Syndication Feeds not working in 1.7?

Post by Peter_P » Sat Aug 13, 2011 5:47 am

Glad you've been able to display your RSS Folamour ! ;)
Team Joomla.fr http://joomla.fr/

hnk511
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Aug 29, 2011 7:19 am

Re: Module Syndication Feeds not working in 1.7?

Post by hnk511 » Fri Sep 02, 2011 8:04 am

Hi I'm having the same problem my syndicate feed doesn't work I tried jean Marie's patch still I have an empty link to my home page instead of the RSS feed

help me please

Folamour
Joomla! Explorer
Joomla! Explorer
Posts: 315
Joined: Sun Mar 07, 2010 11:19 am

Re: Module Syndication Feeds not working in 1.7?

Post by Folamour » Fri Sep 02, 2011 8:21 am

check that in the description of your site in configuration you don't have character like '&' or things like that, this was one of my error,

; )
https://www.crashdebug.fr talk about actualities and politics and many other topics.

How to boost the SEO of a Joomla site : https://www.crashdebug.fr/comment-ameli ... ite-joomla

Advertisement

Locked

Return to “Migrating and Upgrading to Joomla! 2.5”