Authentication warning for registration to "No institution"

Bug #1043015 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Committed
Medium
Son Nguyen

Bug Description

When you only have "No institution" on your site and both "Registration allowed" and "Confirm registration" turned on (but also only "Registration allowed"), you get the following warning message:

[WAR] f9 (auth/lib.php:2147) Undefined index: authtype
Call stack (most recent first):

    log_message("Undefined index: authtype", 8, true, true, "/var/www/maharadev/code/htdocs/auth/lib.php", 2147) at /var/www/maharadev/code/htdocs/lib/errors.php:446
    error(8, "Undefined index: authtype", "/var/www/maharadev/code/htdocs/auth/lib.php", 2147, array(size 4)) at /var/www/maharadev/code/htdocs/auth/lib.php:2147
    auth_register_submit(object(Pieform), array(size 10)) at Unknown:0
    call_user_func_array("auth_register_submit", array(size 2)) at /var/www/maharadev/code/htdocs/lib/pieforms/pieform.php:514
    Pieform->__construct(array(size 11)) at /var/www/maharadev/code/htdocs/auth/lib.php:2030
    auth_generate_registration_form_js(array(size 11), array(size 0)) at /var/www/maharadev/code/htdocs/register.php:209

Tags: phpwarning
Changed in mahara:
status: New → Triaged
importance: High → Medium
tags: added: phpwarning
Son Nguyen (ngson2000)
Changed in mahara:
assignee: nobody → Son Nguyen (ngson2000)
Son Nguyen (ngson2000)
Changed in mahara:
status: Triaged → In Progress
Revision history for this message
Son Nguyen (ngson2000) wrote :

This did happen if every institutions only use Internal auth.

Revision history for this message
Son Nguyen (ngson2000) wrote :
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/1644
Committed: http://gitorious.org/mahara/mahara/commit/9d657b76ec2deeb19ae58ca5d662678e7d681c59
Submitter: Melissa Draper (<email address hidden>)
Branch: master

commit 9d657b76ec2deeb19ae58ca5d662678e7d681c59
Author: Son Nguyen <email address hidden>
Date: Fri Sep 7 09:47:47 2012 +1200

    Fix the authentication warning for registration (bug #1043015)

    When all institutions in the site have only Internal auth method,
    values['authtype'] is not set.

    Change-Id: I247e6033f69b40b2016ebd4a2ccac04603e7c020
    Signed-off-by: Son Nguyen <email address hidden>

Melissa Draper (melissa)
Changed in mahara:
status: In Progress → Fix Committed
Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/1655
Committed: http://gitorious.org/mahara/mahara/commit/a990ef32af44d7bbc258299bce193bc049494da6
Submitter: Hugh Davenport (<email address hidden>)
Branch: 1.6_STABLE

commit a990ef32af44d7bbc258299bce193bc049494da6
Author: Son Nguyen <email address hidden>
Date: Fri Sep 7 09:47:47 2012 +1200

    Fix the authentication warning for registration (bug #1043015)

    When all institutions in the site have only Internal auth method,
    values['authtype'] is not set.

    Change-Id: I247e6033f69b40b2016ebd4a2ccac04603e7c020
    Signed-off-by: Son Nguyen <email address hidden>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.