• Home
  • Get help
  • Ask a question
Last post 17 min ago
Posts last week 94
Average response time last week 34 min
All time posts 67848
All time tickets 10485
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.

#41 – Multilanguage Problem sh404 and J3.4.1

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.
Friday, 10 April 2015 17:19 UTC
asysta
 sh404 version 4.4.8.2409
Joomla 3.4.1
Url: http://xxxx.de

Plugin: System language we take the option remove url language code = yes

Problem:
German language go to
Arbeitsplatzmatten -> Polyrethanmatten -> Flex
Url = Produkte/komo-flex-ergonomische-polyurethanmatte.html

klick on english language
you will see the english translation
Url = en/products/komo-flex-ergonomic-workstation-mat.html

then klick on the german flag
Problem: 404
Url = en/Produkte/komo-flex-ergonomische-polyurethanmatte.html
thats the incorrect url

What can we do?
Friday, 10 April 2015 17:45 UTC
wb_weeblr
Hi

We've been doing quite some work this week with people with ML problems on Joomla 3.4.1. Please try this test release 4.4.9.2416 available at https://copy.com/xxxx.

In addition:

- is this a new site?
- is this Joomla regular article or other (ie K2, Zoo, Virtuemart, ...)?

Rgds

 
Saturday, 11 April 2015 06:32 UTC
asysta
I download it and install it, but no change.

we make an update from 2.5.28 to 3.4.1
I can give you an super admin access on the page if you want
at the moment its a developpping server
you can make a copy with akeeba

we use only joomla (not k2 or something else)

SAdmin Access
login: xxxx
Pw: xxxx

please give us a feedback, many thanks
Monday, 13 April 2015 09:28 UTC
wb_weeblr
Hi

The urls created by sh404SEF are correct (as you can see if you move your mouse over the flags). What's happening is that Joomla! language filter plugin is trying to redirect users (based on their browser language). It then tries to redirect to the equivalent English language URL by putting /en/ at the beginning, which of course is wrong.

I disabled that setting in Joomla, and things are good, for me at least (https://weeblr.com/images/screenshots/7SO3xetAEsn5NYMffedm3CitYWnybb.png)

Joomla! 3.4.1 has several Multilingual issues. I have not yet seen this one, but you should follow what's happening there, I'm sure next release will have several ML fixes.

Rgds
 
Monday, 13 April 2015 10:16 UTC
asysta
i test it, but i see the same result as before.
if i click in german on the product flex see in the picture and then on the next stept to english.
it works, but if i click then on the german flag it was the right url in the link that is correct but if i click on it then the url is with the en/url.... and that is false....

i try to explain:

Step1
i click on the german product flex - attachment 1

Step2
i lclick on the language flag english - everything works

step3
then i click back on the germany language flag
-> in the link its the correct url - see attachment 2
-> but when i choose the germany language flag then the url was not correct - see attachment 3




Monday, 13 April 2015 10:49 UTC
wb_weeblr
Hi

Like I said, something is redirecting your urls. I can't find what it's online, I need to step through the code. Can I take an akeeba backup to install locally on my machine?

Rgds
 
Monday, 13 April 2015 10:54 UTC
asysta
yes sure , you can make an akeeba backup
Monday, 13 April 2015 11:05 UTC
wb_weeblr
ok, I'll get back to you when I have figure it out locally

Rgds
 
Monday, 13 April 2015 16:23 UTC
wb_weeblr
Hi

So I've spent some time stepping through the code, and at this stage, I would need your help to confirm my findings. Here's what I have done:

- let's take one URL as a discussion: Produkte/komo-flex-ergonomische-polyurethanmatte.html

- I run step by step through the Joomla and sh404SEF code, and I found as I suspected that it is the Joomla! language filter plugin that is incorrectly doing a redirect from /Produkte/komo-flex-ergonomische-polyurethanmatte.html to /en/Produkte/komo-flex-ergonomische-polyurethanmatte.html
When I looked at the code, I realized this must be a bug, but it should not happen only with sh404SEF, it should happen all the times.

- so I disabled sh404SEF, and I tried again with only Joomla SEF. I had to Enable Joomla SEF, and set Joomla URL rewriting to Yes to match sh404SEF settings
When I did that, the URLs became:
- DE: /arbeitsplatzmatten/polyurethanmatten/flex
- EN: /en/polyurethane-mats/komo-flex

But now, if you hover your mose on the German flag, the gerlan URL is:
/de/arbeitsplatzmatten/polyurethanmatten/flex

So Joomla in that case is producing the wrong URL, it has a /de/ code but it shouldn't because we have "Remove language code" set to Yes.

Can you confirm you find the same?

Also, I do have waht looks like good news. Despite the Joomla! SEF not working in this case, it works fine with sh404SEF if you change the Joomla configuration as follow:

In joomla general configuration, the settings must be the same as those selected in sh404SEF:

- SEF urls: on
- URL rewriting: on

See: https://weeblr.com/images/screenshots/udzBCAnF1vuGdAL0hjvi2s5w6o51OI.png

With those settings, sh404SEF allows switching languages fine, while Joomla! SEF produces wrong urls,

Please confirm you find the same.

Rgds

 
Monday, 13 April 2015 18:13 UTC
asysta
we can confirm the first part
it works without the SH404 plugin


but we cant confirm this part
In joomla general configuration, the settings must be the same as those selected in sh404SEF:

- SEF urls: on
- URL rewriting: on

See: https://weeblr.com/images/screenshots/udzBCAnF1vuGdAL0hjvi2s5w6o51OI.png

With those settings, sh404SEF allows switching languages fine, while Joomla! SEF produces wrong urls,

============
it doesnt work, when you click on the german language flag
it appears the correct url
http://xxxx.de/Produkte/xxxx.html

but when you click on it
that url appears and produces a 404 error
en/Produkte/komo-flex-ergonomische-polyurethanmatte.html
Tuesday, 14 April 2015 07:11 UTC
wb_weeblr
Hi

We have a communication problem I think
we can confirm the first part

it works without the SH404 plugin
NO. I said the opposite. With only Joomla, it doesn't work. Joomla produces WRONG urls. And I have just reproduced on your live site, so please confirm that you see it:

- Joomla SEF is ON
- sh404SEF is DISABLED
- Go to German page: http://xxxx.de/arbeitsplatzmatten/polyurethanmatten/flex
- Switch to English: http://xxxx.de/en/polyurethane-mats/komo-flex

Look at the link on the German flag: it's WRONG:
http://xxxx.de/de/arbeitsplatzmatten/polyurethanmatten/flex

Can you see this? Then we can move forward.

Rgds


 
Tuesday, 14 April 2015 07:48 UTC
wb_weeblr
ok, I found why sh404SEF version is working on my local machine, it's because I am in a subfolder.

So the situation now is:

- With Joomla SEF, the URL produced by Joomla is wrong (has a /de/ in it), and then Joomla does a 301 redirect to the correct page after click - so you loose 5% ranking on each link
- With sh404SEF, for the moment, I cannot fight this Joomla bug. The URL produced by sh404SEF is correct, but Joomla language filter plugin does a 301 redirect to the wrong URL.

I will report the bug to Joomla team, and in the mean time, I'll try to find a way to work around it.

Rgds
 
Tuesday, 14 April 2015 07:56 UTC
asysta
I get a 404
the URLs produced by sh404 are correct bat the page we get are 404!

Take a look at the pictures

Ok, I have just seen your post!!
Tuesday, 14 April 2015 08:48 UTC
wb_weeblr
the URLs produced by sh404 are correct bat the page we get are 404!
Yes but it's because Joomla is doing a redirect from this good URL to a wrong URL, to a 404 URL

 
Tuesday, 14 April 2015 16:24 UTC
wb_weeblr
Hi

I confirmed the problem in Joomla language filter, but it'll be a long time before it can be fixed an released. I have found a way to force the language when on default language to counter this bug.
The test release available in https://copy.com/xxxx should solve your current problem.

Can you please test it as much as possible?

Rgds
 
Tuesday, 14 April 2015 16:37 UTC
asysta
i test it - it works
great

we can test it on furhter installations in the next weeks.

Thanks for so a great support...


Tuesday, 14 April 2015 17:52 UTC
wb_weeblr
No problem. Do you have Multilingual sites with Virtuemart and/or Community builder. They were the ones that caused issues in the past on ML sites.

Rgds

 
Wednesday, 15 April 2015 06:11 UTC
asysta
no sorry we doesn't have multilingual sites with virtuemart and CB.

Wednesday, 15 April 2015 07:26 UTC
wb_weeblr
Hi

OK, no problem. Hope you'll be fine now.
Closing this ticket now, if you find other issues, please open a new one as needed.

Cheers

 
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.