Title: No renewal button
Last modified: August 30, 2016

---

# No renewal button

 *  Resolved [sflwa](https://wordpress.org/support/users/sflwa/)
 * (@sflwa)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/no-renewal-button/)
 * I’ve got to be missing something. I’ve been running this in a site without issue
   for about 2 months now. This morning I get an email saying the renewal button
   is no longer showing and how can a member renew early.
 * This is for a recurring membership where the member was imported into the system
   so there is no gateway transaction set up yet
 * [https://wordpress.org/plugins/paid-memberships-pro/](https://wordpress.org/plugins/paid-memberships-pro/)

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

 *  [wealthy](https://wordpress.org/support/users/wealthy/)
 * (@wealthy)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/no-renewal-button/#post-6708977)
 * The “Renew” button is shown on the Membership Levels page for non-recurring membership
   levels which have an expiration date.
    If yours is a “recurring” membership then
   there will be no renew button
 * Since you have imported members, the code to display the renew button uses the
   member’s end date, so ensure that each member you have imported has an end date.
 *  Thread Starter [sflwa](https://wordpress.org/support/users/sflwa/)
 * (@sflwa)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/no-renewal-button/#post-6708999)
 * Pete –
 * 1) Yes the memberships are recurring
 * 2) Yes the memberships have an end date
 * 3) There is no gateway transaction – So should I tell people to just enter their
   billing information and PMP will automatically charge the card on the renewal
   date??
 *  [wealthy](https://wordpress.org/support/users/wealthy/)
 * (@wealthy)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/no-renewal-button/#post-6709000)
 * Lets see what Jason says.
    he is coming in more often now to check so he will
   have an answer for this…
 * Hopefully you can hold off for a day or two…
 *  [xzistance3](https://wordpress.org/support/users/xzistance3/)
 * (@xzistance3)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/no-renewal-button/#post-6709035)
 * I’m having the same issue. I swear the ‘renewal’ button use to be there, but 
   now I can’t find it anywhere.
 * I am testing with non-recurring memberships who are logged in and should be seeing‘
   Renew’ as a button on the membership levels page. Instead, I just see a ‘Your
   Level’ button grayed out or ‘Select’ next to other alternative levels.
 * Did the latest update nuke the Renew button by accident? Please help!
 *  [xzistance3](https://wordpress.org/support/users/xzistance3/)
 * (@xzistance3)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/no-renewal-button/#post-6709036)
 * I’m still trying to debug this, but I think the issue may be on line 225 of /
   paid-memberships-pro/includes/functions.php:
 * `if( $now + ($days*3600*24) < strtotime( $level->enddate, $now ) )`
 * This method returns _false_:
 * `strtotime( $level->enddate, $now )`
 * From what I can tell, $level->enddate is already a unix timestamp, and perhaps
   why the function is returning false for an error.
 *  Thread Starter [sflwa](https://wordpress.org/support/users/sflwa/)
 * (@sflwa)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/no-renewal-button/#post-6709037)
 * If you figure it out let me know as I have 2 sites with the issue right now
 *  [wealthy](https://wordpress.org/support/users/wealthy/)
 * (@wealthy)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/no-renewal-button/#post-6709038)
 * Hi
    I have asked Jason to pop in and have a look. He will be able to give a definitive
   answer to all this..
 * Please bear with us until he can get here to help..
 * if you have ticked the “Notify me of follow-up posts via email” at the bottom
   you will be notify as soon as some one ( Jason) makes a new update in this post.
 *  [xzistance3](https://wordpress.org/support/users/xzistance3/)
 * (@xzistance3)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/no-renewal-button/#post-6709039)
 * This is the fix from what I can tell.
 * Change that line to this:
 * `if( $now + ($days*3600*24) > $level->enddate )`
 * This checks to see if the membership expiration date is within the membership
   length. ie. If the expiration date is within 1 year, it’ll return true and show
   the ‘Renew’ option.
 * I hacked the plugin until a fix is released b/c my site is live and needs it 
   too.
 *  Plugin Author [Jason Coleman](https://wordpress.org/support/users/strangerstudios/)
 * (@strangerstudios)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/no-renewal-button/#post-6709088)
 * xzistance3 is right on this one. I’ve patched this here ([https://github.com/strangerstudios/paid-memberships-pro/commit/63d32259d0eda09cb895c4c42bdf57ee230def63](https://github.com/strangerstudios/paid-memberships-pro/commit/63d32259d0eda09cb895c4c42bdf57ee230def63))
   and it will go out in v1.8.6.5 soon (maybe today).
 *  Plugin Author [Jason Coleman](https://wordpress.org/support/users/strangerstudios/)
 * (@strangerstudios)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/no-renewal-button/#post-6709089)
 * Thanks!
 *  [LPP_DEV](https://wordpress.org/support/users/lpp_dev/)
 * (@lpp_dev)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/no-renewal-button/#post-6709171)
 * How do members renew when I have their membership set to auto-renew but the auto-
   renew fails because the user’s card has expired. Is there a link for this scenario?
   Or do they simply re-purchase a membership? Will this create a new account for
   them or update the status of their existing account?
 * Thanks!
    John Glynn

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

The topic ‘No renewal button’ 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/)

 * 11 replies
 * 5 participants
 * Last reply from: [LPP_DEV](https://wordpress.org/support/users/lpp_dev/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/no-renewal-button/#post-6709171)
 * Status: resolved