-
Bug
-
Resolution: Won't Do
-
Minor
-
None
-
3.8.4
-
None
-
MOODLE_38_STABLE
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()
- duplicates
-
MDLSITE-6261 Global search indexing stopped working on learn.moodle.org
-
- Resolved
-