• Home
  • Get help
  • Ask a question
Last post 5 hours 24 min ago
Posts last week 191
Average response time last week 1 hour 50 min
All time posts 68187
All time tickets 10530
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.

#1002 – Error ongeneration feed RSS

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.
Tuesday, 15 September 2015 16:05 UTC
jack19
Hi,
After you upgrade your version, and version 3.4.4 of the Joomla! generating errors in the generation of RSS feeds by adding:
 <!DOCTYPE html>
before
<html xmlns:og=http://ogp.me/ns#
...
Any solutions?
Best Regards.
Gioacchino
Tuesday, 15 September 2015 16:08 UTC
wb_weeblr
Hi

1 - What's make you think this is related to sh404SEF?
2 - Please provide a link to a page where I can see this and superadmin credentials to check configuration.

Rgds
 
Tuesday, 15 September 2015 16:18 UTC
jack19
Hi,
1 - Sh404SEF disabling the feed works
2 - Username: xxxx
3 - Password: xxxx
4 - http://www.xxxx.it/feed/rss/index.html
5 - http://www.xxxx.it/joomla/feed.html?type=rss

Rgds
Tuesday, 15 September 2015 19:06 UTC
jack19


Il giorno Mar 15 Set 2015 18:08 Weeblr <[email protected]> ha scritto:

Wednesday, 16 September 2015 09:12 UTC
wb_weeblr
Hi

This is caused by your feeds having a .html suffix. Joomla 3.4+ doesn't accept that anymore.

You should not have a .html suffix at the end of your feed URLs with recent versions of sh404SEF, so I would suggest to:

- delete /feed/rss/index.html URL from the URL manager
- reload the front page of your site and check what the new RSS feed URL is (should be /feed/rss/).
- check that it works

If all ok, delete all other rss/index.html URLs and let them be recreated.

If you have a lot of RSS feeds users, then it might be better to rename those URLs from /feed/rss/index.html to /feed/rss/ manually. That way, sh404SEF will automatically create a 301 redirect from /feed/rss/index.html to /feed/rss/.

Rgds
 
Wednesday, 16 September 2015 14:46 UTC
jack19
Hi,
I followed the instructions. In the end I decided to delete all URLs to feed, but the problem has not disappeared.
eg: http://www.xxxx.it/joomla/feed/rss/ returns http://www.xxxx.it/joomla/feed/rss/?type=rss
Any other suggestions?
Rgds
Wednesday, 16 September 2015 17:19 UTC
jack19
Hi,
for Your information.

1 - Sh404SEF disabling the feed works
2 - Username: xxxx
3 - Password: xxxx
4 - http://www.xxxx.it/feed/rss/index.html
5 - http://www.xxxx.it/joomla/feed.html?type=rss
6 - http://www.xxxx.it/joomla/feed/rss/
Are some of the feed not working

To enter in admin area is needed to use HTTPS protocol : https://www.xxxx.it/administrator

Rgds
Wednesday, 16 September 2015 18:09 UTC
wb_weeblr
Hi

1 - The fact it works with sh404SEF disabled doesn't mean anything. Joomla SEF links are non-sef, they leave format=rss as a variable in the URL

2 - I have no idea why those links are created. There's something very strange, as even if I change settings in sh404SEF (like removing the html suffix) the rss and atom links are created as /feed/rss/index.html
sh404SEF never creates links like that for feeds, so I need to dig deeper. I'll take an akeeba backup and install on my local machine to be able to identify what is causing this.

Rgds
 
Wednesday, 16 September 2015 18:53 UTC
wb_weeblr
Hi

1 - problem in creating the URLs comes from the fact you assigned to add "index.html" as an index file. Therefore this index file is added to all URL that ends like a folder, ie ends with a / like the feed links.

Any reason to have that? this is something that comes from a long time ago and is just a waste of URL length. It will certainly be removed in the future from sh404SEF.

2 - Even with the correct URL created (/feed/rss/) the page still shows as html instead of xml. That's a more common problem, caused by a bug some system plugins. This time it's caused by that common bug in the Advanced Module manager system plugin.

There are 2 solutions: either disable the Advanced module manager, but I assume this wll have consequences, or apply the following fix to /plugins/system/advancedmodules/advancedmodules.php:
At line 34, comment out the lines as follow:
public function __construct(&$subject, $config)
	{
		parent::__construct($subject, $config);

		/*if (!$this->getHelper())
		{
			return;
		}

		if (!JFactory::getApplication()->isSite())
		{
			return;
		}

		$this->_helper->loadModuleHelper();
		$this->_helper->registerEvents();*/
	}


The insert this after the same metho, so that it looks like:
	public function __construct(&$subject, $config)
	{
		parent::__construct($subject, $config);

		/*if (!$this->getHelper())
		{
			return;
		}

		if (!JFactory::getApplication()->isSite())
		{
			return;
		}

		$this->_helper->loadModuleHelper();
		$this->_helper->registerEvents();*/
	}

	public function onAfterRoute()
	{
		if (!$this->getHelper())
		{
			return;
		}

		if (!JFactory::getApplication()->isSite())
		{
			return;
		}

		$this->_helper->loadModuleHelper();
		$this->_helper->registerEvents();
	}


Of course, if you can wait a bit, I'd suggest to report the issue to NoNumber, Peter is very quick at making new versions!
The short story is that he's calling JFactory::getDocument() before the onAfterRoute event, thus forcing the document type to html. This is a documented problem (here and there for instance).

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.