Skip Navigation

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

Problem:
The client is trying to translate a login page with a captcha that disappears when switching to languages other than English (the default language). The captcha is set in the theme and can be displayed via a templated page or a page builder with a shortcut.

Solution:
First, we recommended checking if any known reCAPTCHA plugins are activated and how the reCAPTCHA is enabled on the login page, whether it's an option from the theme or a third-party plugin.

We also noticed that the WordPress Memory Limit on the client's site was below the recommended threshold. We advised increasing the memory limit to at least 128M, preferably 256M, by adding the following code to the wp-config.php file:

define( 'WP_MAX_MEMORY_LIMIT', '256M' );<br />define( 'WP_MEMORY_LIMIT', '128M' );

Afterward, we suggested that if the captcha option comes from the theme, it might be possible to translate this option in the String Translation, likely within the Admin texts section. We provided a guide to help find and translate the captcha option: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/.

If the solution provided here is not relevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please do not hesitate to open a new support ticket: https://wpml.org/forums/forum/english-support/.

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 3 voices.

Last updated by Carlos Rojas 1 year ago.

Assisted by: Carlos Rojas.

Author Posts
May 1, 2024 at 9:25 am #15583503

leonidoG-2

I am trying to:
translate a login page

Link to a page where the issue can be seen:
143-dating.online/newlogin

I expected to see:
the captcha when switching to other languages
Instead, I got:
the captcha is removed when others than english (default) is selected.

May 2, 2024 at 1:34 am #15585057

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Hello,

Thank you for contacting WPML support. While awaiting assignment to one of my colleagues for assistance, let me provide you with initial debugging steps to help resolve the issue promptly.

1) Upon reviewing your debug information, I noticed that no known reCAPTCHA plugins are activated. Could you please provide details on how you enable reCAPTCHA for your login page? Is it an option from the theme or a third-party plugin?

2) Additionally, the WordPress Memory Limit on your site appears to be below the recommended threshold. The minimum requirement is 128M, although we advise setting it to 256M. Your site's debug information indicates it's set to 40M. For more information, please refer to this link: [link](https://wpml.org/home/minimum-requirements/). You can increase the memory limit by adding the following code to your wp-config.php file, just before the line /* That’s all, stop editing! Happy publishing. */:

define( 'WP_MAX_MEMORY_LIMIT', '256M' );
define( 'WP_MEMORY_LIMIT', '128M' );

After adding the code, you can confirm that the memory limit has been successfully changed from WPML > Support > WordPress > Memory limit.

May 5, 2024 at 5:42 pm #15594554

leonidoG-2

hi,

These values are already set in wp-config

Screenshot 2024-05-05 194051.png
May 5, 2024 at 6:12 pm #15594629

leonidoG-2

the captcha is set in the theme. the login (where the captcha should show) can either be displayed via a templated page or via page builder with a shortcut.

May 6, 2024 at 10:37 am #15596558

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hello,
My name is Carlos and I will continue working on this ticket

If the captcha option comes from the theme, then it might be possible to translate this option in String Translation, probably within the Admin texts section. Please follow the steps described in this guide: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/ to find and translate the captcha option.

Let me know if you need further assistance.