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

Data request processing dies with exception: Call to a member function is_fully_expired() on null

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.7, 3.5.3, 3.6.2, 3.7
    • Fix Version/s: 3.4.8, 3.5.5, 3.6.3
    • Component/s: Privacy
    • Labels:

      Description

      We have experienced this on one of our Moodle community sites running version 3.5.3. Processing the personal data requests died with thrown exception "Call to a member function is_fully_expired() on null"

      PHP Notice:  Undefined index: /50/5310 in /var/www/html/admin/tool/dataprivacy/classes/expired_contexts_manager.php on line 925
      PHP Notice:  Trying to get property of non-object in /var/www/html/admin/tool/dataprivacy/classes/expired_contexts_manager.php on line 925
      Default exception handler: Exception - Call to a member function is_fully_expired() on null Debug: 
      Error code: generalexceptionmessage
      * line 926 of /admin/tool/dataprivacy/classes/expired_contexts_manager.php: Error thrown
      * line 902 of /admin/tool/dataprivacy/classes/expired_contexts_manager.php: call to tool_dataprivacy\expired_contexts_manager::is_course_context_expired_or_unprotected_for_user()
      * line 1091 of /admin/tool/dataprivacy/classes/api.php: call to tool_dataprivacy\expired_contexts_manager::is_context_expired_or_unprotected_for_user()
      * line 82 of /admin/tool/dataprivacy/classes/task/initiate_data_request_task.php: call to tool_dataprivacy\api::add_request_contexts_with_status()
      * line 185 of /lib/cronlib.php: call to tool_dataprivacy\task\initiate_data_request_task->execute()
      * line 74 of /lib/cronlib.php: call to cron_run_inner_adhoc_task()
      * line 61 of /admin/cli/cron.php: call to cron_run()
       
      !!! Exception - Call to a member function is_fully_expired() on null !!!
      

      The reported context path /50/5310 is the context of the site's front page.

      This was consulted with Andrew Nicols who concluded:

      We possibly have missed a case where there's activities on the course frontpage in our testing.

      and suggested a way to fix this.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Mar/19