Exception - Class 'core_search\manager' not found during upgrade process

Exception - Class 'core_search\manager' not found during upgrade process

by Ben Laor -
Number of replies: 5

I've recently upgraded my moodle from 3.2 to 3.7.
I've passed the upgrade part where it shows the list of insalled plugins.
Going into my site works, i can see it upgraded (css is a lil messed up) the problem is when i try to access the administrator area (even through direct links to specific sections of administration) i receive the following errors:

Exception - Class 'core_search\manager' not found
Debug info:
Error code: generalexceptionmessage
Stack trace:
  • line 588 of /admin/settings/plugins.php: Error thrown
  • line 8363 of /lib/adminlib.php: call to require()
  • line 8250 of /lib/adminlib.php: call to admin_get_root()
  • line 24 of /admin/search.php: call to admin_externalpage_setup()
Exception - Class 'core_search\manager' not found
Debug info:
Error code: generalexceptionmessage
Stack trace:
  • line 588 of /admin/settings/plugins.php: Error thrown
  • line 8363 of /lib/adminlib.php: call to require()
  • line 4306 of /lib/navigationlib.php: call to admin_get_root()
  • line 4169 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 759 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 820 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3521 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 4465 of /lib/outputrenderers.php: call to navbar->get_items()
  • line 42 of /theme/boost/layout/columns2.php: call to core_renderer->region_main_settings_menu()
  • line 1370 of /lib/outputrenderers.php: call to include()
  • line 1300 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2799 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 1961 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line 386 of /lib/setuplib.php: call to bootstrap_renderer->__call()
  • line ? of unknownfile: call to default_exception_handler()
anyone have any idea what to do?
Average of ratings: -
In reply to Ben Laor

Re: Exception - Class 'core_search\manager' not found during upgrade process

by Ken Task -
Picture of Particularly helpful Moodlers

Themes have changed in 3.7.

Suggest adding a line to config.php to force the theme to one that comes stock with a fresh 3.7 until you can check compatibility of your current theme.

$CFG->theme='classic';

If you have command line ... purge caches using the php script in moodlecode/admin/cli/

'spirit of sharing', Ken

In reply to Ken Task

Re: Exception - Class 'core_search\manager' not found during upgrade process

by Ben Laor -
Changed to classic theme through config, ans saw the change on the site successfully, then tried to run purge_caches.php through ssh, still get an error when i try to access an admin area (the error changed a bit):

Exception - Class 'core_search\manager' not found
Debug info:
Error code: generalexceptionmessage
Stack trace:

line 588 of /admin/settings/plugins.php: Error thrown
line 8363 of /lib/adminlib.php: call to require()
line 8250 of /lib/adminlib.php: call to admin_get_root()
line 44 of /cache/admin.php: call to admin_externalpage_setup()

Exception - Class 'core_search\manager' not found
Debug info:
Error code: generalexceptionmessage
Stack trace:

line 588 of /admin/settings/plugins.php: Error thrown
line 8363 of /lib/adminlib.php: call to require()
line 4306 of /lib/navigationlib.php: call to admin_get_root()
line 4169 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
line 759 of /lib/pagelib.php: call to settings_navigation->initialise()
line 820 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
line 136 of /blocks/settings/block_settings.php: call to moodle_page->__get()
line 321 of /blocks/moodleblock.class.php: call to block_settings->get_content()
line 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
line 1181 of /lib/blocklib.php: call to block_base->get_content_for_output()
line 1233 of /lib/blocklib.php: call to block_manager->create_block_contents()
line 374 of /lib/blocklib.php: call to block_manager->ensure_content_created()
line 3909 of /lib/outputrenderers.php: call to block_manager->region_has_content()
line 28 of /theme/classic/layout/columns.php: call to core_renderer->blocks()
line 1370 of /lib/outputrenderers.php: call to include()
line 1300 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2799 of /lib/outputrenderers.php: call to core_renderer->header()
line 1961 of /lib/setuplib.php: call to core_renderer->fatal_error()
line 386 of /lib/setuplib.php: call to bootstrap_renderer->__call()
line ? of unknownfile: call to default_exception_handler()
In reply to Ben Laor

Re: Exception - Class 'core_search\manager' not found during upgrade process

by Ken Task -
Picture of Particularly helpful Moodlers

Appears to be related to plugins check ...  theme? a block? ... search?

What do you have in /theme/?   3.2 had a boost and boostphase ... 3.7 does not have boostphase and boost has been moved to core according to release notes on 3.7.

Can you go directly to:

https://yoursite/admin/blocks.php

or for mods:

/admin/modules.php

environment check:

/admin/environment.php

from ssh in moodlecode/admin/cli/

issue:

php cfg.php |grep search

Were you using solr search before or built in simple search?

Did you check addons/3rd party plugins for compatiblity with 3.7 prior to upgrading?

See if you can get to:

/admin/plugins.php?updatesonly=0&contribonly=1

directly.

'spirit of sharing', Ken

Average of ratings: Useful (1)
In reply to Ben Laor

Re: Exception - Class 'core_search\manager' not found during upgrade process

by Ken Task -
Picture of Particularly helpful Moodlers

Also ... this last line in debug ...

line ? of unknownfile: call to default_exception_handler()

Don't think you used git to upgrade from 3.2 to 3.7 so you followed the docs on how to upgrade.

Those say to move the entire moodle code directory to an archive area.  Upload the 3.7 zip, unzip, that creates a moodle directory.  One then copies back from archive config.php and any addons to appropriate locations in new code.

If you rename folders ... like teachernotice/ to teachernotice_old/ then manually install an update compatible with 3.7, moodle still sees the _old ... if that's what you have done, create an archive directory outside of moodle code ... if in /local/ you did something like that .. in the archive directory create a local subdir, then move the old folder to archive/local/

So on upgrading, site gets updates to DB for core code first.   Then check plugins and get updates for them via the Admin Web based interface .... yes, I know you can't get there right now ... we fix that ... then you can! smile

'SoS', Ken





Average of ratings: Useful (1)
In reply to Ken Task

Re: Exception - Class 'core_search\manager' not found during upgrade process

by Ben Laor -
It was indeed one of the plugins from the old version, that wasn't compatible with the new version.
I a=have yet to figure out which one but i'll get there by adding them one by one (it could be one of my own as well)
Thank you for all the help!