Title: Importing posts breaks this plugin
Last modified: August 31, 2016

---

# Importing posts breaks this plugin

 *  [webbisivut.org](https://wordpress.org/support/users/w-labs/)
 * (@w-labs)
 * [10 years ago](https://wordpress.org/support/topic/importing-posts-breaks-this-plugin/)
 * Hi,
 * It seems that when importing posts, it will break this plugin. It gives this 
   error:
 * “polylang array_intersect_key(): Argument #1 is not an array”
 * Chancing line 180 of file “translated-object.php” to this:
 *     ```
       if(isset($translations) && is_array($translations)) {
       $translations = array_intersect_key( $translations, array_flip( $this->model->get_languages_list( array( 'fields' => 'slug' ) ) ) );
       }
       ```
   
 * Fixes the problem. I wish you could include this fix in to the next release, 
   please.
 * Thank you!
 * [https://wordpress.org/plugins/polylang/](https://wordpress.org/plugins/polylang/)

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

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [10 years ago](https://wordpress.org/support/topic/importing-posts-breaks-this-plugin/#post-7383571)
 * Hi!
 * Thanks for the report. May I know how you import posts?
 *  Thread Starter [webbisivut.org](https://wordpress.org/support/users/w-labs/)
 * (@w-labs)
 * [10 years ago](https://wordpress.org/support/topic/importing-posts-breaks-this-plugin/#post-7383600)
 * Im using WordPress’ own import tool. Tools -> Import. I first translated posts
   and then I needed to move my website to another server, so I used WordPress export/
   import tool to move posts, but those posts got broken after import.
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [10 years ago](https://wordpress.org/support/topic/importing-posts-breaks-this-plugin/#post-7383633)
 * I will fix the code. But I was not able to reproduce the issue with WordPress
   importer, which doesn’t allow me to see if there is not something else hidden
   behind it 🙁

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

The topic ‘Importing posts breaks this plugin’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

## Tags

 * [Import](https://wordpress.org/support/topic-tag/import/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)

 * 3 replies
 * 2 participants
 * Last reply from: [Chouby](https://wordpress.org/support/users/chouby/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/importing-posts-breaks-this-plugin/#post-7383633)
 * Status: not resolved