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

error in core\task\search_index_task

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.8.4
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
      None
    • Affected Branches:
      MOODLE_38_STABLE

      Description

      We keep getting an error in the global search cron task(core\task\search_index_task). According to the info it is somehow linked to the customfileds. But there are no fields defined on that system.

      The place were the debug points to has no check if the offset exists. Maybe just adding a check and handle the missing entry would solve this.

       

      PHP Notice: Undefined offset: 1 in /home/vhosts/moodle/workplace.eledia.de/public_html/course/classes/search/customfield.php on line 105

      Notice: Undefined offset: 1 in /home/vhosts/moodle/workplace.eledia.de/public_html/course/classes/search/customfield.php on line 105
      Default exception handler: Fehler: Call to a member function get() on null Debug:
      Error code: generalexceptionmessage

      • line 110 of /course/classes/search/customfield.php: Error thrown
      • line ? of unknownfile: call to core_course\search\customfield->get_document()
      • line 103 of /lib/classes/dml/recordset_walk.php: call to call_user_func()
      • line 72 of /search/classes/skip_future_documents_iterator.php: call to core\dml\recordset_walk->current()
      • line 93 of /search/classes/skip_future_documents_iterator.php: call to core_search\skip_future_documents_iterator->current()
      • line 235 of /search/classes/engine.php: call to core_search\skip_future_documents_iterator->valid()
      • line 1153 of /search/classes/manager.php: call to core_search\engine->add_documents()
      • line 59 of /lib/classes/task/search_index_task.php: call to core_search\manager->index()
      • line 201 of /lib/cronlib.php: call to core\task\search_index_task->execute()
      • line 119 of /lib/cronlib.php: call to cron_run_inner_scheduled_task()
      • line 73 of /lib/cronlib.php: call to cron_run_scheduled_tasks()
      • line 61 of /admin/cli/cron.php: call to cron_run()

      !!! Fehler: Call to a member function get() on null !!!
      !!
      Error code: generalexceptionmessage !!
      !! Stack trace: * line 110 of /course/classes/search/customfield.php: Error thrown

      • line ? of unknownfile: call to core_course\search\customfield->get_document()
      • line 103 of /lib/classes/dml/recordset_walk.php: call to call_user_func()
      • line 72 of /search/classes/skip_future_documents_iterator.php: call to core\dml\recordset_walk->current()
      • line 93 of /search/classes/skip_future_documents_iterator.php: call to core_search\skip_future_documents_iterator->current()
      • line 235 of /search/classes/engine.php: call to core_search\skip_future_documents_iterator->valid()
      • line 1153 of /search/classes/manager.php: call to core_search\engine->add_documents()
      • line 59 of /lib/classes/task/search_index_task.php: call to core_search\manager->index()
      • line 201 of /lib/cronlib.php: call to core\task\search_index_task->execute()
      • line 119 of /lib/cronlib.php: call to cron_run_inner_scheduled_task()
      • line 73 of /lib/cronlib.php: call to cron_run_scheduled_tasks()
      • line 61 of /admin/cli/cron.php: call to cron_run()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              b.wolf82 Benjamin Wolf
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: