I installed legal module and im not sure how the user bypass this on registration form since is required. I tested many times and if i dont check the box will not let me to continue the registration but one user did it without checking the box.
Now he cant login on the site and when i go to edit his account i cant check the terms and condition checkbox and i receive this error:
Notice: Undefined variable: accepted in legal_form_user_profile_form_alter() (line 296 of /var/www/vhosts/mysite.com/mysite.com/httpdocs/sites/all/modules/legal/legal.module).
Thanks
Comments
Comment #1
robert castelo commentedTry Legal 7.1.1
Re-open issue if still a problem.
Comment #2
site1 commentedIssue still exists in 7.1.1
Comment #3
robert castelo commentedNeither of us can reproduce this, so unless you can provide more info on how the user bypassed T&C acceptance there's no possibility of a fix.
Could it have been another module interfering with the registration process?
Comment #4
terrychild commentedHi
For what it's worth I can reproduce the error message by doing the following:
1. Add users to site without Legal module installed.
2. Install Legal module
3. Log in as admin and edit an existing user's account.
The error is displayed.
When the user has subsequently logged in and agreed the error disappears.
Cheers
Comment #5
robert castelo commentedThanks, that gives me something to go on, will investigate
Comment #6
slowflyer commentedHi,
I've the same error, when a user registers using Facebook Connect (module "Drupal for Facebook"). The user account is created, but when going to the userprofile, logged in as this user, the error occurs.
Comment #7
robert castelo commentedslowflyer that sounds like a separate issue:
http://drupal.org/node/840068
Comment #8
raulmuroc commentedTo me the same as @terrychild:
The error is displayed.
When the user has subsequently logged in and agreed the error disappears.
Cheers
Comment #9
burgs commentedThe error is that the $accepted variable isn't initialised. We can either do that at the beginning of that function, or do it after line 274 where, with the right conditions, it will get through without initialising the variable.
Insert
after line 274 to solve this issue.
Anyone want to double check and roll a patch?
Comment #10
geek-merlinIt looks like this is solved in the source but never got closed.
Comment #11
raulmuroc commented