Moodle
  1. Moodle
  2. MDL-18399

Executing CRON.PHP into secction "generate new password emails for user" found error in select

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.8.7
    • Fix Version/s: None
    • Component/s: Administration
    • Labels:
      None
    • Environment:
      Apache 2.2.3 / Php 5.24 / Red Hat Linux Enterprise Server Relesae 5 (Linux 2.6.18-8) / Oracle 10Gr2
    • Database:
      Oracle
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_18_STABLE

      Description

      Running cron.php function get_records_sql at line 270 the where clause has incorrect data type for p.value field (is not number).
      Expresion at line 275

      WHERE p.name='create_password' AND p.value=1 AND u.email !='' ");

      must be replace by this other content:

      WHERE p.name='create_password' AND p.value='1' AND u.email !='' ");

      Now RUN without Error and (a bit) Fine...

        Gliffy Diagrams

        1. patch.txt
          0.7 kB
          Siddharth Prakash Singh

          Activity

          Hide
          Siddharth Prakash Singh added a comment -

          I have made a patch as suggested

          Show
          Siddharth Prakash Singh added a comment - I have made a patch as suggested
          Hide
          Michael de Raadt added a comment -

          Thanks for reporting this issue.

          We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

          If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

          Michael d;

          lqjjLKA0p6

          Show
          Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
          Hide
          Michael de Raadt added a comment -

          I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

          Show
          Michael de Raadt added a comment - I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: