Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 4 replies, has 2 voices.

Last updated by Mihai Apetrei 2 months ago.

Assigned support staff: Mihai Apetrei.

Author Posts
July 20, 2021 at 10:08 pm #9240365

antonT-10

Hey! 👋

Tell us what you are trying to do?
I'm trying to get rid of the notification "It looks like languages per directories will not function. Details" in hidden link section.

It seems WPML can't validate this functionality. hidden link output is empty indeed.

Is there any documentation that you are following?
Yup, https://wpml.org/documentation/getting-started-guide/language-setup/cannot-activate-language-directories/, but I'm using NGINX and Docker setup, so documentation doesn't cover my case.

What is the link to your site?
hidden link
hidden link

Thanks!

July 21, 2021 at 2:48 pm #9246059

antonT-10

I've dug into container volume and noticed that I have "/en" directory, but I'm using languages in the directories feature only for "ru" language. So I've created "/ru" directory and now I get such validation output:

```
When WPML accesses hidden link it gets:
HTTP code: 403 (Forbidden)

The expected value is:
<!--hidden link;
```

Seems I need to perform some tweaks on NGINX but which tweaks? 🤔

July 21, 2021 at 3:18 pm #9246307

antonT-10

And yes, the functionality itself works without issues.

July 21, 2021 at 3:27 pm #9246411

antonT-10

So I resolved the issue with 403 error code and /ru directory serves well now but the main issue is still there - hidden link output is still blank.

Note that the directory has 777 permissions and the owner user is the same that used for all other WWW files.

July 21, 2021 at 10:59 pm #9248109

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

As you will see in some of the tickets that I am sharing with you below, sometimes this is simply a false positive notification showing up for various reasions and you can simply ignore it.

Also, from what I can see, the translation works fine.

Example:

EN: hidden link
RU: hidden link

Similar tickets:

- https://wpml.org/forums/topic/moved-site-to-nginx-now-it-complains-about-languages-in-directories/#post-6327471

- https://wpml.org/forums/topic/different-languages-in-directories-nginx/#post-3662999

- https://wpml.org/forums/topic/different-languages-in-directories-on-nginx/#post-2660077

I hope that you will find the information above helpful 🙂

Kind regards,
Mihai Apetrei