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

CRON: Failed to add log entry via cron when email address includes a space

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.0.4, 2.1.1
    • Fix Version/s: None
    • Component/s: Forum
    • Database:
      PostgreSQL
    • Workaround:
      Hide

      Fix the email address to not have a space in it.

      Show
      Fix the email address to not have a space in it.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE

      Description

      The problem is occurring for 2 reasons I think.

      • Someone has a space in the username part of their email address
      • Cron tries to email them and is considered invalid email address

      The log entry fails to be added because url parameter is blank during cron processing.

      Current case is email with username part of their email address.
      Email assumingly forum trying to be sent to them via cron.

      This is the error generated via the email_to_user function.

      Insert into log table failed at Wednesday 24th of August 2011 09:16:04 PM.
       It is possible that your disk is full.
       
      The failed query parameters are:
       
      array (
        'time' => 1314186363,
        'userid' => '3',
        'course' => '1',
        'ip' => '0.0.0.0',
        'module' => 'library',
        'cmid' => 0,
        'action' => 'mailer',
        'url' => NULL,
        'info' => 'ERROR: You must provide at least one recipient email address.',
      )

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              tlock Tim Lock
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: