Title: Error when exporting users
Last modified: June 27, 2018

---

# Error when exporting users

 *  Resolved [roya2018](https://wordpress.org/support/users/roya2018/)
 * (@roya2018)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-when-exporting-users/)
 * I’m trying to export users to CSV but the following error message pops up:
 * ——————
    This site can’t be reached The web page at [https://www.ngoexchange.com/wp-admin/export.php?download=true&cat=0&post_author=0&post_start_date=0&post_end_date=0&post_status=0&page_author=0&page_start_date=0&page_end_date=0&page_status=0&attachment_start_date=0&attachment_end_date=0&content=users&role=&start_date=2017-12&end_date=2018-06&submit=Download+Export+File](https://www.ngoexchange.com/wp-admin/export.php?download=true&cat=0&post_author=0&post_start_date=0&post_end_date=0&post_status=0&page_author=0&page_start_date=0&page_end_date=0&page_status=0&attachment_start_date=0&attachment_end_date=0&content=users&role=&start_date=2017-12&end_date=2018-06&submit=Download+Export+File)
   might be temporarily down or it may have moved permanently to a new web address.
   ERR_INVALID_RESPONSE
 * ——————
 * I’ve deactivated other third party plugins and the issue still persists. Other
   options are working on my site (I have checked two options : pages,media and 
   they are working).
 * Help please!
 * Thank you
    Roya

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

 *  Plugin Author [Matt Cromwell](https://wordpress.org/support/users/webdevmattcrom/)
 * (@webdevmattcrom)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-when-exporting-users/#post-10442369)
 * Hi there,
 * Most likely what is happening is you have A LOT of users and your web host doesn’t
   have a lot of resources for running a large export like this.
 * Would you mind providing me with your system info? You can provide that with 
   a temporary URL using another free plugin I maintain called “Send System Info”.
   Install that and create URL and provide that here and I might have more insight
   for you.
 * Thanks!
 *  Thread Starter [roya2018](https://wordpress.org/support/users/roya2018/)
 * (@roya2018)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-when-exporting-users/#post-10460799)
 * Hi Matt,
 * Thanks for your quick response. We only have around 70-80 users, not sure if 
   that’s considered ‘a lot’?
 * Here is the temporary URL [https://www.ngoexchange.com/?system_info=pjW4BWJjAu7B70aNDCH8OmwK4Qss3OGi](https://www.ngoexchange.com/?system_info=pjW4BWJjAu7B70aNDCH8OmwK4Qss3OGi)
 * Many thanks,
    Roya
 *  Thread Starter [roya2018](https://wordpress.org/support/users/roya2018/)
 * (@roya2018)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-when-exporting-users/#post-10478538)
 * Hi Matt,
 * Any help with this would be very much appreciated.
 * Thanks,
    Roya
 *  Thread Starter [roya2018](https://wordpress.org/support/users/roya2018/)
 * (@roya2018)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-when-exporting-users/#post-10478624)
 * Hi Matt,
 * I just tried this out on Safari instead of Chrome and it works. But unfortunately
   the downloaded data is incomplete. It only downloads 5-10 users when we now have
   around 120.
 * Help!
 * Thanks
 *  Thread Starter [roya2018](https://wordpress.org/support/users/roya2018/)
 * (@roya2018)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/error-when-exporting-users/#post-10546540)
 * Hi Matt,
 * I’d appreciate any updates you have on this. The temporary URL is no longer working
   so let me know when you need it again and I’ll generate another one.
 * Many thanks,
 *  [rpclarke41](https://wordpress.org/support/users/rpclarke41/)
 * (@rpclarke41)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/error-when-exporting-users/#post-10550889)
 * I have the same problem. Firefox works, Chrome does not. I believe it is an error
   in the data being exported possible a blank field. I haven’t had time to isolate
   it.
 * However xdebug reports the following (it writes it the export file so is a bit
   messed up)
    xdebug-error xe-catchable-fatal-error Catchable fatal error: Object
   of class stdClass could not be converted to string in wp-content\plugins\export-
   users-to-csv\export-users-to-csv.php on line 241 Call Stack {main}( ) wp-admin\
   export.php’ …\export.php export_wp( ) wp-admin\export.php’ : 114 do_action( )
   wp-admin\includes\export.php’ : 71 WP_Hook->do_action( ) wp-includes\plugin.php’:
   453 WP_Hook->apply_filters( ) wp-includes\class-wp-hook.php’ : 310 PP_EU_Export_Users-
   >generate_csv( ) : 286 ( ) wp-content\plugins\export-users-to-csv\export-users-
   to-csv.php : 241
 *  Plugin Author [Matt Cromwell](https://wordpress.org/support/users/webdevmattcrom/)
 * (@webdevmattcrom)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/error-when-exporting-users/#post-10587296)
 * [@roya2018](https://wordpress.org/support/users/roya2018/) — apologies for the
   delay, yes, please generate a new URL for me and I’ll take a closer look.
 * [@rpclarke41](https://wordpress.org/support/users/rpclarke41/) — thanks for the
   error output. That line does seem to suggest that something is wrong with the
   data being passed as you suggested. Can you also use the Send System Info plugin
   to create a URL so I can see what you’re working with on that site? I’m most 
   interested in how you might be editing or updating user information via other
   plugins.
 * Thanks!
 *  Thread Starter [roya2018](https://wordpress.org/support/users/roya2018/)
 * (@roya2018)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/error-when-exporting-users/#post-10598384)
 * Hi [@webdevmattcrom](https://wordpress.org/support/users/webdevmattcrom/)
 * Here you go: [https://www.ngoexchange.com/?system_info=gf9HA9HxssOTdLZeMUwSyoIFMAwd2xp8](https://www.ngoexchange.com/?system_info=gf9HA9HxssOTdLZeMUwSyoIFMAwd2xp8)
 * Many thanks,
    Roya
 *  [rpclarke41](https://wordpress.org/support/users/rpclarke41/)
 * (@rpclarke41)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/error-when-exporting-users/#post-10599652)
 * I have done some further checking on this.
 * We are using UltimateMember Ver 1 (still trying to fix the issues caused by moving
   to ver 2) to manage users, no other opportunity exists to make changes to a user
   entry.
 * The entry in question is the first one added and is an old admin account. I believe
   an early version of the site was built on wordpress.com and then transferred 
   to where it is now.
 * There is an entry in usermeta for this user with a key wpcom_user_data which 
   as far as I can see relates to this earlier incarnation, possibly logon data –
   a google search talks about jetpack.
 * The sanitized data value is
    O:8:”stdClass”:10:{ s:2:”ID”;i:53715818; s:5:”login”;
   s:10:”name”; s:5:”email”;s:21:”emaildata@gmail.com”; s:3:”url”;s:31:”[http://name.wordpress.com&#8221](http://name.wordpress.com&#8221);;
   s:10:”first_name”;s:4:”firstname”; s:9:”last_name”;s:6:”lastname”; s:12:”display_name”;
   s:10:”displayanme”; s:11:”description”;s:0:””; s:16:”two_step_enabled”;b:1; s:
   16:”external_user_id”;i:1; }
 * When loaded into WordPress this creates a class which ends up in $value with 
   $value having a a type of stdClass. This is what kills the code.
 * Adding code something like this will fix it
 * $value = is_array( $value ) ? serialize( $value ) : $value;
    if (gettype($value)
   == ‘object’ && get_class($value) == ‘stdClass’) { $value = ‘#error#’; } $data[]
   = ‘”‘ . str_replace( ‘”‘, ‘””‘, $value ) . ‘”‘;
 * Maybe not the most elegant but it does stop the error.
 *  Thread Starter [roya2018](https://wordpress.org/support/users/roya2018/)
 * (@roya2018)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-when-exporting-users/#post-10617187)
 * It works! Thanks for your help Matt.
 * Best,
    Roya

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

The topic ‘Error when exporting users’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/export-users-to-csv_8abacf.svg)
 * [Export Users to CSV](https://wordpress.org/plugins/export-users-to-csv/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/export-users-to-csv/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/export-users-to-csv/)
 * [Active Topics](https://wordpress.org/support/plugin/export-users-to-csv/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/export-users-to-csv/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/export-users-to-csv/reviews/)

 * 10 replies
 * 3 participants
 * Last reply from: [roya2018](https://wordpress.org/support/users/roya2018/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/error-when-exporting-users/#post-10617187)
 * Status: resolved