Skip Navigation

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.

Tagged: 

This topic contains 21 replies, has 2 voices.

Last updated by Bigul 1 year, 2 months ago.

Assisted by: Bigul.

Author Posts
October 30, 2023 at 10:30 pm #14695657

ericH-40

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.

I think there might be a problem on the plugin.

Screenshot 2023-10-31 at 3.56.49 AM.png
October 31, 2023 at 9:17 am #14697783

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

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

https://wpml.org/documentation/support/debugging-wpml/

https://wordpress.org/documentation/article/debugging-in-wordpress/

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).

--
Thanks!

Bigul

October 31, 2023 at 1:17 pm #14700009

ericH-40

Sure, Let me check it and update you.

October 31, 2023 at 3:46 pm #14701965

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the updates. Take your time. We will wait for your feedback.

--
Thanks!

Bigul

November 1, 2023 at 3:14 pm #14708633

ericH-40

I have updated the plugin to the latest version but it's not worked.

Here's the debug.log info https://pastebin.com/NNHCyU8s

November 1, 2023 at 3:58 pm #14708995

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

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.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

hidden link

--
Thanks!

Bigul

November 2, 2023 at 10:22 am #14715077

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

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

--
Thanks!

Bigul

November 2, 2023 at 1:05 pm #14716889

ericH-40

Sure, Let me check it.

November 2, 2023 at 7:44 pm #14720843

ericH-40

Planning to create a staging instance and debug their would help us to find a solution.

November 3, 2023 at 2:45 am #14721951

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the updates. It will help us a lot in debugging and also our testing will not affect your live site. We wait for your feedback.

--
Thanks!

Bigul

November 9, 2023 at 2:51 pm #14768609

ericH-40

Hi Bigul,

I have changed to the default theme and deactivated most of the plugins but still, it's not working.

hidden link

You can use same username and password I provided for the Prod site

November 9, 2023 at 4:43 pm #14770057

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

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.

--
Thanks!

Bigul

November 9, 2023 at 5:20 pm #14770171

ericH-40

yes, you can use hidden link

November 10, 2023 at 4:30 am #14772177

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the permission. We made a copy of the site, will debug it locally and get back to you as early as possible. Please wait.

--
Thanks!

Bigul

November 13, 2023 at 5:36 am #14785343

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

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.

--
Thanks!

Bigul