Skip Navigation

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

Problem:
The client is unable to review translations on their site when Elementor Pro is activated, encountering a PHP fatal error due to a missing format specifier in a translated string.
Solution:
If you're experiencing this issue, we recommend making a full backup of your website first. Then, ensure that the dynamic part of the problematic string matches the original. For example, a correct translation in German should look like this:

Sie sind eingeloggt als %1$s (%2$sLogout%3$s)

You can locate and correct this translation in WPML > String Translation by searching for "You are logged".

Please note that this solution might be outdated or not applicable to your specific 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 the issue persists, please open a new support ticket.

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 2 replies, has 2 voices.

Last updated by Lucas Vidal de Andrade 10 months, 2 weeks ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
July 23, 2024 at 1:51 pm

cathexisT

Background of the issue:
I am trying to review translations on my site hidden link. There seems to be an error with Elementor Pro. If I deactivate Elementor Pro, I can review translations, but I want to keep Elementor Pro activated. See error code: AH01071: Got error 'PHP message: PHP Fatal error: Uncaught ValueError: Missing format specifier at end of string in /var/www/vhosts/cathexisvideo.com/dev1.cathexisvideo.com/wp-content/plugins/elementor-pro/modules/forms/widgets/login.php:896
Stack trace:
#0 /var/www/vhosts/cathexisvideo.com/dev1.cathexisvideo.com/wp-content/plugins/elementor-pro/modules/forms/widgets/login.php(896): sprintf()
#1 /var/www/vhosts/cathexisvideo.com/dev1.cathexisvideo.com/wp-content/plugins/elementor/includes/base/controls-stack.php(2325): ElementorProModulesFormsWidgetsLogin->render()
#2 /var/www/vhosts/cathexisvideo.com/dev1.cathexisvideo.com/wp-content/plugins/elementor/includes/base/widget-base.php(635): ElementorControls_Stack->render_by_mode()
#3 /var/www/vhosts/cathexisvideo.com/dev1.cathexisvideo.com/wp-content/plugins/elementor/includes/base/widget-base.php(776): ElementorWidget_Base->render_content()
#4 /var/www/vhosts/cathexisvideo.com/dev1.cathexisvideo.com/wp-content/plugins/elementor/includes/base/element-base.php(483): Elem...', referer: hidden link. I am following the documentation at https://wpml.org/documentation/translating-your-contents/

Symptoms:
Unable to review translations when Elementor Pro is activated. Error: PHP Fatal error: Uncaught ValueError: Missing format specifier at end of string.

Questions:
Would you be able to assist?

July 23, 2024 at 2:21 pm
July 23, 2024 at 2:22 pm #15992860

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

Please provide me with a copy of your website. Here are the instructions:
https://wpml.org/faq/provide-supporters-copy-site/

I'm waiting for your feedback.

July 24, 2024 at 8:24 am
July 24, 2024 at 2:25 pm #15998989

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Thank you so much for sharing the copy. I was able to figure out what went on and to find a solution. There was a mistranslated string, that had dynamic values, that was causing the error. Check the image attached and compare the underlined text between the original and the translation.

To fix it, please make a full website backup and ensure that the dynamic part of the string matches the original. Here's an example of a correct translation, in German:

Sie sind eingeloggt als %1$s (%2$sLogout%3$s)

You can find this translation in WPML > String Translation. Simply search for "You are logged" and you should find it. Let me know.

String Translation _ Cathexis _ WordPress.jpeg
July 25, 2024 at 12:24 pm #16003509

cathexisT

Thank you, this fixed the error.