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
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.
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?
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/
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.