membership name variable doesn't get removed

pawshaker - December 19, 2007 - 21:18
Project:Membership types and registration modification
Version:5.x-1.5
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

A new thread as follow up of issue http://drupal.org/node/193007

It seems that a membership name variable isn't deleted from the variable table when a membership type is deleted.

At admin/user/nf_registration_mod, I only have
Membership 1 (with pageroute)
Membership 2 (with pageroute)

The table variable looks as follows:
a:3:{i:0;s:18:"Membersghip 1";i:2;s:21:"Membership that should not exist anymore";i:3;s:14:"Membership 3";}

Extra info:
When going through the tutorial, I initially enabled the Account Types module as well, afterwards I decided I didn't need this advanced functionality and disabled it. This could have had an impact.

Hope this helps.

#1

rconstantine - December 19, 2007 - 22:11

Thanks for moving this to its own issue. I'll look into this as soon as I can. Meanwhile, I hope if any users have this problem, that they'll find this and learn that it's OK to modify that database entry by hand. In your example, you'd change it to : a:2:{i:0;s:18:"Membersghip 1";i:3;s:14:"Membership 3";}

Note that since you changed the membership names for your example, that the lengths (indicated by s:18 and s:14) don't match your text and should match your real names' lengths. Also note that the integers (i:0 and i:3) are not array keys, but are indicators of which pageroute they are tied to IIRC.

#2

randyhughes47 - December 31, 2007 - 16:17

#3

rconstantine - March 15, 2008 - 19:59
Status:active» fixed

This is fixed in my copy and will be included in the next release, whenever that is.

#4

Anonymous (not verified) - March 29, 2008 - 20:12
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#5

burlap - January 12, 2009 - 18:41
Status:closed» active

I'm using 1.6 (never used this module before) and this issue is still there. The only difference is that I renamed the membership type before I removed it (did not notice there shouldn't be any spaces) and now the original membership type (not renamed) is still there on the "Select desired Membership" page, but not on the list on the module administration page.

 
 

Drupal is a registered trademark of Dries Buytaert.