Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
i noticed a possible bug in WPML, using custom ajax queries. So basically if you go on this page: https://nextcloud.com/fr/?page_id=202641&preview=true&_ppp=f4e03f21cd you see that the language is french and listing the latest blog posts (french when translation is available, if not default english

Solution:
Actually, no need for the access, Sorry for the noise.
I just noticed it was a problem on my server and not in the code. I had the "Referrer policy" set on "no-referrer" and, weirdly enough, that was the issue. After changing it to "same-origin" it all worked well.
Not sure if this is something for you to mention in your documentation.
Thanks a lot!

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.

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Lauren 8 months, 4 weeks ago.

Assisted by: Lauren.

Author Posts
March 1, 2024 at 8:42 pm #15364954

vanessaS-12

i noticed a possible bug in WPML, using custom ajax queries. So basically if you go on this page: hidden link you see that the language is french and listing the latest blog posts (french when translation is available, if not default english

March 1, 2024 at 9:39 pm #15364978

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Thanks for your patience while I continued troubleshooting. I used a plugin from the repository to display the Load More button and as you can see on the test site, it loads more posts in Spanish even if the posts have not been translated. There are two Spanish blog posts, Blog post 1 and Blog Post 10, that have been translated. As you use the load more button in the Spanish blog page, you will see when you get to those posts, you see the "ES" in the blog post title for the ones that have been translated. All the rest are showing the English title without the "ES" because they are falling back to default.

English blog page: hidden link
Spanish blog page: hidden link

So I don't think the issue is a general bug with WPML, otherwise it would not load Engish (default) posts for the Spanish blog page.

March 4, 2024 at 7:55 am #15367785

vanessaS-12

I would need access to your installation to see which plugin was used, if there are the same settings i have, etc.
Thank you!

March 4, 2024 at 3:33 pm #15370729

vanessaS-12

Actually, no need for the access, Sorry for the noise.
I just noticed it was a problem on my server and not in the code. I had the "Referrer policy" set on "no-referrer" and, weirdly enough, that was the issue. After changing it to "same-origin" it all worked well.
Not sure if this is something for you to mention in your documentation.
Thanks a lot!

March 5, 2024 at 5:47 pm #15375994

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Thanks for letting me know how you got it resolved, and glad it is working as expected now. Don't hesitate to open up a new chat if you come across any issues with WPML, we will be happy to help.