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

errors from moodle.org cron.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Messages
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      See below. Under some circumstance a message is being written to message_read with a null timeread.

      Sending PHP Notice: Undefined variable: timeread in /var/www/vhosts/moodle.org/html/lib/messagelib.php on line 125
      Default exception handler: Error writing to database Debug: Column 'timeread' cannot be null
      INSERT INTO message_read (useridfrom,useridto,subject,fullmessage,fullmessageformat,fullmessagehtml,smallmessage,notification,contexturl,contexturlname,timecreated,timeread) VALUES(?,?,?,?,?,?,?,?,?,?,?,?)
      [array (
      0 => '1263195',
      1 => '1250173',
      2 => 'Using Moodle: Feedback on Lesson Question Pages',
      3 => 'Using Moodle -> Forums -> Lesson module -> Feedback on Lesson Question Pages
      ---------------------------------------------------------------------
      Feedback on Lesson Question Pages
      by Rob Beckett - Thursday, October 28, 2010, 02:03 PM
      ---------------------------------------------------------------------

      I am using lessons and I just wish that the original question page would
      not be visible only the Feedback is that Possible I can\'t seem to work it
      out.

      Love it someone could let me know Cheers Rob

      ---------------------------------------------------------------------
      This is a copy of a message posted on the Using Moodle website.

      To reply click on this link:
      http://moodle.org/mod/forum/post.php?reply=705337

      ---------------------------------------------------------------------
      Unsubscribe from this forum: http://moodle.org/mod/forum/subscribe.php?id=333
      ',
      4 => '2',
      5 => '<head></head>
      <body id="email">

      <div class="navbar"><a target="_blank" href="http://moodle.org/course/view.php?id=5">Using Moodle</a> » <a target="_blank" href="http://moodle.org/mod/forum/index.php?id=5">Forums</a> » <a target="_blank" href="http://moodle.org/mod/forum/view.php?f=333">Lesson module</a> » <a target="_blank" href="http://moodle.org/mod/forum/discuss.php?d=161105">Feedback on Lesson Question Pages</a></div><table border="0" cellpadding="3" cellspacing="0" class="forumpost"><tr class="header"><td width="35" valign="top" class="picture left"><a href="http://moodle.org/user/view.php?id=1263195&course=5"><img src="http://moodle.org/theme/image.php?theme=moodleofficial&image=u%2Ff2&rev=191" alt="Picture of Rob Beckett" title="Picture of Rob Beckett" class="userpicture defaultuserpic" width="35" height="35" /></a></td><td class="topic starter"><div class="subject">Feedback on Lesson Question Pages</div><div class="author">by <a href="http://moodle.org/user/view.php?id=1263195&course=5">Rob Beckett</a> - Thursday, October 28, 2010, 02:03 PM</div></td></tr><tr><td class="left side" valign="top"> </td><td class="content"><p>I am using lessons and I just wish that the original question page would not be visible only the Feedback is that Possible I can\'t seem to work it out.</p>
      <p>Love it someone could let me know Cheers Rob</p><div class="commands"><a target="_blank" href="http://moodle.org/mod/forum/post.php?reply=705337">Reply</a></div><div class="link"><a target="_blank" href="http://moodle.org/mod/forum/discuss.php?d=161105#p705337">See this post in context</a></div></td></tr></table>

      <hr /><div class="mdl-align unsubscribelink">
      <a href="http://moodle.org/mod/forum/subscribe.php?id=333">Unsubscribe from this forum</a> 
      <a href="http://moodle.org/mod/forum/unsubscribeall.php">Unsubscribe from all forums</a></div></body>',
      6 => 'Rob Beckett posted in Using Moodle: Lesson module: Feedback on Lesson Question Pages',
      7 => 1,
      8 => 'http://moodle.org/mod/forum/discuss.php?d=161105#p705337',
      9 => 'Feedback on Lesson Question Pages',
      10 => 1288249213,
      11 => NULL,
      )]

      • line 394 of /lib/dml/moodle_database.php: dml_write_exception thrown
      • line 816 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
      • line 858 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
      • line 126 of /lib/messagelib.php: call to mysqli_native_moodle_database->insert_record()
      • line 649 of /mod/forum/lib.php: call to message_send()
      • line 87 of /lib/cronlib.php: call to forum_cron()
      • line 61 of /admin/cli/cron.php: call to cron_run()

      !!! Error writing to database !!!

        Attachments

          Activity

            People

            • Assignee:
              andyjdavis Andrew Davis
              Reporter:
              andyjdavis Andrew Davis
              Tester:
              Nobody
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10