-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
3.5
-
None
-
PostgreSQL
-
MOODLE_35_STABLE
-
-
In 3.5 and MASTER running the global search index schedule task from the command line results in a PHP exception as the `get_section_name` method can not be found. This looks like a recent regression.
This seems to occur regardless of which search engine backend is being used.
Full stack trace is:
php admin/tool/task/cli/schedule_task.php --execute='\core\task\search_index_task' |
Execute scheduled task: Global search indexing (core\task\search_index_task)
|
Processing area: Assignment - activity information
|
No new documents to index. |
Processing area: Page
|
No new documents to index. |
Processing area: Messages - sent
|
No new documents to index. |
Processing area: Messages - received
|
No new documents to index. |
Processing area: Course sections
|
Default exception handler: Exception - Call to undefined function core_course\search\get_section_name() Debug:
|
Error code: generalexceptionmessage
|
|
line 100 of /course/classes/search/section.php: Error thrown line ? of unknownfile: call to core_course\search\section->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 234 of /search/classes/engine.php: call to core_search\skip_future_documents_iterator->valid() line 899 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 156 of /admin/tool/task/cli/schedule_task.php: call to core\task\search_index_task->execute() |
- duplicates
-
MDL-62713 Search: Cron error indexing sections in some cases
-
- Closed
-