• Resolved miti2miti

    (@miti2miti)


    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

    (@cbutlerjr)

    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?”

    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

    (@miti2miti)

    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

    (@cbutlerjr)

    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

    Thread Starter miti2miti

    (@miti2miti)

    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.