WordPress.org

Ready to get started?Download WordPress

Forums

Export User Data
[resolved] Blank Page (10 posts)

  1. krissparker
    Member
    Posted 2 months ago #

    Hi, I'm looking for some help.

    This plugin looks perfect, and from the admin side has everything I need.

    However I'm having an issue when trying to export the data.

    I select the BP xProfile Fields which I'd like to export to CSV, and as soon as I click on the export button I have a blank page.

    I'm only testing this with 3 users on my site, and there are only 5 fields per users which I'm trying to export.

    I have enable wordpress debug, however there is no output from this issue.

    Many thanks for your help and support.

    https://wordpress.org/plugins/export-user-data/

  2. krissparker
    Member
    Posted 2 months ago #

    Only me again,

    I have tested with the default theme and deactivating all the plugins, expect the data export and it works.

    I tested the export feature whilst activating each plugin one at a time, and it seems to stop working once Buddypress is activated.
    I have tried only activating buddypress with the export plugin and it fails.

    Any advice as to why it would fails while buddypress is activated?

    Many thanks again.

  3. qstudio
    Member
    Plugin Author

    Posted 2 months ago #

    Hi @krissparker,

    Thanks for trying to look into this problem - a white screen usually represents a PHP fatal crash - as you've found it's a combination of buddypress and this plugin, but not this plugin alone.

    It's possible that changes in the latest buddypress release are causing this error - I've not found time to test of release a 3.9 update yet - it's on the list, but it's sadly not at the top of it.. this will come when I have time.

    I would suggest you try an older version of buddypress - if this plugin's functionality is really important - of wait for the next release.

    Thanks

    Q

  4. morted
    Member
    Posted 2 months ago #

    This is also happening to us. I'm not sure we can downgrade BuddyPress. This is the line logged by Apache to the error_log when trying to export (identifying info hidden to protect the innocent):

    [Thu May 01 18:24:32 2014] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Call to undefined function get_current_screen() in /home/xxx/www/xxx.com/wordpress/wp-content/plugins/buddypress/bp-members/bp-members-admin.php on line 825, referer: http://www.xxx.com/wp-admin/users.php?page=export-user-data

    Anything we can do to get it fixed. We need BuddyPress for the xProfile fields. That is why we are using *this* plugin!

  5. qstudio
    Member
    Plugin Author

    Posted 2 months ago #

    The problem seems to be caused by a new 2.0 function added to BuddyPress:

    remove_signups_from_user_query()

    added via a filter action in bp-members-admin.php:167

    add_action( 'pre_user_query', array( $this, 'remove_signups_from_user_query'), 10, 1 );

    The function tries to call the WP function get_current_screen, but this is not available yet - probably because the export runs before this is loaded.

    commenting out the action in BP allows the export to run correctly again.

    I think the fix is more to try and avoid this action in bp than anything else - I'll see how best we can do that.

  6. qstudio
    Member
    Plugin Author

    Posted 2 months ago #

    Ok - I've uploaded a simple fix and released version 0.9.1:

    https://wordpress.org/plugins/export-user-data/changelog/

    I simply avoid the bp check by defining a constant - perhaps not totally ideal, but a working fix for now.

    Q

  7. morted
    Member
    Posted 2 months ago #

    Seems to work now. Thanks!

  8. qstudio
    Member
    Plugin Author

    Posted 2 months ago #

    Good news - marking this as resolved.

  9. krissparker
    Member
    Posted 2 months ago #

    Works! :)

    Thank you very much for your help and support.

    Regards.

  10. qstudio
    Member
    Plugin Author

    Posted 2 months ago #

    If the fix resolves the problem, please consider leaving a review of the plugins - this is helpful to us and also to other users.

Reply

You must log in to post.

About this Plugin

About this Topic