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

Workaround for "Error writing to database" saving Unicode emoji.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 3.1.2
    • None
    • MOODLE_31_STABLE
    • Hide

      Apply patch from linked repo, set and add

      $CFG->mbp4replace = true;

      to config.php.

      Show
      Apply patch from linked repo, set and add $CFG->mbp4replace = true; to config.php.

      On some database configurations, users attempting to post characters outside of the Unicode BMP (16-bit Basic Multilingual Plane - such as emoji) will see an error: "Error writing to database", and their post will be lost (unless they click "back" in their browser).

      Ticket MDL-48228 looks to create a proper fix, but as a workaround we could just strip problematic characters from the post, giving a buggy UX, rather than a useless UX.

            Unassigned Unassigned
            balchd Dave Balch
            cameron1729 cameron1729
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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