Title: PHP error on import
Last modified: August 22, 2016

---

# PHP error on import

 *  Resolved [missymooreuk](https://wordpress.org/support/users/missymooreuk/)
 * (@missymooreuk)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/php-error-on-import/)
 * I get the following message after selecting the .wie file and clicking import:
 * Warning: Invalid argument supplied for foreach() in /plugins/widget-importer-
   exporter/includes/import.php on line 192
 * Fatal error: [] operator not supported for strings in /plugins/widget-importer-
   exporter/includes/import.php on line 215
 * I am importing the widgets from another instance of my wordpress site on another
   domain.
 * [https://wordpress.org/plugins/widget-importer-exporter/](https://wordpress.org/plugins/widget-importer-exporter/)

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

 *  Plugin Author [Steven Gliebe](https://wordpress.org/support/users/stevengliebe/)
 * (@stevengliebe)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/php-error-on-import/#post-5687808)
 * Hello,
 * Could you try deactivating all other plugins and see if the issue goes away? 
   If so, it would indicate a plugin conflict.
 * If that doesn’t work, try switching temporarily to the default Twenty Fourteen
   theme to test if the issue goes away. If it does, that would indicate a theme
   issue.
 * Otherwise, could you get in touch by email and send me your .wie file? I’ll give
   it a test. [http://stevengliebe.com/contact/](http://stevengliebe.com/contact/)
 * Thank you.
 *  Thread Starter [missymooreuk](https://wordpress.org/support/users/missymooreuk/)
 * (@missymooreuk)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/php-error-on-import/#post-5687916)
 * I managed to get the plugin to work by doing the widget import before installing
   the theme and restoring all the other files. Must be a conflict with the them
   as I tried deactivating all the plugins and that didn’t do any good.
 *  Plugin Author [Steven Gliebe](https://wordpress.org/support/users/stevengliebe/)
 * (@stevengliebe)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/php-error-on-import/#post-5687920)
 * That’s interesting. It may have something to do with the theme’s widget areas
   then. What theme is it?
 *  Thread Starter [missymooreuk](https://wordpress.org/support/users/missymooreuk/)
 * (@missymooreuk)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/php-error-on-import/#post-5687921)
 * Msocial by Gavick Pro who recommend your plugin ironically.
 *  Plugin Author [Steven Gliebe](https://wordpress.org/support/users/stevengliebe/)
 * (@stevengliebe)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/php-error-on-import/#post-5687922)
 * Thank you. If I see this error again I’ll check which theme is being used in 
   case there is some connection. It still could be some other factor, though.

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

The topic ‘PHP error on import’ is closed to new replies.

 * ![](https://ps.w.org/widget-importer-exporter/assets/icon-256x256.jpg?rev=990577)
 * [Widget Importer & Exporter](https://wordpress.org/plugins/widget-importer-exporter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/widget-importer-exporter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/widget-importer-exporter/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-importer-exporter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-importer-exporter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-importer-exporter/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Steven Gliebe](https://wordpress.org/support/users/stevengliebe/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/php-error-on-import/#post-5687922)
 * Status: resolved