User registration without email confirmation not working

Installation:

elgg 1.7.7

Windows XP

Xampp 1.7.2

PHP v5.3.0

mySQL v5.1.37

. userValidationByEmail plugin is disabled

. One admin user is created

. elgg 1.7.7 is pure/vanilla/out-of-the-box and nothing else is changed

What happens:

1. User lands on elgg registration page - registers and then tries to login - the page is refreshed i.e. user is returned to index page and the user is not logged in

2. In elgg_users_entity table I can see the new user entry

3. I turned on debug mode and the logs had some "undefined" notices:


[28-Feb-2011 16:57:32] PHP NOTICE: 2011-02-28 16:57:32 (PKT): "Undefined variable: rel" in file D:\elgg-1.7.7\mod\profile\views\default\profile\listing.php (line 33)

[28-Feb-2011 16:57:32] PHP NOTICE: 2011-02-28 16:57:32 (PKT): "Undefined variable: info" in file D:\elgg-1.7.7\mod\profile\views\default\profile\listing.php (line 33)

[28-Feb-2011 16:57:33] NOTICE: default/profile/status view does not exist.

[28-Feb-2011 16:57:33] NOTICE: DB query "SELECT * from elgg_metastrings where string= BINARY 'location' limit 1" returned no results.

[28-Feb-2011 16:57:33] PHP NOTICE: 2011-02-28 16:57:33 (PKT): "Undefined index: value" in file D:\elgg-1.7.7\views\default\input\text.php (line 32)

[28-Feb-2011 16:57:33] PHP NOTICE: 2011-02-28 16:57:33 (PKT): "Undefined index: disabled" in file D:\elgg-1.7.7\views\default\input\password.php (line 21)

[28-Feb-2011 16:57:33] PHP NOTICE: 2011-02-28 16:57:33 (PKT): "Undefined index: value" in file D:\elgg-1.7.7\views\default\input\password.php (line 21)

[28-Feb-2011 16:57:33] NOTICE: default/login/extend view does not exist.

[28-Feb-2011 16:57:33] NOTICE: default/owner_block/extend view does not exist.

[28-Feb-2011 16:57:33] NOTICE: default/metatags view does not exist.

[28-Feb-2011 16:57:33] NOTICE: default/footer/links view does not exist.

[28-Feb-2011 16:57:33] NOTICE: default/footer/analytics view does not exist.

[28-Feb-2011 16:57:33] NOTICE: DB Queries for this page: 26

[28-Feb-2011 16:57:33] NOTICE: Page /elgg-1.7.7/ generated in 0.69627094268799 seconds

  • If you Google this "problem", you will see that it is based upon a misconception.

    Disabling the userValidationByEmail plugin does *not* allow users to register without confirming their email addresses. That would be very insecure.  It simply allows some other plugin (eg. LDAP or OpenID) to take over the confirmation process.

    If you have no such plugin activated, then the expected behaviour is exactly what you have seen. No accounts are confirmed and so no new users can login.

     

  • Thanks but it's too bad this misconception isn't document anywhere prominent - not everyone who starts off with elgg knows it's peccadilloes