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
|
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
|
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
|
Andreas
|
Thank you
May I ask you to take a duplicator from your site, please?
Regards,
Andreas
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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.
|
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.
|
oblaum
|
i have exactly the same problem. this workaround works for me. i hope there will be integrated offically soon.
|
francescoZ-18
|
Hi, doesn't work for me. Still cannot translate categories. Other try, debug or ideas?
|