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 18, 2022 at 7:33 am #12258593

vanessaS-12

hello!
that's the thing, without refreshing the page should already be working. when I disable the WPML plugin, the categories get updated using ajax and without the need to refresh the page.
(so they don't get again deselected)

thanks
kind regards

October 18, 2022 at 8:00 am #12258937

Andreas

I have checked again yur site.

Just to be typical, may I ask you to increase the WP Memory limit to 256, because now it is on 40Mb ?

hidden link

https://wpml.org/home/minimum-requirements/?utm_source=plugin&utm_medium=gui&utm_campaign=wpmlcore

Regards,
Andreas

PS: I disabled all plugins and theme, I will switch back to normal when you fix the memory

October 19, 2022 at 11:17 am #12268775

vanessaS-12

ok done!
now the memory limit is 256M

but the issue is still there (when refreshing the page it works, but this shouldn't be supposed to be required in gutenberg)

thanks
kind regards

October 19, 2022 at 12:58 pm #12270477

Andreas

Thank you

May I ask you to take a duplicator from your site, please?

Regards,
Andreas

October 19, 2022 at 1:07 pm #12270587

vanessaS-12

you mean cloning my staging website?
yes you may. Anything just to solve this issue 🙂
let me know if you need anything from my side.

thanks
kind regards

October 20, 2022 at 10:53 am #12278369

Andreas

Hello there and thank you very much for the duplicator.

After many hours of debugging, I found that for some reason you are having corrupted data in wpml settings.

Here is what needs to be done :

1) Take a backup of your site
2) Go to your Database in wp_options table
3) Find the row with name "icl_sitepress_settings"
4) Delete the row
5) Go back in the admin panel, you will see to run WPML Wizard, click it
6) It will show only the very last step , click Finish
7) Go and test a post.

Locally I have tested it many times and it is working ok, but we need to see also your installation to.

Regards,
Andreas

October 20, 2022 at 1:06 pm #12279895

vanessaS-12

ok awesome! actually that did the trick!

but there are some problems after I completed the WPML wizard, the italian language was deactivated and I had to activate it again, and it got me wondering: is this process safe for the future?
just hoping it won't create other bugs/issues

thanks a lot!
kind regards

October 20, 2022 at 2:19 pm #12280595

Andreas

I am very happy that this worked for you.

I don't think it will be needed to do again. But if you have a bakcup , you don't need to be afraid.

Also, it is normal that you might see some glitches like the language you had to enable again. With this tip we are not deleting any of the content just recreating the settings.

I hope this helps. Please let us know how it goes or if you need any further assistance. I'll gladly help you. 🙂

Regards,
Andreas

October 26, 2022 at 9:03 am #12313207

vanessaS-12

hello Andreas!

it seems the issue came back today, again I can't assign categories inside the gutenberg editor.
I changed some WPML options before that in order to use translation if available or fallback to default language in "WPML - Settings - Post Types Translation" for Posts and I noticed this actually creates the issue of the categories not being saved.

So if I set the posts to "Translatable, only show translated items" the categories selection works just fine, if I select "Translatable, use translation if available or fallback to default language" then the issue is there.
I have to use the second setting because I want to show on other languages content that is not translated from the default language - english.

what could be wrong here?
you can again login on the dashboard if you want to test, the user is still active.

thanks
kind regards

October 26, 2022 at 10:22 am #12313963

Andreas

Thank you very much for the detail.

The small detail was the option Translatable -use translation if available or fallback to default language.

I was able to replicate the issue locally and now I reported it.

I don't know what priority will take, but I will inform you when I will have news.

Regards,
Andreas

November 4, 2022 at 3:23 pm #12383631

Andreas

Hello again.

We found the root cause and the development team now has all the information in order to add a proper fix.

But I am not having when this ticket will be in a release track since the bug is there for many years and now this is the first report.

If this bug is critical to you, I am having a workaround for you but this will disable the WPML cache for this part of the code ( not everywhere ).

Also have in mind that if you update to a newer version of WPML , you should add again that workaround, otherwise you will lose it.

Go to /wp-content/plugins/sitepress-multilingual-cms/classes/display-as-translated/class-wpml-cache-terms-per-lang.php around line 24

$all_terms = wp_cache_get( $post_id, self::CACHE_GROUP, false );
		if ( ! is_array( $all_terms ) ) {

change to

$all_terms = NULL;//wp_cache_get( $post_id, self::CACHE_GROUP, false );
		if ( ! is_array( $all_terms ) ) {

Have also in mind that this might not work for you as expected. And also have always a backup before making changes to core files.

Thank you very much and If I have news in the future, I will update you.

Regards,
Andreas

July 19, 2023 at 2:19 pm #14066979

miloszR-2

Hi,

why is this still not fixed? I don't want to change this code every time there is an update of WPML plugin.

September 11, 2023 at 4:45 pm #14378413

shawnF-2

Hi,
Thanks for posting a fix, but like the post above, can you added it to a release, I am having the problem also.

October 30, 2023 at 3:26 pm #14693147

oblaum

i have exactly the same problem. this workaround works for me. i hope there will be integrated offically soon.

September 17, 2024 at 11:51 am #16188126

francescoZ-18

Hi, doesn't work for me. Still cannot translate categories. Other try, debug or ideas?