Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.9.5
    • Fix Version/s: 1.9.6
    • Component/s: Messages
    • Labels:
      None
    • Environment:
      Moodle 1.9.5+ on Linux running PHP 5.2.10, Apache 2, database is Oracle 10.1
    • Database:
      Oracle
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      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.

        Gliffy Diagrams

        1. lib.php
          40 kB
          Michael Hughes

          Issue Links

            Activity

            mikehughes Michael Hughes created issue -
            danmarsden Dan Marsden made changes -
            Field Original Value New Value
            Link This issue duplicates MDL-20303 [ MDL-20303 ]
            Hide
            danmarsden Dan Marsden added a comment -

            this was fixed in 1.9.6 - thanks for the report.

            Show
            danmarsden Dan Marsden added a comment - this was fixed in 1.9.6 - thanks for the report.
            danmarsden Dan Marsden made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Assignee moodle.com [ moodle.com ] Dan Marsden [ danmarsden ]
            Fix Version/s 1.9.6 [ 10340 ]
            Resolution Duplicate [ 3 ]
            dougiamas Martin Dougiamas made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            QA Assignee nobody
            dougiamas Martin Dougiamas made changes -
            Workflow jira [ 33691 ] MDL Workflow [ 63225 ]
            dougiamas Martin Dougiamas made changes -
            Workflow MDL Workflow [ 63225 ] MDL Full Workflow [ 92453 ]

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  21/Oct/09