Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-28443 Action logging improvements META
  3. MDL-28384

Can not insert NULL url into log table

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0.4, 2.1.1
    • 2.0.3
    • Database SQL/XMLDB
    • None

      $FULLME gets set to NULL in certain places in initialise_fullme() and initialise_fullme_cli()

      // Probably some weird external script
      $SCRIPT = $FULLSCRIPT = $FULLME = $ME = null; ...
      if (strpos($topfile, $dirroot) !== 0) {
      // Probably some weird external script
      $SCRIPT = $FULLSCRIPT = $FULLME = $ME = null;
      } else {
      $relativefile = substr($topfile, strlen($dirroot));
      $relativefile = str_replace('
      ', '/', $relativefile);
      // Win fix
      $SCRIPT = $FULLSCRIPT = $relativefile;
      $FULLME = $ME = null;
      }

      This happens on forum cron when subscriptions send to bad email address etc.

      Error: Insert into log table failed at Tuesday 19th of July 2011 03:06:11 PM.
      It is possible that your disk is full. The failed query parameters are:
      array ( 'time' => 1311044771, 'userid' => '551', 'course' => '1', 'ip' => '130.xxx.xxx.xxx', 'module' => 'library', 'cmid' => 0, 'action' => 'mailer', 'url' => NULL, 'info' => 'ERROR: SMTP Error: The following recipients failed: student549@127.0.0.1<p>SMTP server error: 5.1.3 Bad recipient address syntax </p> ', )

      More:
      SMTP Error: The following recipients failed: student549@127.0.0.1
      ERROR: SMTP Error: The following recipients failed: student549@127.0.0.1<p>SMTP server error: 5.1.3 Bad recipient address syntax
      </p>

      ++ Error: Could not insert a new entry to the Moodle log ++

      • line 1700 of /lib/datalib.php: call to debugging()
      • line 4772 of /lib/moodlelib.php: call to add_to_log()
      • line 61 of /message/output/email/message_output_email.php: call to email_to_user()
      • line 153 of /lib/messagelib.php: call to message_output_email->send_message()
      • line 648 of /mod/forum/lib.php: call to message_send()
      • line 87 of /lib/cronlib.php: call to forum_cron()
      • line 79 of /admin/cron.php: call to cron_run()
        ++ Error calling message processor email ++
      • line 154 of /lib/messagelib.php: call to debugging()
      • line 648 of /mod/forum/lib.php: call to message_send()
      • line 87 of /lib/cronlib.php: call to forum_cron()
      • line 79 of /admin/cron.php: call to cron_run()

            skodak Petr Skoda
            twilliams Troy Williams
            Sam Hemelryk Sam Hemelryk
            Dongsheng Cai Dongsheng Cai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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