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!

  • Secure all the things - Joomla Security Team Sprint, Cologne, May 2018

    Displaying items by tag: English May 19, 2018 | 09:51 am

    Joomla Security Team Sprint, Cologne, May 2018. I guess we all agree that it's one of Joomla's key priorities to offer a software that is as secure as possible, as this plays a crucial role in the user's experience running Joomla - a hacked user, is a very unhappy user.

    Read more...
  • JUG Round Up May 2018

    Displaying items by tag: English May 19, 2018 | 06:20 am

    Welcome to the JUG Round Up! It's time to see what's been happening with Joomla! User Groups around the world!

    Read more...
  • JCM goes to JaB 2018

    Displaying items by tag: Feature Stories May 18, 2018 | 12:06 pm

    With some of the finest joomlers in the world getting together, Cologne was a great place to be in May! JCM had the opportunity to attend and check out this great event.

    Read more...
  • J&Beyond 2018 - Become a Jeck!

    Displaying items by tag: English Apr 10, 2018 | 19:23 pm

    The Joomla community is made up of passionate volunteers, that truly believe in the idea of Open Source. They invest tremendous amounts of time to improve the CMS, provide support to other users or spread the word of Joomla’s awesomeness – and the better part of those people is completely “Jeck”. Time for you to become a Jeck too, by attending J&Beyond on 11-13 May 2018!

    Read more...
  • Kigali Hosts the Sixth CMS Africa Summit

    Displaying items by tag: English Apr 10, 2018 | 18:38 pm

    Kigali went live last week as it hosted the sixth edition of the CMS Africa summit. CMS Africa is an organisation that champions the use of technology (open source) to change the way we develop economies. The Summit brings together both global and Africa-based speakers and delegates. It is a premier event that host tech business owners, tech innovators, and experts in the area of web & mobile design, e-commerce solutions, online business, and online exchange. In terms of delegate attendance, the summit attracts web & mobile designers, bloggers, e-commerce & online stores builders.

    Read more...
 

Posted By:
Joomla User Group Detroit

Organizer,

Donations and Gifts

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