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!

  • Case Study: CELESC intranet in Brazil

    Feature Stories Nov 11, 2018 | 06:53 am

    Concessionária de Distribuição de Energia Elétrica do Estado de Santa Catarina - CELESC - is an electric concessionary in the South of Brazil. During Joomla Day Brazil 2018 I had the pleasure to meet João Batista P. da Silva aka jbfloripa. Currently, he is at the IT department and is in charge of both the company's website as well as its intranet.

    Read more...
  • A modern Joomla: The reality, by numbers

    Feature Stories Nov 9, 2018 | 00:09 am

    In the second instance of this series of articles about Joomla modernization, I am going to put in perspective how the web world is changing under our eyes, while we create websites and publish content. For this purpose, no better way that numbers and stats about our business.

    Read more...
  • 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...
 

Posted By:
Joomla User Group Detroit

Organizer,

Donations and Gifts

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