This thread is resolved. Here is a description of the problem and solution.
Problem: If you're trying to remove unused translated strings in WPML's String Translation and observe that after selecting domains and confirming removal, the strings are not deleted and the count remains unchanged, you might suspect a plugin issue. Solution: We have conducted extensive testing and confirmed that only untranslated strings can be removed using the Remove strings by domain feature. Translated strings must be deleted from the String Translation panel. If you're facing issues with menu strings, it may be due to menu syncs. For a visual guide.
If this solution doesn't seem relevant to your situation, please open a new support ticket with us and we'll be happy to assist you further.
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.
When I try to remove the unused translated strings on the WPML string translation. I selected the list of domains to remove and clicked the enter, the popup message shows all the strings are removed but it's the strings are not removed and it's showing the same count after removing strings.
Welcome to the WPML support forum. I will do my best to help you to resolve the issue.
Please upgrade to the latest version of WPML(4.6.7) after a full site backup{mandatory} and make sure the issue exists or not.
If the problem remains, please share with us the WordPress debug.log(not WPML debug information) to collect more details on this. Refer to these pages for instructions
To enable the WordPress Debug log, open your wp-config.php file of site root and look for define('WP_DEBUG', false);. Change it to:
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
In this case, the errors will be saved to a debug.log log file inside the */wp-content/* directory. Please do the steps to reproduce the bug and check if you are getting any errors or warnings related to WPML in the log file.
If you can paste your debug.log to http://pastebin.com/index.php and provide me that link it would be great! (This is the cleanest way because sometimes the logs are long and create a complete mess of discussion).
Thank you for the updates and Debug log details. The Debug log is showing the following notice related to WPML. But it will not cause this bug.
PHP Deprecated: Creation of dynamic property WPML_LS_Menu_Item::$current_item_parent is deprecated in
So a couple of requests for tracking this issue.
1) Please let us know more about the string domains you are trying to remove
2) Please fill the private details fields after a full site backup{mandatory}. I would like to access the admin area of your site for further checking. Refer to the following links for more details about our private information sharing policies.
Thank you for the updates and login information. I can reproduce the issue on your site. Maybe you are facing this issue because of compatibility conflicts. So to make sure if possible, please do the following steps. It will help us in debugging.
a) Backup your site first[Mandatory]
b) Switch for a moment to a WordPress default theme like 2023
c) Deactivate all the plugins that are not related to WPML except WooCommerce
d) Then check whether the issue exists or not
Thank you for the updates. Please allow me to make a duplicator copy of your site using the Duplicator plugin(https://wordpress.org/plugins/duplicator/) for debugging the issue on my local server.
The bug exists in our local copy after the initial troubleshooting steps. So consulting with our second-tier team for the expert opinion. We will get back to you soon. Please wait.