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

Error inserting user_info_data durring account creation.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.3.3, 3.3.4, 3.4.1
    • None
    • MOODLE_33_STABLE, MOODLE_34_STABLE

      If you have a set an user profile filed as a dropdown menu and not set an option for a empty string and you try to create an user account whith the function "create_user_record" in moodlelib.php the following error will show up:

      {{Debug info: Column 'data' cannot be null
      INSERT INTO mdl_user_info_data (userid,fieldid,data) VALUES(?,?,?)
      [array (
      0 => 8356,
      1 => '8',
      2 => NULL,
      )]
      Error code: dmlwriteexception }}

      This happens per instance, if you log in the first time with a shibboleth authentification.

            Unassigned Unassigned
            rmootracker Roger Barras
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.