Hi
Could you please deactivate all your plugins (except Polylang) and switch to Twenty Sixteen and check if you get the same error?
Thread Starter
brbrbr
(@brbrbr)
Hi,
I can’t disable all plugings since it is a active network.
I noticed that on an older site within the same network polylang works fine. Their I can add posts and create translations.
On a new site ( within the network ) I can’t add or change translations. I can save the language of a post, but can’t ‘link’ the translated versions of that post. Screen shots
I tried polylang on a brand new wordpress site ( not network) and their it works fine as well.
It seems that wp_get_object_terms in translated_object.php is not returning the terms as required. I can see the rows in the database.
I have limited debug options since it’s a live website.
Thread Starter
brbrbr
(@brbrbr)
ok,
got it, you where right the problem was caused by a different plugin.
That plugin does a blog switch and then a wp_insert_post triggering polylang on the wrong blog. And somehow the language data is lost after that.
I tried to skip the caching of object data ( in translated-object ) and adding a ms_is_switched to the save_post action. Both didn’t work. ( and a don’t want to change the polylang code on the production server)
so I added a if( is_plugin_active( ‘polylang/polylang.php’ ) ) { return; }
to the other plugin. That helped
solving the mistery why ms_is_switched in save_post isn’t working is for somewhere in the future.