• 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://www.ads-software.com/plugins/wpml-to-polylang/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Chouby

    (@chouby)

    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

    (@arampal)

    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

    (@chouby)

    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

    (@arampal)

    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

    (@arampal)

    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

    (@chouby)

    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

    (@arampal)

    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

    (@chouby)

    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.