Title: EXPORT ERROR
Last modified: December 22, 2016

---

# EXPORT ERROR

 *  Resolved [polvolula](https://wordpress.org/support/users/polvolula/)
 * (@polvolula)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/export-error-22/)
 * Hi,
 * I’m trying to export data in membership2 -> settings -> import tool -> generate
   export
 * Fatal error: Class ‘MS_Addon_Coupon_Model’ not found in /home/myname/public_html/
   wp-content/plugins/membership/app/model/import/class-ms-model-import-export.php
   on line 193
 * in this file –>
    …
 * in line 192 // Export Coupons.
    $coupons = MS_Addon_Coupon_Model::get_coupons(
   array( ‘nopaging’ => true ) ); $data->coupons = array(); foreach ( $coupons as
   $coupon ) { if ( intval( $coupon->max_uses ) <= intval( $coupon->used ) ) { continue;}
   $data->coupons[] = $this->export_coupon( $coupon->id ); }
 *  lib3()->net->file_download( json_encode( $data ), ‘membership2-export.json’ );
   
   in line 201 }
 * how i can export?
 * ty

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

 *  Plugin Support [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/export-error-22/#post-8584656)
 * Hello [@polvolula](https://wordpress.org/support/users/polvolula/),
 * Please replace this file [here](https://ufile.io/a201e) with the file that is
   located inside the following path:
    `wp-content/plugins/membership/app/model/
   import/class-ms-model-import-export.php`
 * This should fix the issue.
 * Let me know if you have any further questions!
 * Kind regards,
    Nastia
 *  [dvmorris1](https://wordpress.org/support/users/dvmorris1/)
 * (@dvmorris1)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/export-error-22/#post-8796603)
 * HI. I face the same problem but your replacement file at [https://ufile.io/a201e](https://ufile.io/a201e)
   seems to have expired. Can you post it again please ( or perhaps fix the error
   in an update to your plugin? )
 * Thanks
    David
 *  Plugin Support [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/export-error-22/#post-8802377)
 * Hello David,
 * I replied in separate thread about that file [https://wordpress.org/support/topic/members-export-not-working-fatal-error/#post-8802375](https://wordpress.org/support/topic/members-export-not-working-fatal-error/#post-8802375)
 * kind regards,
    Kasia

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

The topic ‘EXPORT ERROR’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/membership_b8cdaa.svg)
 * [Membership 2](https://wordpress.org/plugins/membership/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/membership/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/membership/)
 * [Active Topics](https://wordpress.org/support/plugin/membership/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/membership/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/membership/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/export-error-22/#post-8802377)
 * Status: resolved