Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-30518

custom checkboxes profile fields in signup form causes invalid $id parameter detection at signup time

    XMLWordPrintable

Details

    Description

      Set debug level to DEVELOPER

      Go to Site administration > Users > Accounts > User profile fields

      Add a "checkbox" profile fields to the signup form with the following attributes:
      -> Is this field required? yes
      -> Display on signup page? yes
      -> Who is this field visible to? Visible to everyone

      Log out.

      Go to the signup form as non authenticated user.

      You see:

      context_system::instance(): invalid $id parameter detected, should be 0
       
          line 5532 of /lib/accesslib.php: call to debugging()
          line 6807 of /lib/accesslib.php: call to context_system::instance()
          line 32 of /user/profile/field/checkbox/field.class.php: call to get_context_instance()
          line 72 of /user/profile/lib.php: call to profile_field_checkbox->edit_field_add()
          line 477 of /user/profile/lib.php: call to profile_field_base->edit_field()
          line 103 of /login/signup_form.php: call to profile_signup_fields()
          line 154 of /lib/formslib.php: call to login_signup_form->definition()
          line 46 of /login/signup.php: call to moodleform->moodleform()

      Attachments

        Issue Links

          Activity

            People

              rajeshtaneja Rajesh Taneja
              daniss Daniele Cordella
              Sam Hemelryk Sam Hemelryk
              Sam Hemelryk Sam Hemelryk
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/Jan/12