Title: Problems when exporting/importing widgets using Visibility options
Last modified: August 22, 2016

---

# Problems when exporting/importing widgets using Visibility options

 *  Resolved [Marcelo Pedra](https://wordpress.org/support/users/kent-brockman/)
 * (@kent-brockman)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/problems-when-exportingimporting-widgets-using-visibility-options/)
 * Hello Steven, your plugin rocks and saved me a couple times. But today I found
   a bug or something when there are LOTS of widgets (70+, because I’m using WooCommerce
   layered navigation across multiple filters) and they are using the Visibility
   feature from JetPack, –or maybe the interference is with Image Widget plugin,
   I’m not completely sure–. The fact is that importing a wie file generated with
   your exporter, will be imported fine, and tell everything was ok. But when you
   browse to the Widgets screen you will find things are messed up, screen stops
   loading, and you cannot unroll any of the widgets.
    Fortunately, I found the 
   excellent widgets-reset by Justin Tadlock and the remove-inactive-widgets plugin
   which helped wipe out the mess.
 * Could you see into this? The problem probably comes around due to some syntax
   error in the JSON, maybe some unescaped quotes, I don’t know. The import process
   went ok. The problem is that Widgets screen will suddenly abort loading.
 * Any ideas?
    Let me know if you want me to send the “faulty” wie file.
 * Best regards
 * [https://wordpress.org/plugins/widget-importer-exporter/](https://wordpress.org/plugins/widget-importer-exporter/)

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

 *  Thread Starter [Marcelo Pedra](https://wordpress.org/support/users/kent-brockman/)
 * (@kent-brockman)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/problems-when-exportingimporting-widgets-using-visibility-options/#post-5528816)
 * Fortunately to me, I found this plugin ([https://wordpress.org/plugins/widget-settings-importexport/](https://wordpress.org/plugins/widget-settings-importexport/))
   which exported and imported everything like a breeze. No errors, no worries.
   
   I share this to others who could have the same problem. Thanks!
 *  Plugin Author [Steven Gliebe](https://wordpress.org/support/users/stevengliebe/)
 * (@stevengliebe)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/problems-when-exportingimporting-widgets-using-visibility-options/#post-5528890)
 * Hi Marcelo,
 * Does anything unusual turn up in your debug.log file when importing and/or when
   accessing the Widgets screen?
 * Does the Widgets screen work again when deactivating all other plugins?
 * It sounds like there is a conflict either with one plugin or a combination of
   plugins and/or the settings of a specific widget or widgets. That’s a big list
   of suspects so if you can provide steps for me to recreate the issue on a fresh
   WordPress install then I should be able to figure out where the breakdown is.
 * Thank you.
 *  Thread Starter [Marcelo Pedra](https://wordpress.org/support/users/kent-brockman/)
 * (@kent-brockman)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/problems-when-exportingimporting-widgets-using-visibility-options/#post-5529090)
 * Hi! sorry for the delay.
    The other day I was really pissed off to migrate a 
   website from staging to production ASAP. So, I couldnt mind enable debug.log 
   to test; I needed a reliable solution, fast. Anyway, I’ll need to make a copy
   from production to staging and before trying to copy the entire database, I’ll
   give it a try to your plugin to let you know.
 * There are a lot of plugins used as widgets, so I would be wary on deactivate 
   EVERYTHING just to try. And as I said originally, the problem is indeed the complexity
   of the widget list for this site. Almost 80 widgets, each one using almost 30
   conditional rules from JetPack’s Widget Visibility.
 * I know it’s a hard to reproduce scenario because you should use woocommerce, 
   load 2k products with an assigned preset of almost 300 categories, and then insert
   the dozens of layered filter widgets and add every visibility condition to show
   the correct filters in the correct categories. This thing with filters and conditions
   took me 2 days to accomplish. In fact, the WP Widgets Screen becomes super slow
   and switching positions of widgets by drag and drop may take up to 5 seconds 
   in my 8 GB RAM computer… Yep, that complicated.
 * Probably your plugin is hitting some kind of limit in the way it export or import
   the data. Maybe a hardcoded limit in the amount of items to be queried? I don’t
   know. You should analyze the abovementioned plugin to see how they did it. It
   exported everything in seconds, and the json was imported incredibly fast. So
   fast that I thought it just failed 🙂
 * Hope you can find a solution. Best regards!
 *  Plugin Author [Steven Gliebe](https://wordpress.org/support/users/stevengliebe/)
 * (@stevengliebe)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/problems-when-exportingimporting-widgets-using-visibility-options/#post-5529092)
 * There are no hard-coded limits. If it’s a memory issue then debug.log may turn
   something up. Otherwise, I cannot efficiently debug something with such a complex
   configuration. If you can provide a reduced test case then I’ll see if I can 
   confirm the issue and work on a fix.
 *  Thread Starter [Marcelo Pedra](https://wordpress.org/support/users/kent-brockman/)
 * (@kent-brockman)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/problems-when-exportingimporting-widgets-using-visibility-options/#post-5529094)
 * ok, I’ll try to provide you a debug.log or access to a test setup.
    best regards!
 *  Plugin Author [Steven Gliebe](https://wordpress.org/support/users/stevengliebe/)
 * (@stevengliebe)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problems-when-exportingimporting-widgets-using-visibility-options/#post-5529134)
 * Hi Marcelo,
 * Could you test this issue with version 1.2? The newest version supports settings
   stored in multidimensional arrays which is how Jetpack’s Widget Visibility works.
 *  Plugin Author [Steven Gliebe](https://wordpress.org/support/users/stevengliebe/)
 * (@stevengliebe)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/problems-when-exportingimporting-widgets-using-visibility-options/#post-5529135)
 * I am going to consider this resolved as I have not had other reports of this 
   since the update. Let me know if you do test this and find otherwise.
 *  Thread Starter [Marcelo Pedra](https://wordpress.org/support/users/kent-brockman/)
 * (@kent-brockman)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/problems-when-exportingimporting-widgets-using-visibility-options/#post-5529136)
 * Hello Steven, I had no opportunities to test it again. So, I don’t know if it
   worked. If I find enought time to test it, I’ll let you know. 🙂

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

The topic ‘Problems when exporting/importing widgets using Visibility options’ 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/)

 * 8 replies
 * 2 participants
 * Last reply from: [Marcelo Pedra](https://wordpress.org/support/users/kent-brockman/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/problems-when-exportingimporting-widgets-using-visibility-options/#post-5529136)
 * Status: resolved