Skip Navigation

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

Problem:
You are experiencing issues with form submission on the French version of your site, receiving a syntax error and a PHP fatal error related to the duracell-tomi-google-tag-manager plugin.
Solution:
We recommend the following steps to resolve the issue:
1. Navigate to

/wp-content/languages/plugins/duracelltomi-google-tag-manager-fr_FR.mo

2. Delete the .mo file.
3. Check the directory at

/wp-content/languages/wpml/

for any anomalies.

If this solution does not resolve your issue or seems outdated, 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 problem 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 3 replies, has 0 voices.

Last updated by Andrey 1 week, 6 days ago.

Assisted by: Andrey.

Author Posts
May 27, 2025 at 1:45 pm #17079003

christopheV-5

Background of the issue:
I am trying to use my form on the French version of my site, but it doesn't work. I get a warning and an error message. I found these two related tickets: https://wordpress.org/support/topic/fatal-error-uncaught-valueerror-unknown-format-specifier-s-2/ and https://wpml.org/errata/php-8-php-fatal-error-uncaught-valueerror-unknown-format-specifier-in/. The issue can be seen on this page: hidden link. (i've hidden the form untill the bug is fixed)

Symptoms:
An unexpected error occurred with a warning: 'Form submission error: SyntaxError: Unexpected token '<', "<p>Il y a "... is not valid JSON'. Additionally, there is a PHP Fatal error: 'Uncaught ValueError: Unknown format specifier "$"' in the file '/domains/ase.be/public/wp-content/plugins/duracelltomi-google-tag-manager/admin/admin-tab-basicdata.php:149'.

Questions:
What is a try catch?
How can I fix the form submission error?

May 27, 2025 at 2:55 pm #17079344

Andrey
WPML Supporter since 06/2013

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

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

Thank you for contacting WPML support.

It looks like the .mo file contains the incorrect translation of the duracell-tomi-google-tag-manager plugin.

Have you tried to do the following?

1. Go to /wp-content/languages/plugins/duracelltomi-google-tag-manager-fr_FR.mo
2. Delete the file
3. Also, check the location /wp-content/languages/wpml/

June 3, 2025 at 8:26 am #17100799

christopheV-5

I deleted both files, but the error still occurs

I've put it on a testpage for you:
hidden link

Kind regards

June 3, 2025 at 8:57 am #17100926

Andrey
WPML Supporter since 06/2013

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

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

Thank you for your feedback.

Please update your WPML plugin and add-ons to the latest version, 4.7.6, to benefit from the latest bug fixes and improvements. This may not necessarily resolve your problem; however, we need to work on the newest code available to troubleshoot the issue best.

You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/

If you do not see the updates, you might need to click the Check for updates button in the Plugins → Add New Plugin → Commercial tab.

Please make sure that the other related plugins to the forms are updated.

Remember to backup your database before you proceed.

Let me know if the issue persists after an update has been done.