Affects Version/s: 3.5.3
Fix Version/s: None
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?