• Home
  • Get help
  • Ask a question
Last post 3 hours 3 min ago
Posts last week 94
Average response time last week 34 min
All time posts 67860
All time tickets 10487
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#825 – Stop RSS feed URL being rewritten

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Thursday, 06 August 2015 15:11 UTC
DVisions
How do you prevent the RSS feed links from a content category being rewritten?

E.g
http://www.xxxx.com/index.php?option=com_content&view=category&id=96&Itemid=198&format=feed&type=rss

Gets rewritten to
http://www.xxxx.com/table/news/feed/rss.html

I have set the Newsfeeds setting in the configuration to Leave as non-sef, cleared caches etc, but the URL is still being rewritten.

What am I missing?
Thursday, 06 August 2015 15:51 UTC
wb_weeblr
Hi

WHich exact version of Joomla and sh404SEF are you using?

Rgds
 
Thursday, 06 August 2015 16:05 UTC
DVisions
Joomla 3.2.3
sh404SEF 4.4.6.2271

Server is running:

Database Version 5.1.73
Database Collation utf8_general_ci
PHP Version 5.3.3
Web Server Apache/2.2.15 (CentOS)

Thursday, 06 August 2015 16:07 UTC
wb_weeblr
Hi,

You are multiple versions behind, you should update to current sh404SEF, then delete this URL, and it should be rebuilt without the ".html" at the end.

Having ".html" at the end is not accepted by Joomla any longer for rss feed; when there's an "html" suffix, Joomla automatically switch to an HTML page, not a XML RSS feed.

An even quicker fix would be to manually customize this URL by removing the ".html" at the end.

Rgds
 
Thursday, 06 August 2015 17:22 UTC
DVisions
Well, that doesn't work. Leaving off the .html still returns a normal html page, not the Joomla xml feed.

But you did indirectly give me a workaround solution I can use as a temporary measure for the feed I particularly want - customising the URL to use the non-sef URL for the feed outputs the xml feed.

But this isn't a great fix, as although it solves my immediate problem, it still means any other category feeds on the site aren't working, and purging the URLs will break the feed.

Really needs a "proper" solution.

Thursday, 06 August 2015 17:31 UTC
wb_weeblr
Hi

You mean you have current version, the URL is /feed/rss and you still get the html page??

If so, then it's something else: you have a system plugin causing this.

Please confirm which version you're using.

Rgds
 
Thursday, 06 August 2015 18:00 UTC
DVisions
Yes, just updated to the latest version - 4.6.0.2718

The SEF'ed url comes out as /feed/rss/ - with the trailing slash, but not sure that would affect it?

Don't think there are any unusual plugins installed.

J
Thursday, 06 August 2015 18:02 UTC
wb_weeblr
Hi

It doesn't have to be unusual. Next step is for us to get a full backup (Akeeba backup) of the site, so that we can install a copy on our local machine and debug step by step the PHP to see what's making the page become HTML

RGds
 
Thursday, 06 August 2015 21:34 UTC
DVisions
Thanks for that - would be nice to know what the issue is to get it sorted for this, and potentially other sites.

You can access the Akeeba backup from my Dropbox:

https://www.dropbox.com/s/xxxx/site-www.xxxx.com-20150806-211219.jpa?dl=0

Thanks

Jeremy
Friday, 07 August 2015 11:00 UTC
wb_weeblr
Hi

OK, I was lucky, sometimes it takes much time to figure out what extension is causing the problem.
But in your case, it was the first plugin I tried causing the issue: System - eorisis: jQuery

It has a well known bug: it call JFactory::getDocument() from the onAfterInitialize event:
//	--------------------------------------------------

	function onAfterInitialise()
	{
		$this->doc = JFactory::getDocument();
		$this->is_html = ($this->doc->getType() == 'html');

		if (!$this->is_html) { return; }


This is an error, this function should not be called before the onAfterRoute event (because the type of document is only known after routing has taken place.

I don't know what this plugin is used for. If you can disable it, do it. If not, you can fix it as follow:
//	--------------------------------------------------

	//function onAfterInitialise()
	public function onAfterRoute()
	{
		$this->doc = JFactory::getDocument();
		$this->is_html = ($this->doc->getType() == 'html');

		if (!$this->is_html) { return; }

Of course, I'd strongly suggest to contact the developers to inform them, so that they can fix the problem.

Rgds
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.