WordPress.org

Ready to get started?Download WordPress

Forums

Widget Settings Importer/Exporter
[resolved] Plugin exports a blank file (14 posts)

  1. Eduardo Larequi
    Member
    Posted 2 years ago #

    First of all, thank you very much for this plugin. The idea is simply splendid.

    I've installed your plugin in three blogs (different servers, different settings and different plugins):

    http://www.labitacoradeltigre.com
    http://centros.educacion.navarra.es/devcursos/cursowp2012/
    http://www.elarequi.com/antologia1/ (hosted in BlueHost)

    Your plugin only works as expected in the third one. In the first and the second, a blank file is produced.

    I've activated WordPress debug mode in the first blog; after executing the plugin, I get many error warnings. I can't transcribe them here because of security reasons, but I could send them to you if you give me and email address.

    On the other hand, when the blog is located in a subdirectory, once created the widget_data.json file, the backend is redirected to a non existing page.

    http://wordpress.org/extend/plugins/widget-settings-importexport/

  2. Kevin Langley
    Member
    Plugin Author

    Posted 2 years ago #

    You can send the debug info to me at me@jkevinlangley.com

    I know why it is redirecting to the non existing page and will definitely fit that in to the next release.

    Not sure why a blank file was produced though. Hopefully the debug info you send me will help. What versions of WP are these installations using?

  3. Kevin Langley
    Member
    Plugin Author

    Posted 2 years ago #

    I just uploaded a new version where it wont redirect to a blank page with WP installed in sub directory.

  4. Eduardo Larequi
    Member
    Posted 2 years ago #

    I've just sent an email with the errors attached.

    Thank you so much for your attention.

  5. Kevin Langley
    Member
    Plugin Author

    Posted 2 years ago #

    The first error message tells me everything I need to know.

    Warning: tempnam() [function.tempnam]: SAFE MODE Restriction in effect. The script whose uid is 10153 is not allowed to access /tmp owned by uid 0 in wp-content/plugins/widget-settings-importexport/widget_data.php on line 323

    Seems like your server doesn't have access to the /tmp directory to upload files to. For this I'd say talk to your host, as this isn't an issue with the plugin, but an issue with the server configuration.

  6. Kevin Langley
    Member
    Plugin Author

    Posted 2 years ago #

    All subsequent errors are based off the error that the upload to /tmp did not succeed.

  7. Eduardo Larequi
    Member
    Posted 2 years ago #

    That's exactly what I feared. I think that little can I do by talking with my host provider.

    Anyway, thank you again for your interest and support.

  8. Ciro Urdaneta
    Member
    Posted 2 years ago #

    Same problem here on a local MAMP setup
    log file here

  9. Kevin Langley
    Member
    Plugin Author

    Posted 2 years ago #

    Got it, @curdaneta. I just uploaded a new version of the plugin that should fix that issue.

    Try it out and let me know :)

  10. Kevin Langley
    Member
    Plugin Author

    Posted 2 years ago #

    @elarequi, I'd say go ahead and try this again on the same host, as I have now changed the way it exports and it isn't using the tempnam() function which is one of the same problems you were having.

  11. Eduardo Larequi
    Member
    Posted 2 years ago #

    I've tested version 0.3 in two sites:

    1) http://centros.educacion.navarra.es/devcursos/cursowp2012/, a multisite installation. Widgets defined in one of the blogs, http://centros.educacion.navarra.es/devcursos/cursowp2012/probando3/, have been exported without problems.

    Then, I've imported the .json file from another blog, http://centros.educacion.navarra.es/devcursos/cursowp2012/probando2/. In spite of a red warning message ("There was a problem importing your widgets. Please try againĀ·"), widgets have been importe successfully.

    In these two blogs I use Widget Logic. Conditions defined by this plugin are not imported, but of course this is not a fault of Widget Settings Importer/Exporter.

    2) http://www.labitacoradeltigre.com. Widgets defined in this blog are not exported. A green message appears for an instant ("All of the requested widgets have been exported."), but instead the .json file, I've got a page which contains the content of some widgets, not all.

    Thanks for your attention.

  12. Kevin Langley
    Member
    Plugin Author

    Posted 2 years ago #

    I've tried numerous times and have yet to be able to reproduce the behaviors you're experiencing, but there is the possibility that the version I just pushed, MIGHT fix your issues. Please test and let me know if you're still getting that.

    Thanks!

  13. Eduardo Larequi
    Member
    Posted 2 years ago #

    Export function in Version 0.4 of Widget Settings Importer/Exporter plugin works fine in http://www.labitacoradeltigre.com. I haven't tested the import function, but these are excellent news.

    Thank you very much, Kevin.

    One suggestion: have you planned the internationalization of the plugin? The text chains neeeded are quite a few. If you provide the means in the code, I promise to translate it to spanish.

  14. Kevin Langley
    Member
    Plugin Author

    Posted 2 years ago #

    I think that would be a great idea. I have a feature request that I will be implementing into the next version and I will include setting up the plugin to be internationalized. When I do so, I'll get ahold of you and see if you're available for translation. Thanks for the idea and the future help!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic