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

robert castelo’s picture

Status: Active » Closed (won't fix)

Try Legal 7.1.1

Re-open issue if still a problem.

site1’s picture

Issue still exists in 7.1.1

robert castelo’s picture

Title: Wired error » Registration Form T&C Accept Bypass
Status: Closed (won't fix) » Closed (cannot reproduce)

Neither 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?

terrychild’s picture

Version: 7.x-1.x-dev » 7.x-1.2
Status: Closed (cannot reproduce) » Active

Hi

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

robert castelo’s picture

Thanks, that gives me something to go on, will investigate

slowflyer’s picture

Hi,

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.

robert castelo’s picture

slowflyer that sounds like a separate issue:

http://drupal.org/node/840068

raulmuroc’s picture

To me the same as @terrychild:

1. Added users to site without Legal module installed.
2. Installed Legal module
3. Logged in as admin and edited an existing user's account.

The error is displayed.

When the user has subsequently logged in and agreed the error disappears.

Cheers

burgs’s picture

The 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

$accepted = FALSE;

after line 274 to solve this issue.
Anyone want to double check and roll a patch?

geek-merlin’s picture

Issue summary: View changes
Status: Active » Fixed

It looks like this is solved in the source but never got closed.

raulmuroc’s picture

Status: Fixed » Closed (fixed)