Skip to content Skip to sidebar

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
- 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 -
- 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 -

Supporter timezone: Asia/Kathmandu (GMT+05:45)

Tagged: 

This topic contains 5 replies, has 0 voices.

Last updated by Shekhar Bhandari 1 week, 6 days ago.

Assisted by: Shekhar Bhandari.

Author Posts
April 16, 2026 at 5:05 am #17972712

Trevor

Hi - we've been getting a lot of error like this on our client's site:

[error] 97426#97426: *216633 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ArgumentCountError: 52 arguments are required, 2 given in /www/sanctions_316/public/wp-content/plugins/wpml-string-translation/classes/translations-file-scan/wpml-st-translations-file-registration.php:128

Seems to happen 20 times a day or so. Any way of fixing it?

Thank you!

April 16, 2026 at 7:12 am #17972926

Trevor

Thanks for any advice.

April 17, 2026 at 6:01 am #17975848

Trevor

Hello - we were still getting these errors yesterday, after downgrading to PHP 8.3 as advised by you.

2026.04.16. 18:40:02
[error] 55606#55606: *303907 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ArgumentCountError: 52 arguments are required, 2 given in /www/sanctions_316/public/wp-content/plugins/wpml-string-translation/classes/translations-file-scan/wpml-st-translations-file-registration.php:128
2026.04.16. 18:33:32
[error] 55606#55606: *303472 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ArgumentCountError: 52 arguments are required, 2 given in /www/sanctions_316/public/wp-content/plugins/wpml-string-translation/classes/translations-file-scan/wpml-st-translations-file-registration.php:128
2026.04.16. 18:32:35
[error] 55606#55606: *303401 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ArgumentCountError: 52 arguments are required, 2 given in /www/sanctions_316/public/wp-content/plugins/wpml-string-translation/classes/translations-file-scan/wpml-st-translations-file-registration.php:128

April 17, 2026 at 2:58 pm #17977159

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

To get a better understanding, I suggest sharing a backup of your wp-content folder and your database. You can zip the files and send them to me via Google Drive. With these, I can set up a local copy of your site and take a closer look at the issue.

Look forward to your reply.

Thanks

April 20, 2026 at 1:56 pm #17981289

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Thank you for the details. I have passed it to our 2nd tiers.

Thanks

April 21, 2026 at 2:39 am #17982395

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hi,

Thank you for your cooperation so far — we really appreciate your willingness to help us investigate this further.

After reviewing the situation with our second-tier team, it appears that this issue is not affecting other users. This suggests that there may be something specific within your site setup that is triggering the problem.

To help us move this forward (and involve our development team if needed), we’ll need a few concrete examples of the strings or values that are causing the error.

Could you please assist us by capturing and sharing those problem strings? To make this easier, we recommend temporarily updating your code to log the relevant values when the error occurs. You can use the following modification:

function private save_file_info( $original_domain, $registration_domain, $file_path)
{
    try {
        $file_path_pattern = $this->get_file_path_pattern($file_path, $original_domain);
        foreach ($this->active_languages as $lang_data) {
            // Escape literal % signs that aren't sprintf placeholders
            $safe_pattern      = preg_replace('/%(?![a-zA-Z%])/', '%%', (string) $file_path_pattern);
            $file_path_in_lang = sprintf($safe_pattern, $lang_data['default_locale']);
            $this->register_single_file($registration_domain, $file_path_in_lang);
        }
    } catch (\Throwable $e) {
        // Catches both Exception and Error (including ArgumentCountError)
        error_log( print_r($file_path_pattern, true) );
    }
    return true;
}

This will log the specific file path patterns that trigger the error, which will be extremely helpful for our investigation.

Once you have a few examples from the logs, please share them with us. With that information, we’ll be in a much better position to escalate this to our developers if required.

Look forward to your reply.

Best regards