This thread is resolved. Here is a description of the problem and solution.
Problem:
You are trying to add translations to strings in WPML, but encounter an error even after increasing the memory limit, clearing the WPML cache, and updating all plugins. Specifically, when you attempt to add a translation with '0', it fails unless you add a space after the '0'.
Solution:
We recommend the following steps to resolve this issue:
1. Create a full backup of your site.
2. Connect to your site via FTP.
3. Navigate to
wp-content/plugins/wpml-string-translation/classes/string-translation-ui/ajax/SaveTranslation.php
and locate the method
\WPML\ST\Main\Ajax\SaveTranslation::run
.
4. Modify the line from:
if ( $id && $translation && $lang ) {
to:
if ( $id && isset($translation) && $lang ) {
5. Save the changes and verify if the issue is resolved.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, 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 at WPML support forum for further assistance.
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.