• Hi,

    using the latest polylang/wordpress on a workpress network ( multisite )

    I try to ‘link’ blog posts. So I click the + in a blog post (for example the EN version )and write a new post ( for example NL )

    If I click ‘save as draft’ it works fine and the blog shows the EN blog post in the polylang box.

    However if I click ‘publish’ first the EN version is now shown anymore.

    And can’t add other languages after the blog is saved.

    https://ww.wp.xz.cn/plugins/polylang/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Chrystl

    (@chrystl)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Translation will not save’ is closed to new replies.