Skip to content Skip to sidebar

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

Problem:
The client is experiencing frequent fatal errors due to an ArgumentCountError in the WPML String Translation plugin. Additionally, there are issues with the automatic translation of the homepage into Bulgarian using DeepL, where certain sections like the video title, footer, and contact form are not displayed correctly.

Solution:
For the fatal error, it appears to be a bug related to the sprintf function in the WPML String Translation plugin, which misinterprets URL-encoded characters as formatting placeholders. We recommend creating a staging copy of the site and providing access to our support team for further investigation and to potentially escalate the issue.

Regarding the homepage translation issues, these are likely due to the ACF configuration. The homepage must be translated manually using the WordPress Editor, not via the Translation Editor, due to the ACF configuration settings. Specific steps include translating the footer menu and contact forms as outlined in our guides (Translating Menus and Using Contact Form 7 with WPML). Additionally, ensure all images and logos are set to copy for the slider to function correctly in the translated version.

If these solutions do not resolve the issues or if they seem outdated or irrelevant to your case, please open a new support ticket. We highly recommend checking related known issues (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. For further assistance, visit our support forum at WPML Support Forum.

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

Last updated by Carlos Rojas 3 weeks, 3 days ago.

Assisted by: Carlos Rojas.

Author Posts
April 28, 2026 at 9:05 am #17999102

sebastianB-37

I'm getting this kind of error frequently, can you please investingate. I have already updated all the plugins and themes and core files. still getting the error.

A fatal error occurred on hidden link

Error Type: 1
Message: Uncaught ArgumentCountError: 66 arguments are required, 2 given in /bitnami/wordpress/wp-content/plugins/wpml-string-translation/classes/translations-file-scan/wpml-st-translations-file-registration.php:128
Stack trace:
#0 /bitnami/wordpress/wp-content/plugins/wpml-string-translation/classes/translations-file-scan/wpml-st-translations-file-registration.php(128): sprintf()
#1 /bitnami/wordpress/wp-content/plugins/wpml-string-translation/classes/translations-file-scan/wpml-st-translations-file-registration.php(87): WPML_ST_Translations_File_Registration->save_file_info()
#2 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(343): WPML_ST_Translations_File_Registration->cached_save_mo_file_info()
#3 /opt/bitnami/wordpress/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#4 /opt/bitnami/wordpress/wp-includes/l10n.php(769): apply_filters()
#5 /bitnami/wordpress/wp-content/plugins/wpml-string-translation/classes/TranslateWpmlString.php(152): load_textdomain()
#6 /bitnami/wordpress/wp-content/plugins/wpml-string-translation/classes/TranslateWpmlString.php(90): WPML\ST\TranslateWpmlString->loadTextDomain()
#7 /bitnami/wordpress/wp-content/plugins/wpml-string-translation/classes/TranslateWpmlString.php(178): WPML\ST\TranslateWpmlString->WPML\ST\{closure}()
#8 /bitnami/wordpress/wp-content/plugins/wpml-string-translation/classes/TranslateWpmlString.php(111): WPML\ST\TranslateWpmlString->withMOLocale()
#9 /bitnami/wordpress/wp-content/plugins/wpml-string-translation/classes/TranslateWpmlString.php(66): WPML\ST\TranslateWpmlString->translateByMOFile()
#10 /bitnami/wordpress/wp-content/plugins/wpml-string-translation/inc/functions.php(270): WPML\ST\TranslateWpmlString->translate()
#11 /bitnami/wordpress/wp-content/plugins/wpml-string-translation/inc/package-translation/inc/wpml-package.class.php(284): icl_translate()
#12 /bitnami/wordpress/wp-content/plugins/wpml-string-translation/inc/package-translation/inc/wpml-package-translation-helper.class.php(235): WPML_Package->translate_string()
#13 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(341): WPML_Package_Helper->translate_string()
#14 /opt/bitnami/wordpress/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#15 /bitnami/wordpress/wp-content/plugins/acfml/classes/Strings/Package.php(153): apply_filters()
#16 /bitnami/wordpress/wp-content/plugins/acfml/classes/Strings/Transformer/Translate.php(27): ACFML\Strings\Package->translate()
#17 /bitnami/wordpress/wp-content/plugins/acfml/classes/Strings/Traversable/Entity.php(60): ACFML\Strings\Transformer\Translate->transform()
#18 /bitnami/wordpress/wp-content/plugins/acfml/classes/Strings/Traversable/Entity.php(45): ACFML\Strings\Traversable\Entity->transform()
#19 /bitnami/wordpress/wp-content/plugins/acfml/classes/Strings/Translator.php(58): ACFML\Strings\Traversable\Entity->traverse()
#20 /bitnami/wordpress/wp-content/plugins/acfml/classes/Strings/FieldHooks.php(97): ACFML\Strings\Translator->translateGroup()
#21 [internal function]: ACFML\Strings\FieldHooks->translateGroup()
#22 /bitnami/wordpress/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(358): call_user_func_array()
#23 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(341): WPML\FP\Fns::WPML\FP\{closure}()
#24 /opt/bitnami/wordpress/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#25 /bitnami/wordpress/wp-content/plugins/advanced-custom-fields-pro/includes/post-types/class-acf-field-group.php(152): apply_filters()
#26 /bitnami/wordpress/wp-content/plugins/advanced-custom-fields-pro/includes/class-acf-internal-post-type.php(369): ACF_Field_Group->get_post()
#27 /bitnami/wordpress/wp-content/plugins/advanced-custom-fields-pro/includes/acf-internal-post-type-functions.php(157): ACF_Internal_Post_Type->get_posts()
#28 /bitnami/wordpress/wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-group-functions.php(127): acf_get_internal_post_type_posts()
#29 /bitnami/wordpress/wp-content/plugins/advanced-custom-fields-pro/includes/rest-api/class-acf-rest-api.php(457): acf_get_field_groups()
#30 /bitnami/wordpress/wp-content/plugins/advanced-custom-fields-pro/includes/rest-api/class-acf-rest-api.php(129): ACF_Rest_Api->get_field_groups_by_object_type()
#31 /bitnami/wordpress/wp-content/plugins/advanced-custom-fields-pro/includes/rest-api/class-acf-rest-api.php(92): ACF_Rest_Api->get_schema()
#32 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(341): ACF_Rest_Api->register_field()
#33 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()
#34 /opt/bitnami/wordpress/wp-includes/plugin.php(522): WP_Hook->do_action()
#35 /opt/bitnami/wordpress/wp-includes/rest-api.php(636): do_action()
#36 /opt/bitnami/wordpress/wp-includes/rest-api.php(460): rest_get_server()
#37 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(341): rest_api_loaded()
#38 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()
#39 /opt/bitnami/wordpress/wp-includes/plugin.php(570): WP_Hook->do_action()
#40 /opt/bitnami/wordpress/wp-includes/class-wp.php(418): do_action_ref_array()
#41 /opt/bitnami/wordpress/wp-includes/class-wp.php(821): WP->parse_request()
#42 /opt/bitnami/wordpress/wp-includes/functions.php(1343): WP->main()
#43 /opt/bitnami/wordpress/wp-blog-header.php(16): wp()
#44 /opt/bitnami/wordpress/index.php(17): require('...')
#45 {main}
thrown
File: /bitnami/wordpress/wp-content/plugins/wpml-string-translation/classes/translations-file-scan/wpml-st-translations-file-registration.php
Line: 128

Time: 2026-04-28 08:00:16

What caused the issue?
In /wp-content/plugins/wpml-string-translation/classes/translations-file-scan/wpml-st-translations-file-registration.php around line 128, WPML uses the sprintf function to inject the language locale (like en_US) into a translation file path.

If the file path it is scanning happens to naturally contain % symbols (e.g., %20 for spaces or other URL-encoded characters), sprintf mistakenly interprets these as formatting placeholders that require arguments. Since the path being scanned had 65 % characters and sprintf was only provided with 1 argument (the locale), it threw an ArgumentCountError: 66 arguments are required, 2 given and crashed your site.

--> it would be great if you fix the issue from the plugin and release the patch officially. thanks.

April 28, 2026 at 12:57 pm #17999841

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hello,
Thank you for contacting us.

I agree that this looks like a possible bug in our code. However, before I can escalate it to our 2nd-tier support team, we need to reproduce the issue and document the exact steps.

Could you please do the following?

1.- Create a staging copy of the live site and share temporary WordPress admin and FTP/SFTP access in your next reply. I have enabled the private reply fields for this.

Alternatively, you can share access to the live site and explicitly authorize us to create a copy for debugging.

2.- Please describe the exact step-by-step process to trigger the error on the site.

3.- Share the site’s debug information following this guide:
https://wpml.org/faq/provide-debug-information-faster-support/

Once we have this information, we can investigate further and escalate it properly if confirmed.

Kind regards,
Carlos

May 8, 2026 at 4:52 am #18021583

sebastianB-37

Apologies for the late reply. Let’s leave that issue for now, as I currently have another priority issue.

Could you please check the Bulgarian version of the homepage:
hidden link

I used DeepL auto-translation for the homepage content in Bulgarian, but some sections are not being translated or displayed correctly. For example:

* Video section title and description are missing
* Footer area is empty
* Contact form is not showing
* Some other content is still untranslated

Could you please check why the entire page translation is not appearing properly?

Site should not go down, please take care of it.
[REMOVED]

so when WPML >> Translation Dashboard >> Pages >> select Home >> and translate the page using credits. it translate successfully but some pasrt are missing.

May 8, 2026 at 10:55 am #18022534

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi there,

To translate the homepage, you have to use the WordPress Editor (manual translation) due to the ACF configuration. In this link, you can translate/update the translation of the Bulgarian version: hidden link

Note: I had to remove the credentials you shared because they were publicly accessible.

May 9, 2026 at 6:46 am #18024071

sebastianB-37

Before I have only two language but now I want 10+ language to translate so it will take too much time to manually translate.

what should I do if I want to translate homepage auto using DeepL?

Also please check the (ACF > Field Groups), around 86 Field Groups, and almost every group is duplicated 2 or 3 times (e.g., three copies of "Article Single", three copies of "Case Studies", three copies of "About Us").

Why this happened?

May 9, 2026 at 11:57 am #18024378

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi there,

I kindly ask you to focus on solving one issue. As per the support forum's policies, we can only solve one issue per ticket; new issues will require me to split the tickets to handle them individually.

To answer your latest question: I don't know exactly what steps you followed to set up the ACF groups, but the behavior you are describing corresponds to changing the ACF Group custom post type from translatable to non-translatable in WPML -> Settings -> Post type translations.

May 11, 2026 at 4:44 am #18025656

sebastianB-37

Previously, I was using manual translation, but now I want to use auto-translation. The problem is that it’s still not translating properly. Please provide the best approach for handling translations so I can translate pages efficiently into 10+ languages.

May 11, 2026 at 8:39 am #18026324

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi,

The best approach to translate the content into 10 languages is by following the steps described in this guide: https://wpml.org/documentation/automatic-translation/translate-everything-automatically/

Best regards,
Carlos

May 12, 2026 at 1:53 pm #18030782

sebastianB-37

It's not technical answer, can you please forward me to a technical so my issue can understand that why particular section are not tanslating?

May 13, 2026 at 8:40 am #18032183

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi,
I'm the technical person.

In each message, you have asked different questions, and I explained that we can only solve one issue per ticket. I kindly ask you again to focus on only one issue that we can solve in this ticket, and then we can move on with the other issues or questions you may have.

Your latest message seems to be related to another problem, or lacks context to understand precisely what is the section you are referring to.

Could you please read the messages in this ticket and elaborate more on your latest message so I can have a better understanding? What section are you referring to? What technical explanation are you looking for?

May 13, 2026 at 1:29 pm #18033385

sebastianB-37

Could you please check the Bulgarian version of the homepage:
hidden link

I used DeepL auto-translation for the homepage content in Bulgarian, but some sections are not being translated or displayed correctly. For example:

* Video section title and description are missing -
German Page: hidden link
Bugarian Page missing: hidden link

* Footer area is missing some menus -
German Page Footer: hidden link
Bulgarian Page Footer: hidden link

* Contact form is not showing:
German Contact Form: hidden link
Bulgarian Page missing Contact form: hidden link

* Slider section above the footer in German: hidden link
* Slider section above the footer in Bulgarian is missing: hidden link

Could you please check why the entire page translation is not appearing properly?

so when WPML >> Translation Dashboard >> Pages >> select Home >> and translate the page using credits. it translate successfully but some pasrt are missing.

German Homepage: hidden link
Bulgarian Homepage: hidden link

May 13, 2026 at 4:30 pm #18033963

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi there,
Thank you for your detailed message.

1.- When editing the homepage in German (default language), I can't find the section missing on the Bulgarian version, the one starting with "Für ein großes Bauteilspektrum: Zwölf Modelle".

Can you tell me where I can edit that content in German?

2.- You can translate the footer menu into these links:
- hidden link
- hidden link
- hidden link
- hidden link

By following the steps described in this guide: https://wpml.org/documentation/getting-started-guide/translating-menus/

Let me know if you find any issues with these steps.

3.- To translate and show the contact forms created with Contact Form 7, you need to:
- Go to WPML -> Translation Dashboard -> Contact Forms section -> Select and translate the form
- Then you need to edit the homepage in the secondary language (for example, in Bulgarian: hidden link) -> Paste the contact form shortcode in their respective fields

I recommend that you read this simple guide: https://wpml.org/documentation/related-projects/using-contact-form-7-with-wpml/, which explains the steps to follow.

4.- There is a JavaScript error in the console when visiting the Bulgarian version of the homepage that seems to be related to the slider. The first step is to set all the logos and image files to copy (I tried to set most of them) and make sure the Bulgarian version contains the images so the slider can work correctly.

If you continue seeing this issue after the steps mentioned above, then we will take a look at this separately.

Summarizing: Yes, some parts of the translated homepage are missing because they are set to be non-translatable or copy-once. Also, the homepage must be translated manually, not via the Translation Editor. When you edit the homepage in German: hidden link, you will find an alert message at the top that reads: "You need to translate this post manually because the field groups attached to it use different translation options." and it is because of the ACF configuration.

I kindly recommend you start by reading this guide: https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/ because your homepage depends on the configuration of the ACF.