Skip Navigation

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

Problem:
The client couldn't access the secondary language using the language switcher on the frontend. Actually the issue wasn't the switcher, but the fact that pages were translated but not reviewed. Their status was "Draft - pending review". However the client couldn't approve them to publish them.

Solution:
In that particular case somehow the secondary language (Portuguese) wasn't map to any language anymore. I had to re-map it to "Portuguese Portugal" and resend to automatic translation.
- Go to "WPML > Languages > Edit languages"
- Check if your languages are correctly mapped and save.

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 Nicolas V. 1 year, 9 months ago.

Assisted by: Nicolas V..

Author Posts
September 7, 2023 at 12:08 pm #14359131

anthony-grahamC

I set the language switcher to drop down in the menu bar, but only the default language is displaying. This makes it impossible for people to view the site in Portuguese until this is fixed.

September 7, 2023 at 4:59 pm #14361927

Nicolas V.
Supporter

Languages: English (English ) French (Français )

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

Hello,

Welcome to the WPML support forum. I visited your site and I see that not only the language switcher is showing only English, in the source code English is also the only language.
Even when I type directly the Portuguese URL (hidden link) I get a "Result not found" which means that the page doesn't exist.

The first two reasons that could explain why Portuguese is not accesible are:
1. In "WPML > Languages > Hide languages", your secondary language is hidden. In that case it won't show on the frontend
2. Maybe all your Portuguese pages are still set as "Drafts" (not published yet). In that case as an Admin you might see them on the frontend but not your visitors.
- Go to "Pages" and use the language switcher in your top admin bar to switch to Portuguese and see your list of pages. Are your pages translated? Are they published?

September 7, 2023 at 9:29 pm #14362639

anthony-grahamC

Hi. All pages have translated except 2. The PT translation of the home page, and a page called Introduction. These two pages are in the translation queue for review, but they apparently won't translate. I provide here a screen shot. On all the other pages, the language switcher appears correctly. Thanks

Safari - Translations ‹ Vale das Lobas — WordPress 2023-09-07 at 10.24.02 PM.png
September 7, 2023 at 11:59 pm #14363071

Nicolas V.
Supporter

Languages: English (English ) French (Français )

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

Hello,

I think we found the issue then 😉

They are drafts pending review. I'm not sure what could be the issue here and why you can't approve them.

Would you be willing to provide me with a temporary admin access (wp-admin and FTP)? Preferably to a test site where the issue has been replicated – so I can further investigate.

I will activate a private field for your next answer where you can provide that information safely (this field is only visible by you and the support team). Don't share your own admin account, create a new one that you will delete when we finish troubleshooting.

IMPORTANT: Before we proceed, please backup your site and database.

September 11, 2023 at 3:04 pm #14377687

Nicolas V.
Supporter

Languages: English (English ) French (Français )

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

Hi,

Thank you for the access. There was an issue with your secondary language, somehow Portuguese wasn't map to any language anymore. I re-mapped it to "Portuguese Portugal" and resent both pages to automatic translation.

You can now access those translations without any issue to review them.

PS: Please note that I also refunded the 2280 credits used to retranslate from scratch those pages. The credits used in your Pay-as-you-go plan are the same as before my intervention (21120).

screenshot-2023.09.11-09_53_34.png
September 11, 2023 at 5:16 pm #14378719

anthony-grahamC

Hi Nicolas. Thanks for this solution. I am really pleased with your support.