Skip Navigation

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.

WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Europe/Athens (GMT+03:00)

Tagged: 

This topic contains 29 replies, has 6 voices.

Last updated by francescoZ-18 2 years ago.

Assisted by: Andreas.

Author Posts
October 13, 2022 at 11:55 am #12235491

vanessaS-12

I am trying to: assign categories to the posts using Gutenberg editor, then update or publish the post

Link to a page where the issue can be seen: WP admin edit post view

I expected to see: the categories to stay selected and post gets updated

Instead, I got: the categories I've just selected get deselected and post normally updated

I've tried to deactivate some plugins to see which one creates this conflict and it got working only when WPML was deactivated.

do you have any idea why?
thanks

October 13, 2022 at 12:56 pm #12236217

Andreas

Hello there

Thank you for contacting us. I am happy to help you.

I am trying to understand what you are reporting.

So when WPML is enabled if you try to create a new post in GB , then you cannot assign any category in this new post ?

Is this the problem?

If not please describe with steps

Regards,
Andreas

October 13, 2022 at 1:31 pm #12236531

vanessaS-12

yes, when WPML is enabled and I update a post using the Block editor, I cannot assign any categories (the new assigned categories get unchecked after updating the post)

thanks
kind regards

October 13, 2022 at 1:33 pm #12236539

Andreas

When you update the post in the original language?

Regards,
Andreas

October 13, 2022 at 1:36 pm #12236549

vanessaS-12

it doesn't really matter the language, but yes, I'm using atm only english as the default original language (even though multiple languages are active)

thanks
kind regards

October 13, 2022 at 2:58 pm #12237175

Andreas

My apologies but the small details make the difference.

I am describing the steps one more time :

1) Create a Post in GB in ENG lanague
2) Before Publish assign a category
3) Publish the pots
4) Translate the post in WPML Advanced Translation Editor in all languages
5) For some reason you wish to update the original post
6) Open the original post in EN language
7) Change the category to something else
8) Save but the category is not changed?

Are the above steps correct or am I missing something?

Regards,
Andreas

October 13, 2022 at 3:56 pm #12237431

vanessaS-12

ok let me be describe one more time:
1. create a post in default language, and forget to assign a category, so Uncategorized category gets automatically selected to the post
2. publish the post
3. go back in the post (gutenberg editor) and try to assign other categories
4. check new categories, click on update post
5. Post gets updated through Ajax, newly assigned categories get unchecked and old categories checked as before updating

thanks
kind regards

October 14, 2022 at 8:10 am #12240763

Andreas

Thank you very much for you reply.

So based on your steps, you are not translating any post, so no steps related to WPML , but when you disabled WPML , everything is working as expected.

Correct?

If yes I would like to ask you this :

1) Disabled all plugins except WPML
2) Switch to default theme
3) Try again the same steps that you shared
4) If everything is ok , then start enabling one by one plugin, repeat your steps after each plugin is enabled, and then the last move is to switch to your theme and one more time repeat the steps.
5) Please share the results.

Regards,
Andreas

October 14, 2022 at 2:21 pm #12243377

vanessaS-12

Hello!

so I've tried to deactivate all plugins except WPML and the problem is still there
I've then activated a default theme and the problem is still there.
I've activated again my theme and deactivated WPML and the problem is gone.
so unfortunately this is 100% an issue generated by WPML 🙁

thanks
kind regards

October 14, 2022 at 2:51 pm #12243697

Andreas

Thank you very much for the reply.

I tried to replicate the issue locally but I am not able.

May I ask you this?

I created a minimal installation of WordPress, WPML, and all necessary WPML add-ons.

You can access the WordPress dashboard using the link below:

hidden link

Kindly follow the steps below:

1) Set up WPML
2) Install the necessary plugins. In your case you told me that you don't need anything related to replicate the issue.
3) Try to replicate the issue.

This will help us to report the probable issue to the compatibility team and solve the possible problem faster.

Regards,
Andreas

October 17, 2022 at 7:34 am #12251267

vanessaS-12

hello Andreas!

I`'ve tested the issue on your site and I wasn't able to replicate it.
so I guess it's a database problem on my side.
I've installed the Plugin WP Optimize to clean the database and something interesting happens:
with all plugins deactivated and only WPML activated, I go and clean the DB, after cleaning the DB i go to one of the posts and try to assign some other categories and it's working just fine without any issues!
but then it's like some option gets stored into the DB (for that post), because when I go for the second time in that post and try again to change the categories, the issue is there again.

this is driving me crazy..

I've created you a user on my staging site, how can I send you the login details? (I imagine this thread is public)

thanks
kind regards

October 17, 2022 at 9:15 am #12251963

Andreas

Thank you for your reply and for testing the issue in the sandbox.

As far as I understand there is a correlation issue in your local site that is breaking so data.

I don't have a problem checking your site, but it is not allowed to touch your database.

I will mark the next reply as private to take a look, but I cannot guarantee that I will be able to fix the issue.

Regards,
Andreas

October 17, 2022 at 9:42 am #12252093

vanessaS-12

ok thanks!
here the login:

hidden link

kind regards

October 17, 2022 at 10:31 am #12252547

Andreas

Sorry, can you please share again because I cannot see anything except the URL?

Marking again the next reply as private.

Regards,
Andreas

October 17, 2022 at 2:35 pm #12254767

Andreas

Thank you very much for the access.

Here what I did.

1) Visit this page :

hidden link

2) Add one more category and update

3) Refresh the page , the category is there

4) Remove the category and save

5) Refresh the page

6) The category is not there.

Should I do something specific in order to see the problem?

Regards,
Andreas