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

Oracle error in message popup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 1.9.6
    • 1.9.5
    • Messages
    • None
    • Moodle 1.9.5+ on Linux running PHP 5.2.10, Apache 2, database is Oracle 10.1
    • Oracle
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE
    • Easy

      The messaging box throws an Oracle error when trying to list contacts:

      ORA-00911: invalid character

      this is due to semi-colons ; added to SQL, oracle does not like these.

      with bug reporting turned off the contact list is just shown as empty even if contacts have been added.

      Fix: edit /message/lib.php and remove ; from SQL

      Edit /message/lib.php:

      line 52:

      • ORDER BY u.firstname ASC;";
        + ORDER BY u.firstname ASC";

      line 82:

      • ORDER BY u.firstname ASC;";
        + ORDER BY u.firstname ASC";

      Corrected lib.php is attached.

        1. lib.php
          40 kB
          Michael Hughes

            danmarsden Dan Marsden
            mikehughes Michael Hughes
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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