strangerstudios / paid-memberships-pro

The Trusted Membership Platform That Grows with You: Restrict access to content and charge recurring subscriptions using Stripe, PayPal, and more. Fully open source. 100% GPL.
https://www.paidmembershipspro.com
Other
469 stars 359 forks source link

preheader/checkout.php null object #27

Closed drrobotnik closed 12 years ago

drrobotnik commented 12 years ago

If the user is logged in, and selecting a free membership I get an error at the line below. I believe this is because the user is already logged in, so it never hits the signon line where $user is defined. If this is changed to $current_user, the script begins working. This makes sense because if the user wasn't logged in, they'll hit the sign on script, and current user will always be defined.

https://github.com/strangerstudios/paid-memberships-pro/blob/master/preheaders/checkout.php#L806

strangerstudios commented 12 years ago

Thanks for pointing this out. You are correct RE the bug and the fix. I've updated this in the DEV version and will be included in the next release.

strangerstudios commented 12 years ago

https://github.com/strangerstudios/paid-memberships-pro/blob/dev/preheaders/checkout.php#L852

Thanks again. Closing.