Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.0.4, 2.1.1
    • Component/s: Database SQL/XMLDB
    • Labels:
      None
    • Rank:
      18164

      Description

      $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()

        Issue Links

          Activity

          Hide
          Petr Škoda added a comment -

          Thanks a lot for the report and the proposed patch!

          Show
          Petr Škoda added a comment - Thanks a lot for the report and the proposed patch!
          Hide
          Sam Hemelryk added a comment -

          Thanks Petr, integrated now. Good spotting Troy!

          Show
          Sam Hemelryk added a comment - Thanks Petr, integrated now. Good spotting Troy!
          Hide
          Dongsheng Cai added a comment -

          Passed, thanks all.

          Show
          Dongsheng Cai added a comment - Passed, thanks all.
          Hide
          Petr Škoda added a comment -

          Thanks everybody, this is now part of the weekly build.

          Show
          Petr Škoda added a comment - Thanks everybody, this is now part of the weekly build.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: