login/signup.php produces notlocalisederrormessage

login/signup.php produces notlocalisederrormessage

by Gabriel R. -
Number of replies: 1

Hi all,


I'm running moodle 2.3+ stable (installed about a week ago).  I installed the moodle freshly, than imported two courses (with users, grades, etc).  Now, when a user tries to register, they get the "sorry, you may not use this page" error, and a link to the notlocalisederrormessage error page: http://docs.moodle.org/23/en/error/moodle/notlocalisederrormessage.

So, I looked in the code, and the error is in login/signup.php, lines 31-33:

if (empty($CFG->registerauth)) {
    print_error('notlocalisederrormessage', 'error', '', 'Sorry, you may not use this page.');
}

a var_dump of $CFG shows that registerauth is an empty string.

Average of ratings: -
In reply to Gabriel R.

Re: login/signup.php produces notlocalisederrormessage

by David Pesce -
Picture of Plugin developers

I ran into a similar problem when I created a custom login page and forgot to turn on email-based self-registration and then set it to enabled.

Site Administration > Plugins > Authentication > Manage Authentication

 

Hope it helps!

Average of ratings: Useful (1)