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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - -
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - -

Supporter timezone: Asia/Jerusalem (GMT+02:00)

This topic contains 0 replies, has 0 voices.

Last updated by hans groen 23 hours, 45 minutes ago.

Assisted by: Itamar.

Author Posts
January 8, 2025 at 5:29 pm #16574774

hans groen

Background of the issue:
I am trying to switch between languages on my site, but the switcher does not refer to translated pages. The issue can be seen on this page: hidden link.

Symptoms:
I expected to see a translated site, but instead, I got a 'page not found' error. The error log shows multiple 'Unable to authenticate' messages with status 'auth_error'.

Questions:
Why does the language switcher not refer to translated pages?
What is causing the 'Unable to authenticate' error in the logs?

January 8, 2025 at 5:46 pm #16574909

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

I can see this problem on your site.

The debug info you attached shows that your server WP Memory Limit is 40M. Our recommendations are to have the following as minimal requirements:

- PHP 7 and above (this OK with your installation) with a WP Memory Limit of at least 128MB while 256MB is recommended.

MySQL 5.6 and above.

Please follow this link for detailed documentation:

https://wpml.org/home/minimum-requirements/

Is it possible for you to change those to the minimum requirement?

You may need to contact your hosting provider for that. Meeting those baseline requirements is critical before debugging and sometimes solves issues you experience. The most important thing is to raise the WP Memory Limit. Please try to raise it before you contact your hosting company. You can do it from the wp-config.php file in your WordPress installation. Insert this code in that file:

/** Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Add it before this line:

/* That's all, stop editing! Happy blogging. */

Could you please perform that procedure and see if it helps?

If It does not help please try the following with one of the pages that has this problem.

1. Navigate to the default language content editor.

2. Use the admin bar language switcher to navigate to the secondary language content editor for the page not showing on the front end.

3. You will see a warning pop-up about editing a translation using the standard WordPress editor. Click on the Edit Anyway button.

4. In the publish meta-box click on the Update button.

5. View the secondary language page on the front end.

Do the translated page show now?

**** Important! Please make a full site backup (files and DB) before you proceed with those steps****

Regards,
Itamar.

January 8, 2025 at 7:06 pm #16575068

hans groen

I updated the mem issue. that didnt resolve the issue. [in the problem solver it does show now 256m available] so the config file is now correctly updated.

what I do see, when I followed your steps, that there are no english translation available in the overview of pages. but If i click on the translations icon in the default language [dutch] I am forwarded to the translation which is available and completed. I pressed update and then update and close. But this still didnt bring forward the translated page.

Screenshot 2025-01-08 at 20-05-42 Vertalingen ‹ Addvise — WordPress.png
Screenshot 2025-01-08 at 20-05-01 Pagina's ‹ Addvise — WordPress.png
January 9, 2025 at 7:31 pm #16579582

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

Based on the screenshot you shared, I can see that you, probably by mistake, sent those English pages to the trash section. Please see the attached screenshot. You probably need to restore them from there.

Please let me know how it goes.

Regards,
Itamar.

16575068-Screenshot_2025_01_08_at_20_05_01_Pagina_s_Addvise_WordPress.png
January 9, 2025 at 8:05 pm #16579699

hans groen

good evening
yes I saw that and I did restore the english articles. but still having issues

If I switch to english and open the blog, the page is English but the articles are dutch. If I click on one of the articles, it will open the dutch version and the entire page switches back to the dutch side.

secondly: if I go to English / dashboard/ articles and click one of the articles [open sample] it does show the english version, however not the regular visual one, but the one of with the line codes in it

so if I go to the menu in the backend, the dutch version shows nicely in the side bar, the dutch pages, but the english menu shows none.

it also odd, that the WP dashboard, which normally switches with the language by choice, remains in dutch

Screenshot 2025-01-09 at 21-03-34 Menu's ‹ Addvise — WordPress.png
Screenshot 2025-01-09 at 20-56-47 Calculate inventory indicators - Addvise.png
Screenshot 2025-01-09 at 20-56-23 Berichten ‹ Addvise — WordPress.png
Screenshot 2025-01-09 at 20-54-52 Articles - Addvise.png
January 9, 2025 at 8:33 pm #16579828

hans groen

if more practical for you: I created second user with admin rights for you to login. has not a mfa

January 12, 2025 at 2:47 pm #16585856

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

You wrote: "yes I saw that and I did restore the english articles. but still having issues"

Is the initial problem of this ticket fixed after restoring the pages from the trash section?

You wrote: "If I switch to english and open the blog, the page is English but the articles are dutch. If I click on one of the articles, it will open the dutch version and the entire page switches back to the dutch side."

I can not see this problem on your site because I don't see the Language Switcher.

Have you deactivated WPML on your site? If yes, then what is the reason for this?

You wrote: "secondly: if I go to English / dashboard/ articles and click one of the articles [open sample] it does show the english version, however not the regular visual one, but the one of with the line codes in it

so if I go to the menu in the backend, the dutch version shows nicely in the side bar, the dutch pages, but the english menu shows none."

We focus on one issue per ticket in our technical support forum. Otherwise, tickets can get cluttered and confusing for both users and supporters. Please open new tickets with those other problems.

You wrote: "it also odd, that the WP dashboard, which normally switches with the language by choice, remains in dutch"

The admin (WP dashboard) language is set in your profile Users -> Profile. It is not supposed to change when you switch the Language Switcher at the top admin bar. Please read about it in the following guide.

https://wpml.org/documentation/getting-started-guide/language-setup/setting-the-wordpress-administration-language/

If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Regards,
Itamar.