• Home
  • Get help
  • Ask a question
Last post 2 hours 11 min ago
Posts last week 89
Average response time last week 30 min
All time posts 67693
All time tickets 10463
All time avg. posts per day 21

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.

#3430 – 404 issues

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.
Wednesday, 22 March 2017 09:32 UTC
nicholas.dring
Hi there,
We have an issue that keeps cropping up in our site.
Our custom component called People seems to be having problems with sh404. I'm not sure if its a routing issue on our part that we haven't done properly or a setting on sh404 but I was hoping you might be able to help us out.
Lets use a url as an example for a person called Gianni Ciofani. The SEF url is https://www.xxxx.it/gianni-ciofani the correct non SEF url should be index.php?option=com_people&id=6432&lang=en&view=profile but sh404 is using index.php?option=com_people&Itemid=739&id=6432&lang=en
The id is always correct but the itemid is the 404 menu. There shouldn't be an itemid in the url.
So when this happens I correct it from the SEF URL list telling it to use index.php?option=com_people&id=6432&lang=en&view=profile and then it works fine for a short period of time, half a day maybe. Then when I go back to the SEF list I see that again the non sef url is set to: index.php?option=com_people&Itemid=739&id=6432&lang=en
I've attached some screen shots.
Wednesday, 22 March 2017 10:13 UTC
wb_weeblr
Hi

Well, this might be the problem:

There shouldn't be an itemid in the url.


The way Joomla (not sh404SEF, Joomla) works, there should always be an Itemid in the non-sef URL produces (before they are turned into SEF by Joomla or sh404SEF).

sh404 is using index.php?option=com_people&Itemid=739&id=6432&lang=en
And rightly so. Joomla cannot operate without an Itemid, and introduces one (usually the Itemid of the current page) when the Itemid is missing.

Your component absolutely must provide an Itemid when creating its non-sef URLs, or else you are bound to produce an extremely large numbers of duplicates. Granted, sh404SEF will prevent all those duplicates to become public in many cases, consolidating all those non-sef (identical except for the Itemid) into one SEF, but that's still a big waste of resource and storage.

Before you fix your component, there is one thing you can do to alleciate the problem: under the "By component" tab of sh404SEF, for you com_people component, you can tell sh404SEF to always use a specific Itemid for it:


That way, the selected Itemid will always be used, regardless of what's in the non-sef URL. That's a workaround, you should fix your component, and make sure it properly manages Joomla Itemids in the non-sef URLs it produces.

Rgds
 
Wednesday, 22 March 2017 10:39 UTC
nicholas.dring
Hi, ok great info, thanks.
So i have set it up like this. Seem ok?
Wednesday, 22 March 2017 11:29 UTC
wb_weeblr
Hi

Yes, that would be the correct workaround. Best would to fix the underlying issues in com_people! Proper Joomla operation requires in general a proper Itemid handling. If you use only one menu item to access all this content, then you'll be fine with the override.

Rgds

 
Thursday, 06 April 2017 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
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.