• Home
  • Get help
  • Ask a question
Last post 9 hours 41 min ago
Posts last week 89
Average response time last week 30 min
All time posts 67619
All time tickets 10453
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.

#4668 – 404 conflict with other component

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, 15 February 2018 14:16 UTC
tiwi
 Hi,

I use document seller in my website. I turned of sh404sef router for this component but still it seems that the sh404sef generates a sort of conflict.

In doc seller I have made categories, about 6. The url for each document in the doc seller should be ..../catgoryname/documentname it does but it shows for all categories in the document seller component only the first top category name. So for all document in other categories it generates the wrong categoryname in the url.

Any suggestion what could cause this or how I could solve this?

Thanks Robert
Friday, 16 February 2018 13:30 UTC
wb_weeblr
Hi

I have never heard of a "Document seller" component so I can't really provide advice on how to use it with sh404SEF.

I turned of sh404sef router for this component
Which exact steps did you take to "disable" sh404SEF for that extension? Which settings did you select?

Of course, you will need to provide:

- full and exact Joomla and sh404SEF versions
- real and full URLs to pages showing the behavior

in the document seller component only the first top category name.
This makes me think that you are talking about just joomla regular articles? is this correct?

If yes, then including the "last" category in a URL is selected under the Extensions -> Joomla tab of sh404SEF configuration.
Be sure to Purge existing URLs so that new ones are rebuilt using the new configuration.

Rgds
 
Tuesday, 20 February 2018 08:33 UTC
tiwi
Thanks for your quick reply.

1- I turned of the router for this component in the sh404sef configuration, under 'general', then tab 'by component' and then 'use joomla router for this component'. Is this the correct setting?

2 - I believe you have a point with purging the urls, maybe I do it wrong. There are urls generated with the wrong category in the url but I cannot find these wrong urls in the sh404sef, I checked under SEF URLs but they are not there? is this the place to look in the sh404sef? This is also where I purged the URLs, is this the correct place to purge?

3 - the joomdonation document seller does not create articles, but it works like that, you make a category, then in this component you create a document, then in the url it should have categoryname/documentname. I attached an image with the issue, when you click the document it should go to the category 'lease agreement' but is goes to a different category (see arrow in image). When you click it does show the correct page.

I temporary created a 301 redirect in the component to have the correct url.

I will check your suggestion setting.

I use the latest joo la and sh404sef,

Thanks again for your help.
Tuesday, 20 February 2018 10:58 UTC
tiwi
additional question to above. I do not have much technical knowledge, but I tried to find the wrong urls in the mysql database, but there are thousends? of links in the table sh404sef_urls. Shall I delete all these urls directly in the mysql database?
Tuesday, 20 February 2018 11:26 UTC
wb_weeblr
Hi

Shall I delete all these urls directly in the mysql database?
You should never do anything directly in the database. Never. With any extension. That will put the database in an unstable, corrupted state, because the data stored in multiple tables or cached is not in sync anymore.
We can exceptionally tell you to do that but again that would be totally exceptional, after we told you do so and after we tried everything else.

1 -
1- I turned of the router for this component in the sh404sef configuration, under 'general', then tab 'by component' and then 'use joomla router for this component'. Is this the correct setting?
Yes, this will disable sh404SEF for this component.

2 -
There are urls generated with the wrong category in the url but I cannot find these wrong urls in the sh404sef, I checked under SEF URLs but they are not there? is this the place to look in the sh404sef?
If you set this component to "Use Joomla router", then sh404SEF is not used at all. So URLs are not stored in our database, we simply do not see them or change them. If URLs are generated with "wrong categories", then it's happening in the component not in sh404SEF.

3 - the joomdonation document seller does not create articles, but it works like that, you make a category, then in this component you create a document, then in the url it should have categoryname/documentname. I attached an image with the issue, when you click the document it should go to the category 'lease agreement' but is goes to a different category (see arrow in image). When you click it does show the correct page.

Please see item 2.

At this stage, the only thing I can advise is that you update to the latest development version, available from the development versions download area. This will have all the fixes for minor issues we have found since last version.

Another thing to do of course is to compare URLs with and without sh404SEF enabled (ie set "Enable URL optimization" to "No"). You can then select one single URL and take not of the URL with and without sh404SEF. This might give some useful information.

PS: I did not ask but you are using Joomla 3.8.5 right?

Rgds
 
Tuesday, 20 February 2018 12:03 UTC
tiwi
Thank your for the reply.

Maybe I can ask you a short question? I tried to solve this issue by creating a direct menu link to a document. This did not solve the problem and I deleted the menu link again. But now instead of the wrong category in the url it has created a totally different url, see image attached. Maybe this says something to you why this happens and why when I delete cache it still exists? My knowledge is to limited.

Tuesday, 20 February 2018 14:17 UTC
wb_weeblr
Hi

First, as mentioned before, sh404SEF does not create those URLs so it's hard to comment.

Second, which exact Joomla version are you using? 3.8.5?

Maybe this says something to you why this happens and why when I delete cache it still exists? My knowledge is to limited.
I think I remember URLS with this format (2017-XX-XX...) created by Joomla sometimes when the menu link is of type "System Links" -> Menu item alias.

Rgds
 
Tuesday, 20 February 2018 15:34 UTC
tiwi
Thanks. I use the latest 3.8.5 joomla version.

Before I contacted you about this issue I asked support from joomdonation who developed the document seller component. At first he fixed the issue and gave me this answer:

"That URL was cached by sh404

I removed it from sh404 and it is working OK now

Please go to your site to check it and confirm

Regards,"


That worked for some time. I continued working on the website, including changing the settings for this component in the sh404sef to joomla router so it would not affect the urls in the future, but at the same time the url error came back.

It was previously solved by deleting the urls in the sh404sef component, so I tried to find the urls again in the sh404sef but could not find them??

Then I thought lets delete these urls in the mysql, they must be somewhere, but there are thousands of urls in the mysql, I believe I have to go through 7500 urls in the sh404sef, urls going back when the website was a simple html website!

I was hoping you would know what could cause this issue, especially because at first it was solved when the wrong urls were deleted for the sh404sef component. I don't know how these urls are generated or why it picks the top category when creating an url for these documents.

It is workable but if you have another suggestion thanks in advance,

Best regards

Robert



Tuesday, 20 February 2018 16:12 UTC
wb_weeblr
Hi

so I tried to find the urls again in the sh404sef but could not find them??
Which means sh404SEF is not taking care of those URLs. All the URLs processed by sh404SEF are stored in the database. We have no other way of managing URLs.

Then I thought lets delete these urls in the mysql, they must be somewhere,
No, if it's not displayed in the URL manager, it's not managed by sh404SEF.

I would suggest the following:

- in the URL manager, use the "Component" filter displayed on the left side to only display URLs for this component
- it should be empty, but if there are some URLS left over, then just delete them now.

Rgds
 
Wednesday, 07 March 2018 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.