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

Cron not running; Missing checkboxes on Data Requests page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.3
    • Fix Version/s: None
    • Component/s: Privacy
    • Labels:
      None
    • Affected Branches:
      MOODLE_35_STABLE

      Description

      On the SiteAdministrations->Notifications page cron says it hasn't run within 24 hours.
      On the DataRequests page all data request records are in the Pre-processing state.

      Strange I say, and I'm trying to run the cron. No chance to run completely...
      What I noticed: when I run the cron from CLI and there is a request to delete personal data, the is_course_context_expired_or_unprotected_for_user (\context $context, \stdClass $user) function raise an exception right after the call is_fully_expired () function:

      Call to a member function is_fully_expired() on null

      That's what I did: I inserted immediately after line 925 in the file "moodle/admin/tools/dataprivacy/classes/expired_contexts_manager.php":

      if (is_null($info)) return false;

      and I run the cron.  It worked correctly.
      Is really a bug or my database is corrupted?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              salex S. Alex
              Participants:
              Component watchers:
              Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: