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

$url cannot be null for Oracle in datalib.php add_to_log

XMLWordPrintable

    • Oracle
    • MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE
    • MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE
    • Easy

      Oracle treats the empty string as a NULL and so fails the NOT NULL requirement.

      $url defaults to the empty string and so hits this problem.
      $info also had this problem but was fixed in
      revision 1.348

      add_to_log just needs a similar fix for $url, i.e.

       if ($CFG->type = 'oci8po') { 
       	  	         if (empty($info)) {
       	  	             $info = ' ';
       	  	         }
      +	  	         if (empty($url)) {
      +	  	             $url = ' '; 
      +	  	         }
       }

            stronk7 Eloy Lafuente (stronk7)
            emmelaich Emmel Aich (Inactive)
            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.