Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+02:00)

Tagged: 

This topic contains 10 replies, has 3 voices.

Last updated by nicoS-9 No Replies.

Assisted by: Mohamed Sayed.

Author Posts
May 22, 2023 at 12:14 pm

nicoS-9

Hello, fortunately when i would like to delete a description of a custom term taxnomy in "taxnomy translation", the change will not apply. It looks like an copy once setting

On the other hand side, when I remove the description in term.php, it works

May 22, 2023 at 1:44 pm #13690489

Itamar
WPML Supporter since 02/2016

Languages: Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

You wrote: "it seems like, there should be a copy once setting of taxonomy description, which i didnt found"

This does not make sense to me. I'll explain. The "Copy once" setting for a custom field should copy the field's value only once when you first translate the field. "copy" is the option to always copy the field's value from the original to the translation. You can read about it here.

https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/recommended-custom-fields-translation-preferences-for-acf-and-wpml/

In any case, I suspect a collision with the theme or another plugin might cause this problem. If possible, get your site into a minimum environment. Minimum environment means switching to a default WordPress theme like TwentyTwenty-One and no plugins activated except WPML. If it is not possible to switch the theme because you have custom code there then only deactivate the third-party plugins.

First, you will need to check if the problem persists when just the theme is switched to TwentyTwenty-One. If it persists, then deactivate all plugins except the WPML and its add-ons. Then please check if the problem persists. If it does not persist, start by activating the plugins one by one and check when the problem comes back, then report to me which was the culprit plugin.


**** Important! Please make a full site backup (files and DB) before you proceed with those steps****


*** If your site is live, you might want to try those procedures in a staging environment or a snapshot of your site on your local server or another server. ***

Regards,
Itamar.

May 23, 2023 at 7:56 am #13695517

nicoS-9

The description isnt a term meta. Its part of the tax.

I could reproduce that behaviour with a clean wordpress installation, without any other plugins but wpml. I registered the custom taxonomy and couldnt empty the description of a translated term via WPML taxonomy-translation

May 23, 2023 at 1:53 pm #13700133

nicoS-9

Since the bug is independent of our development, I would now remove the test user on our staging system

May 23, 2023 at 2:04 pm #13700243

Mohamed Sayed

Hi Nico,
Thanks for contacting WPML support, I will be glad to help you.

You can remove the test user since the issue is replicated on a clean installation. I have created this clean sandbox setup on our servers here:
hidden link (one-click login)

I would need you to please set up WPML + the WPML add-ons as you have them on your site (they are already installed) then reproduce the issue there.

Please don't install anything else like plugins that are not necessary, on a clean sandbox we try to use just the WPML plugins and the plugin/theme that's part of the issue.

If the issue is going to take place on this clean setup on our servers too, then I can forward this to our developers for further investigation.

Please let me know how that goes and what you are able to find.

Regards,
Mohamed

May 24, 2023 at 6:55 am #13704349

nicoS-9

I set it up.
To reproduce the problem, you need to perform the following steps.

1.) Go to hidden link
2.) Edit german version of "test-destination-en"
3.) Empty "Description"-field and click on save
4.) Reopen german version of "test-destination-en" and you will see, "Description"-field is still set

May 24, 2023 at 9:25 am #13705273

Mohamed Sayed

Hi Nico,
Thanks for replicating the issue.

Could you please try the following steps?

1. Go to WPML > Taxonomy Translation
2. Edit the translated taxonomy
3. Empty the "Description" field
4. Add an extra space before saving the changes
5. Save the taxonomy translation
6. Check again if the field still shows the decription

I tested this and it works for me as you can see here: hidden link

Let me know please how that goes.

Regards,
Mohamed

May 30, 2023 at 12:39 pm #13739705

nicoS-9

Hey Mohamed.

I wouldn't see this as a real fix. The field value is not empty with this and i would have to use trim at every point in the code.

Kind regards

May 30, 2023 at 7:57 pm #13742379

Mohamed Sayed

Hi Nico,

I'm consulting our developers about this issue and will update you once I get their reply.

At the moment I suggest that you delete this description from the taxonomy edit screen with the steps below:

- Go to Posts > Destinations
- Switch the language to German from the top admin bar
- Edit the translated taxonomy
- Delete the description then update the taxonomy

Regards,
Mohamed

June 1, 2023 at 10:36 pm #13758051

Mohamed Sayed

The issue was escalated to our developers so they can include the fix in one of the future updates, but I'm afraid that we don't have an ETA at the moment.

Please try the following workaround:

1. Edit the file /wp-content/plugins/sitepress-multilingual-cms/inc/wpml-post-edit-ajax.class.php
2. Replace the following code (on line 70):

if ( $description ) {

With the following:

if ( isset($description) ) {

3. Edit the file /wp-content/plugins/sitepress-multilingual-cms/inc/taxonomy-term-translation/wpml-update-term-action.class.php
4. Replace the following code (on line 120):

if ( $description ) {

With the following:

if ( isset($description )) {

I tested this on the sandbox site and it works as you can see here: hidden link

Please give it a try and let us know your feedback.

The topic ‘[Closed] i would like to delete a description of a custom term taxnomy’ is closed to new replies.