Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

[Solved] Help Request: Can't set forum to require email confirmation on registration

edited September 2012 in Vanilla 2.0 - 2.8

I tried to update my forums to Require users to confirm their email addresses and I get this error when I try to save it

Garden.Registration.ConfirmEmailRole is required.

What do I need to add to my config file to make it work?

After some searching on here I found and tried these additions that were not in there but it still gives me the error.

$Configuration['Garden']['Registration']['ConfirmEmail'] = '1';

$Configuration['Garden']['Registration']['ConfirmEmailRole'] = '4';

any suggestions? Thanks!

Comments

  • UnderDogUnderDog MVP
    edited September 2012

    I think you're on the right track there

    One extra question : did you convert from another forum system? Which system? Did you do it manually or using the Porter plugin?

    Ok this is the piece of code that shows you need the confirmemailrole :

    if ($this->Form->GetValue('Garden.Registration.ConfirmEmail')) $ConfigurationModel->Validation->ApplyRule('Garden.Registration.ConfirmEmailRole', 'Required');


    So after you've made those changes in your conf/config.php you still get the same error? That's strange. Do you have a Role in your database with ID number 4? After that, it's time to do some debugging.

    Pixelnated
  • edited September 2012

    Hey & thanks @UnderDog
    I converted from phpbb but that was over 3 years ago. I actually thought it was set but I just noticed it was not after I found a ton of spam accounts getting created (although not posting yet) in the activity log.

    You sent me on the exact right path. Although I had a Guest role, it was not showing up in the dropdown to select (Only member, administrator & moderator) so I went back and edited my guest role and now it is there and everything seems to be fine.

    Thank you again for sending me on the right path!

    the forums: http://freakscene.net/forums/

    If I could update my original post I would set it to solved at this point.

  • I know you solved the problem, but I added these links that are helpful if you are converting.

    http://vanillaforums.org/discussion/21516/how-do-i-correctly-reset-my-default-roles-in-2-0-18-4#latest

    also see, which I think makes life easier in the long run, if you set your roles and roleids to at least have these roles and roleids...
    http://vanillaforums.org/discussion/comment/157731/#Comment_157731

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Sign In or Register to comment.