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.

Tagged: 

This topic contains 7 replies, has 2 voices.

Last updated by Andrey 1 year, 2 months ago.

Assisted by: Andrey.

Author Posts
October 26, 2023 at 9:34 am #14668703

asenV

I am trying to: translate a subsite on a multisite install and almost done it, but started to get String translation addon related fatal errors.

Link to a page where the issue can be seen:
hidden link

I expected to see: After the fatal error only way to fix the website was to disable String translation plugin, so I did that and now it's disabled. When I enable it, site crashes. Tried deleting and installing it anew, same thing.

Instead, I got: [26-Oct-2023 09:26:06 UTC] PHP Fatal error: Uncaught ValueError: Unknown format specifier "t" in /var/web/site/public_html/wp-content/plugins/wpml-string-translation/classes/translations-file-scan/wpml-st-translations-file-registration.php:100

October 26, 2023 at 8:48 pm #14674347

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Thank you for contacting WPML support.

I suspect that one of the plugins on your installation has the .mo or .po file that contains an incorrect translation, and when WPML String Translation scans those files, it gives a fatal error.

Try the following:
– Deactivate temporary all the plugins
– Download fresh copies of WPML and WPML String Translation from https://wpml.org/account/downloads/
– Delete current WPML plugins and install new
– Activate WPML plugins first
– Then, one by one, activate the rest of the plugins

Let me know how it goes.

October 27, 2023 at 9:23 am #14676695

asenV

Hi! I followed your instructions strictly, but when I enable a plugin which has something, that has been translated by String translation, I get the critical error again. So I had to disable String translation add-on again. Any other ideas?

October 27, 2023 at 1:14 pm #14679487

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Thank you for updating me. Is there a specific plugin that gives an error? Or if you enable any of the plugins?

October 27, 2023 at 1:17 pm #14679497

asenV

Any of the plugins that have some strings translated by String translation. I tried the suggested process 3 times, enabling plugins in different order. The fatal error came from a different plugin every time, but I know eqch of the 3 I have been translating before.

October 30, 2023 at 8:18 pm #14694971

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

I’m sorry that you ran into trouble with this. I need to request temporary access (wp-admin and FTP) to your site – preferably to a test site where the problem has been replicated if possible – in order to be of better help. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

November 1, 2023 at 2:54 pm #14708461

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

I got the access details. I will take a look and update you here as soon as I know more.

November 1, 2023 at 7:52 pm #14710925

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

I appreciate your patience. We have reported this case to our development team. As a temporary solution, the following is done (on /eu subsite):

– Go to /wp-content/plugins/wpml-string-translation/classes/translations-file-scan/wpml-st-translations-file-registration.php, on line 119, right after this line

$file_type = isset( $pathinfo['extension'] ) ? $pathinfo['extension'] : null;

was added

$file_path = str_replace('%', '', $file_path);

– Saved

I hope this matter will be addressed in upcoming releases with any necessary improvements.