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

mod_data: Unknown format passed to format_text

XMLWordPrintable

      Under certain conditions a mod_data activity can throw an error when trying to be viewed (list or single view), see screenshot.

      Some debugging shows: The issue is caused by records for, for example, a text field for which the content1 field in the database table data_content is an empty string instead of null.

      I assume that this happened due to some export/import. But as a solution the code should just be hardened to deal with empty strings equally to dealing with null.

        1. MDL-82931.png
          218 kB
          Ron Carl Alfon Yu

            phmemmel PhMemmel
            phmemmel PhMemmel
            Luca Bösch Luca Bösch
            Amaia Anabitarte Amaia Anabitarte
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 32 minutes
                1h 32m

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