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

              Assignee:
              rajeshtaneja Rajesh Taneja
              Reporter:
              daniss Daniele Cordella
              Integrator:
              Sam Hemelryk
              Tester:
              Sam Hemelryk
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Jan/12