Free sign up not working on local site
-
Okay, this is a bit of a curve ball I think.
I have a live version of my site and a local version running on my own machine which I use for testing.
On the local version of the site, sign up for a free membership level has stopped working. It still works fine on the live version. When I try to sign up, I get a blank page after filling in the details at the membership-checkout page.
I’ve deleted the local site and the wordpress database, recreated the database and imported the data from a db export of live, reinstalled wordpress and copied over the contents of the wp_content folder from live. The problem persists.
Output of the apache error log on the local site when I try to sign up as a new user:
[Tue Jun 18 06:20:46 2013] [error] [client 127.0.0.1] WordPress database error Data truncated for column 'cycle_period' at row 1 for query INSERT INTO wp_pmpro_memberships_users (user_id, membership_id, code_id, initial_payment, billing_amount, cycle_number, cycle_period, billing_limit, trial_amount, trial_limit, startdate, enddate)\r\n\t\t\t\t\t\tVALUES('31',\r\n\t\t\t\t\t\t'2',\r\n\t\t\t\t\t\t'0',\r\n\t\t\t\t\t\t'0.00',\r\n\t\t\t\t\t\t'0.00',\r\n\t\t\t\t\t\t'0',\r\n\t\t\t\t\t\t'',\r\n\t\t\t\t\t\t'0',\r\n\t\t\t\t\t\t'0.00',\r\n\t\t\t\t\t\t'0',\r\n\t\t\t\t\t\tNOW(),\r\n\t\t\t\t\t\tNULL) made by require('C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\[local directory]\\wp-blog-header.php'), wp, WP->main, do_action_ref_array, call_user_func_array, pmpro_wp, require_once('C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\[local directory]\\wp-content\\plugins\\paid-memberships-pro\\preheaders\\checkout.php'), pmpro_changeMembershipLevel, referer: https://localhost/[local directory]/membership-account/membership-checkout/?level=2 [Tue Jun 18 06:20:46 2013] [error] [client 127.0.0.1] PHP Fatal error: Call to a member function cancel() on a non-object in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\[local directory]\\wp-content\\plugins\\paid-memberships-pro\\preheaders\\checkout.php on line 974, referer: https://localhost/[local directory]/membership-account/membership-checkout/?level=2
This isn’t a deal breaker since it still works on the live site, but is irksome since it hampers my testing on the local site somewhat.
I wonder if you have any ideas what might be causing the error? It did work previously, and I can’t think of anything I’ve changed on my local system.
https://www.ads-software.com/extend/plugins/paid-memberships-pro/
- The topic ‘Free sign up not working on local site’ is closed to new replies.