Title: Fatal error during import
Last modified: August 21, 2016

---

# Fatal error during import

 *  [arampal](https://wordpress.org/support/users/arampal/)
 * (@arampal)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-during-import/)
 * Hi
 * I have a website on WordPress 3.5 with WPML 2.0.4.1, with Arrass theme. It has
   3 languages (Armenian default, English, Russian)
    I want to switch to Polylang
   with “wPML to Polylang” plugin. I do everything as needed, I see all green OKs
   but i get this error.
 * > Warning: Invalid argument supplied for foreach() in /home/****/public_html/
   > wp-content/plugins/wpml-to-polylang/wpml-to-polylang.php on line 308
   > Fatal error: Cannot access empty property in /home/****/public_html/wp-content/
   > plugins/wpml-to-polylang/wpml-to-polylang.php on line 338
 * After looking to the result i see that it has imported English articles but not
   Russian, and the Armenian language is not created in Polylang.
 *  So where can be the problem? I don’t use the wordpress menus, it is created 
   by the Arras theme.
 * [https://wordpress.org/plugins/wpml-to-polylang/](https://wordpress.org/plugins/wpml-to-polylang/)

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

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-during-import/#post-4864706)
 * Hi!
 * Thank you for the bug report. I just uploaded v0.1.1 which should fix this ugly
   fatal error. Please update and give me your feedback.
 *  Thread Starter [arampal](https://wordpress.org/support/users/arampal/)
 * (@arampal)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-during-import/#post-4864708)
 * Chouby
    I updated to 0.1.1, the fatal error disappeared. But now the plugin do
   nothing , well it had created the English and Russian but didn’t import any posts.
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-during-import/#post-4864709)
 * Did you delete Polylang with the red link in the plugins list table before attempting
   the new import? To be sure that every Polylang data has been removed after the
   failed attempt.
 *  Thread Starter [arampal](https://wordpress.org/support/users/arampal/)
 * (@arampal)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-during-import/#post-4864710)
 * Yes i deleted Polylang and reinstalled before importing. Could this be related
   to the fact that i have Armenian as a default and this language is not in the
   list of Polylang languages? I will try to change the default language.
 *  Thread Starter [arampal](https://wordpress.org/support/users/arampal/)
 * (@arampal)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-during-import/#post-4864711)
 * Nothing has changed, i changed the default language in WPML to English and tried
   all steps and get the same result
    No posts are imported. Only English and Russian
   are created, the Armenian is not created.
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-during-import/#post-4864756)
 * It’s strange that English was imported before and is no more as I did not change
   anything for this. Have you a huge number of posts?
 *  Thread Starter [arampal](https://wordpress.org/support/users/arampal/)
 * (@arampal)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-during-import/#post-4864791)
 * Hi Chouby
    I restored the database and tried again. Now it imported the English
   posts (250 posts) . Without any error and warning. But it didn’t import the Russian
   and Armenian posts. The Russian language is created without any post.
 * I have 490 posts in total.
 * Perhaps this is related to the fact that i don’t have a wordpress menu. Or some
   other settings in WPML. I will look more closer.
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-during-import/#post-4864792)
 * That’s not that huge. You should not hit a memory or mysql limitation with this
   number of posts.
 * What’s strange is that all posts languages are set in one unique query. So if
   it works for one, it should work for all. So it looks like Polylang did not find
   your Russian posts in wpml tables.
 * Are all the 3 languages created now?

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

The topic ‘Fatal error during import’ is closed to new replies.

 * ![](https://ps.w.org/wpml-to-polylang/assets/icon-256x256.png?rev=1272595)
 * [WPML to Polylang](https://wordpress.org/plugins/wpml-to-polylang/)
 * [Support Threads](https://wordpress.org/support/plugin/wpml-to-polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/wpml-to-polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpml-to-polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpml-to-polylang/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Chouby](https://wordpress.org/support/users/chouby/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-during-import/#post-4864792)
 * Status: not resolved