Hi there,
I have recently upgraded my version of Moodle from 2.6.5 to 2.7 which worked fine. After this i did another update straight away from 2.7 to 3.1.5 and now i cannot seem to access the "Site Administration" menu and keep getting the following error everywhere on the site:
Coding error detected, it must be fixed by a programmer: Function get_categories() is removed. Please use coursecat::get_children() or see phpdocs for other alternatives
After this i then noticed having put debugging mode on that the following message appears for each item on the site administration menu when debugging...seems to appear on each page with the site administration:
Duplicate admin category name: blocksettings
- line 955 of /lib/adminlib.php: call to debugging()
- line 59 of /admin/settings/plugins.php: call to admin_category->add()
- line 7279 of /lib/adminlib.php: call to require()
- line 3672 of /lib/navigationlib.php: call to admin_get_root()
- line 3538 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
- line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
- line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
- line 107 of /blocks/admin_bookmarks/block_admin_bookmarks.php: call to moodle_page->__get()
- line 288 of /blocks/moodleblock.class.php: call to block_admin_bookmarks->get_content()
- line 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
- line 976 of /lib/blocklib.php: call to block_base->get_content_for_output()
- line 1028 of /lib/blocklib.php: call to block_manager->create_block_contents()
- line 476 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()
- line 39 of /theme/bootstrapbase/renderers/core_renderer.php: call to core_renderer->standard_head_html()
- line 34 of /theme/eguru/layout/columns2.php: call to theme_bootstrapbase_core_renderer->standard_head_html()
- line 1028 of /lib/outputrenderers.php: call to include()
- line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
- line 2812 of /lib/outputrenderers.php: call to core_renderer->header()
- line 388 of /lib/setuplib.php: call to core_renderer->fatal_error()
- line ? of unknownfile: call to default_exception_handler()
Does anybody know what i can do solve this? I still have my 2.6.5 and 2.7 versions on my web server and also have a database backup from yesterday which i kept before the update from 2.7 to 3.1.5.
I have read that normally with errors like this the only thing you can do is possibly upgrade Moodle. If i upgrade to a later version of 3.1.5 do you think that this would then solve it? As a last resort i want to go do a backup to my previous version of Moodle as that will take forever to do re-import my SQL files on such a large website
If somebody would just advise on the best course of action here then that would be great. As i say, Site Administration menu is no longer accessible; get_categories is showing as obsolete and also i am getting "duplicated admin category name" error.
Many thanks,
Mark