hit counter joomla

Joomla Newsfeed RSS Disappearing?

One of the nice things about Joomla is that you can pull RSS newsfeeds in to your content area by use of the newsfeed component. I am currently using this feature to list the CloudAccess.net Webinars as I just don't have enough hours in my day to run webinars as frequently (and as well) as CloudAccess.net. I ran into a big issue with the RSS newsfeed though when it came to display on the front end. 

The RSS Newsfeed in Joomla was simply disappearing!

I'd get everything set up, check the front end and see that the RSS feed was displaying properly. I'd come back a few minutes later, and lo, and behold, it was gone! I searched for the answer, and found a solution that worked for this site on the JoomlaCode website, "Single newsfeed doesn't display when caching is enabled

Here's what I did that fixed the problem on this website:

1. Opened Filezilla (FTP Client) and logged into my server. I went to httpdocs/libraries/joomla/factory.php as in the solutions provided by the bug squad.

2. With a text editor, I went to line 341 - public static function getFeedParser($url, $cache_time = 0)
and replaced it with the code provided here:

public static function getFeedParser($url, $cache_time = 0)
{
jimport('simplepie.simplepie');

$cache = self::getCache('feed_parser', '');

if($simplepie = $cache->get($url)){
return $simplepie;
}else{
$simplepie = new SimplePie(null, null, 0);

$simplepie->enable_cache(false);
$simplepie->set_feed_url($url);
$simplepie->force_feed(true);

$simplepie->init();

if ($cache_time > 0)
{
$cache->setLifeTime($cache_time);
$cache->store($simplepie, $url);
}

return $simplepie;
}
}

3. Next, go to your Joomla admin and clear the cache by going to the top menu and clicking > SiteMaintenanceClear Cache

joomla-clear-cache

Now your RSS feed will not disappear anymore!

 

 


  • No comments found

Leave your comments

Post comment as a guest

0 / 2500 Character restriction
Your text should be in between 10-2500 characters
terms and condition.

Around Joomla!

  • We Invite You to Write for JCM

    Joomla! Community Magazine | Issues in English Oct 15, 2018 | 19:16 pm

    The Joomla Community Magazine has always been supported by individuals who wanted to share their knowledge about the platform. This is an invitation to become part of the JCM Team and write about you know to help you others. Come join us!

    Read more...
  • Guilherme Razgriz: 3D Prototyping with Joomla

    Joomla! Community Magazine | Issues in English Oct 15, 2018 | 06:07 am

    Guilherme Razgriz is a brazilian 3D prototyper, art director and a strong advocate of the use of open source tools to create graphics. Active participant of several projects of open source communities, he is the maintainer of the Gimp no Brazil portal. He spoke at Joomla Day Brasil 2018 about his project of using Joomla to control remotely a 3D printer.

    Read more...
  • Talking about a Modern Joomla

    Feature Stories Oct 15, 2018 | 06:05 am

    There is an elephant in the room, the modernization of Joomla. The mobile world is transforming the web technology. There is an accumulated sum of innovations waiting to be interpreted. It has taken years to reach the present tipping point, but it is finally arriving as new features included in the evergreen browsers (Firefox, Google Chrome, Microsoft Edge, Opera). Beyond the fine detail, the general web landscape is changing, and that is what we need to address to modernize Joomla.

    Read more...
  • Custom Fields - Episode 3 : all the parameters one can wish for

    Feature Stories Oct 15, 2018 | 04:57 am

    In this 3rd episode about Custom Fields: (1) we will first cover in detail all the possible parameters (2) then we will give an overview of some new exciting features which will ship with Joomla 3.9 (3) and finally, we will end up with an example of site making an interesting use of Custom Fields

    Read more...
  • Joomla on the move in the USA

    Joomla! Community Magazine | Issues in English Oct 15, 2018 | 04:15 am

    The Joomla Capital team kicked off its winter USA conference schedule with two back to back conference/expo appearances in both Orlando, Florida and Houston, Texas. The Captial team started attending US conferences just three years ago at Hostingcon 2016 and have been using these events to showcase the platform and gain sponsorship for the project.

    Read more...
 

Posted By:
Joomla User Group Detroit

Organizer,

Donations and Gifts

Donations that go to keeping the Meetup 100% Free are welcome!