We are using Moodle 3.9.1, with the Boost theme, and just discovered that anyone assigned the Manager role, at the SITE level cannot successfully complete a Global Search. If they are assigned at the CATEGORY level, then there is no issue.
Debugging returns something like the following (anything in italics changes every time an attempt is made):
Format plugin format_weekcoll is not found. Using default format_topics
- line 126 of /course/format/lib.php: call to debugging()
- line 187 of /course/format/lib.php: call to format_base::get_format_or_default()
- line 35 of /course/format/lib.php: call to format_base::instance()
- line 2683 of /lib/modinfolib.php: call to course_get_format()
- line 544 of /lib/modinfolib.php: call to section_info->__construct()
- line 417 of /lib/modinfolib.php: call to course_modinfo->__construct()
- line 2168 of /lib/modinfolib.php: call to course_modinfo::instance()
- line 732 of /search/classes/manager.php: call to get_fast_modinfo()
- line 1007 of /search/classes/manager.php: call to core_search\manager->get_areas_user_accesses()
- line 906 of /search/classes/manager.php: call to core_search\manager->search()
- line 176 of /search/index.php: call to core_search\manager->paged_search()
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /data/shares/oursite/moodle-3.9.1/cache/stores/memcached/lib.php on line 378