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!

  • JoomlaDay Chicago 2017 Recap

    Displaying items by tag: English Oct 1, 2017 | 17:12 pm

    JoomlaDay Chicago 2017 was held on Saturday, September 23rd on an unseasonably warm 90+ degree Chicago day. The event included three tracks one for beginners, one for seasoned users and one for those seeking certification.

    Read more...
  • Web Programming Weeks at THM

    Displaying items by tag: English Oct 1, 2017 | 05:43 am

    Every year in August the Institute for Information Sciences located at the Technische Hochschule Mittelhessen in Gießen, Germany organises the Web Programming Weeks. The Web Programming Weeks are also known as WPW and lasts two weeks. The aim of the WPW is to give students practical experience working on real-life issues and at the same time help out the Joomla! project. 

    Read more...
  • Joomla cares: Give Back to Sandra

    Displaying items by tag: Feature Stories Oct 1, 2017 | 03:10 am

    The eye of Hurricane Irma passed over the tiny island of St Maarten, taking lives and leaving most on the island homeless.  Sandra Decoux (Thevenet) was lucky to survive, unfortunately, however her house and car were badly damaged.

    Read more...
  • Joomla October Issue

    Displaying items by tag: Feature Stories Sep 30, 2017 | 23:17 pm

    October has arrived and the Joomla Community Magazine Team is proud to bring the October issue. Read, comment and share. We thank all our readers for their support.

    Read more...
  • Choosing the Right Extension

    Displaying items by tag: English Sep 1, 2017 | 10:12 am

    The Joomla! Extensions Directory (JED) lists nearly 8000 extensions - finding the best one for your website can sometimes be a tedious task. We have all selected an extension that hasn't been quite right for our needs. This article will cover tools available on JED that will aid your search, things to watch out for and tips to assist in making the right decision.

    Read more...
 

Posted By:
Joomla User Group Detroit

Organizer,

Donations and Gifts

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