Title: Coupon error: &#039;Error applying discount code [1]&#039;
Last modified: August 21, 2016

---

# Coupon error: 'Error applying discount code [1]'

 *  Resolved [Chris Van Patten](https://wordpress.org/support/users/chrisvanpatten/)
 * (@chrisvanpatten)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/coupon-error-error-applying-discount-code-1/)
 * I’m using WP 3.6 w/ the latest version of PM Pro.
 * While everything previously worked fine, I now get an error message: ‘Error applying
   discount code [1]’ whenever I try to apply a coupon code.
 * I’m using a custom template for my checkout page; it was built around version
   1.6. Were there any changes in recent versions that might be causing this breakage?
 * [http://wordpress.org/plugins/paid-memberships-pro/](http://wordpress.org/plugins/paid-memberships-pro/)

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

 *  Plugin Author [Jason Coleman](https://wordpress.org/support/users/strangerstudios/)
 * (@strangerstudios)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/coupon-error-error-applying-discount-code-1/#post-4029327)
 * Hi, Chris!
 * Yes. There were some updates to the checkout page that you’ll have to incorporate
   into your older checkout template.
 * Namely, we upped the timeout from 2000 to 5000. So that might help (this sometimes
   shows up when the AJAX request times out). There is a filter there now as well
   to override it.
 * The other change made is that the AJAX calls are made to admin_url instead of
   home_url. Sometimes your home_url might be a static page that isn’t loading WP
   or processing PHP/etc.
 * Here’s the bit you’ll want to look at:
    [https://github.com/strangerstudios/paid-memberships-pro/blob/dev/pages/checkout.php#L127](https://github.com/strangerstudios/paid-memberships-pro/blob/dev/pages/checkout.php#L127)
 * And the same update to some similar code further down the page:
    [https://github.com/strangerstudios/paid-memberships-pro/blob/dev/pages/checkout.php#L592](https://github.com/strangerstudios/paid-memberships-pro/blob/dev/pages/checkout.php#L592)
 *  Thread Starter [Chris Van Patten](https://wordpress.org/support/users/chrisvanpatten/)
 * (@chrisvanpatten)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/coupon-error-error-applying-discount-code-1/#post-4029334)
 * Thanks so much Jason. I’ll get these fixes incorporated and report back if/when
   it all works again.
 * Thanks!
 *  [Slocum Studio](https://wordpress.org/support/users/slocumstudio/)
 * (@slocumstudio)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/coupon-error-error-applying-discount-code-1/#post-4029582)
 * Hi Chris,
 * I just wanted to check in and see if you were able to get everything straightened
   out?
 * Thank You
 *  [Slocum Studio](https://wordpress.org/support/users/slocumstudio/)
 * (@slocumstudio)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/coupon-error-error-applying-discount-code-1/#post-4029607)
 * Hi Chris,
 * Just wanted to check in one more time before I resolve this ticket. We’re you
   able to get everything straightened out?
 * Thank You

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

The topic ‘Coupon error: 'Error applying discount code [1]'’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paid-memberships-pro_f1dacb.svg)
 * [Paid Memberships Pro - Content Restriction, User Registration, & Paid Subscriptions](https://wordpress.org/plugins/paid-memberships-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paid-memberships-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paid-memberships-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/paid-memberships-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paid-memberships-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paid-memberships-pro/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Slocum Studio](https://wordpress.org/support/users/slocumstudio/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/coupon-error-error-applying-discount-code-1/#post-4029607)
 * Status: resolved