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

Error reading from database in Custom language report

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0
    • 2.0
    • Administration
    • None
    • MySQL
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE
    • Easy

      To reproduce:

      • click on Language customization form the Admin > Language menu
      • click "Check out strings into traslator"
      • the following error appears:

      Error reading from database

      Debug info: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '* FROM mdl_customlang WHERE BINARY lang = 'en' AND componentid = 1 ORDER BY str' at line 1
      SELECT stringid, * FROM mdl_customlang WHERE BINARY lang = ? AND componentid = ? ORDER BY stringid
      [array (
      0 => 'en',
      1 => '1',
      )]
      Stack trace:

      • line 391 of /lib/dml/moodle_database.php: dml_read_exception thrown
      • line 732 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
      • line 1078 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
      • line 1027 of /lib/dml/moodle_database.php: call to moodle_database->get_records_select()
      • line 114 of /admin/report/customlang/locallib.php: call to moodle_database->get_records()
      • line 43 of /admin/report/customlang/index.php: call to report_customlang_utils::checkout()

            mudrd8mz David Mudrák (@mudrd8mz)
            andreabix Andrea Bicciolo
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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