Title: error in exporting user list
Last modified: December 23, 2021

---

# error in exporting user list

 *  Resolved [miti2miti](https://wordpress.org/support/users/miti2miti/)
 * (@miti2miti)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-in-exporting-user-list/)
 * Hi after updating to WP members version 3.4.0.1, when I try to export users list
   in excel, I am getting the error of ‘undefined variable:…..on line 279’, ‘Warning:
   Cannot modify header information – headers already sent by…’.
 * Please help. Thanks

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

 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-in-exporting-user-list/#post-15191756)
 * Unfortunately, you’ve trimmed off key elements of the error – specifically the
   undefined variable name and the file the error occurred on. I can’t determine
   the problem without that information.
 * If it’s the class-wp-members-user-export.php file, the variable at line 279 is
   a core setting, so if it’s not included in the plugin’s loaded options, the next
   question would be “what version did you update from?”
 *  [krutzy](https://wordpress.org/support/users/krutzy/)
 * (@krutzy)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-in-exporting-user-list/#post-15191917)
 * Just to add, I use this feature all of the time and works great. I wonder how
   many fields are you exporting because you may have many more fields than I – 
   I have about 15 or 20 added fields. Just something to look at.
    Kevin
 *  Thread Starter [miti2miti](https://wordpress.org/support/users/miti2miti/)
 * (@miti2miti)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-in-exporting-user-list/#post-15192943)
 * Hi, below is the entire error message. Sadly I don’t remember the earlier version
   but I have been using the plugin for less than 10 months. Before updating the
   plugin, the export in excel was working perfectly fine. I have not made any changes
   in the no. of fields or anything else.
 * **Error message**
 *     ```
       Notice: Undefined variable: wpmem in /home1/phoentqb/public_html/sitename.com/wp-content/plugins/wp-members/includes/admin/class-wp-members-user-export.php on line 279
   
       Notice: Trying to get property 'mod_reg' of non-object in /home1/phoentqb/public_html/sitename.com/wp-content/plugins/wp-members/includes/admin/class-wp-members-user-export.php on line 279
   
       Notice: Undefined variable: wpmem in /home1/phoentqb/public_html/sitename.com/wp-content/plugins/wp-members/includes/admin/class-wp-members-user-export.php on line 282
   
       Notice: Trying to get property 'use_exp' of non-object in /home1/phoentqb/public_html/sitename.com/wp-content/plugins/wp-members/includes/admin/class-wp-members-user-export.php on line 282
   
       Notice: Undefined variable: wpmem in /home1/phoentqb/public_html/sitename.com/wp-content/plugins/wp-members/includes/admin/class-wp-members-user-export.php on line 289
   
       Notice: Trying to get property 'enable_products' of non-object in /home1/phoentqb/public_html/sitename.com/wp-content/plugins/wp-members/includes/admin/class-wp-members-user-export.php on line 289
   
       Warning: Cannot modify header information - headers already sent by (output started at /home1/phoentqb/public_html/sitename.com/wp-content/plugins/wp-members/includes/admin/class-wp-members-user-export.php:279) in /home1/phoentqb/public_html/sitename.com/wp-content/plugins/wp-members/includes/admin/class-wp-members-user-export.php on line 134
   
       Warning: Cannot modify header information - headers already sent by (output started at /home1/phoentqb/public_html/sitename.com/wp-content/plugins/wp-members/includes/admin/class-wp-members-user-export.php:279) in /home1/phoentqb/public_html/sitename.com/wp-content/plugins/wp-members/includes/admin/class-wp-members-user-export.php on line 135
   
       Warning: Cannot modify header information - headers already sent by (output started at /home1/phoentqb/public_html/sitename.com/wp-content/plugins/wp-members/includes/admin/class-wp-members-user-export.php:279) in /home1/phoentqb/public_html/sitename.com/wp-content/plugins/wp-members/includes/admin/class-wp-members-user-export.php on line 136
   
       Warning: Cannot modify header information - headers already sent by (output started at /home1/phoentqb/public_html/sitename.com/wp-content/plugins/wp-members/includes/admin/class-wp-members-user-export.php:279) in /home1/phoentqb/public_html/sitename.com/wp-content/plugins/wp-members/includes/admin/class-wp-members-user-export.php on line 137
       ```
   
 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-in-exporting-user-list/#post-15193725)
 * Thanks for the additional info. I was able to find the problem, and there is 
   in fact a bug in the new version’s export process.
 * The good news: it’s easily fixable.
 * I will be pushing out a fix for this as soon as I can. In the meantime, you can
   patch it by replacing the file `includes/admin/class-wp-members-user-export.php`
   with the version at the following gist:
 * [https://gist.github.com/rocketgeek/c5537b04d966fe4dec9a9048614a0040](https://gist.github.com/rocketgeek/c5537b04d966fe4dec9a9048614a0040)
 *  Thread Starter [miti2miti](https://wordpress.org/support/users/miti2miti/)
 * (@miti2miti)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-in-exporting-user-list/#post-15193934)
 * Thanks a lot! sincerely appreciate the quick resolution

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

The topic ‘error in exporting user list’ is closed to new replies.

 * ![](https://ps.w.org/wp-members/assets/icon-256x256.png?rev=1226414)
 * [WP-Members Membership Plugin](https://wordpress.org/plugins/wp-members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-members/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-members/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [miti2miti](https://wordpress.org/support/users/miti2miti/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/error-in-exporting-user-list/#post-15193934)
 * Status: resolved