Exception - Call to a member function add() on null after UPDATE

Exception - Call to a member function add() on null after UPDATE

by Cristina Cocioabă -
Number of replies: 19

Hello, after I updated my Moodle to the latest version, when I try to acess my admin board, I get this error: Exception - Call to a member function add() on null . Can you please help me?

Average of ratings: -
In reply to Cristina Cocioabă

Re: Exception - Call to a member function add() on null after UPDATE

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Firstly, enable Debugging. As you can't reach your admin functions you need to do it by copying the relevant lines from Section 7 of config-dist.php to config.php. It's very well commented.

The reproduce the problem. I hope you should see a more detailed trace of the error. Copy it over here and we'll have a look.
In reply to Howard Miller

Re: Exception - Call to a member function add() on null after UPDATE

by Cristina Cocioabă -
Here is the error I get


Duplicate admin category name: users
line 955 of /lib/adminlib.php: call to debugging()
line 23 of /admin/settings/top.php: call to admin_category->add()
line 7986 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: courses
line 955 of /lib/adminlib.php: call to debugging()
line 24 of /admin/settings/top.php: call to admin_category->add()
line 7986 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: grades
line 955 of /lib/adminlib.php: call to debugging()
line 25 of /admin/settings/top.php: call to admin_category->add()
line 7986 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: analytics
line 955 of /lib/adminlib.php: call to debugging()
line 26 of /admin/settings/top.php: call to admin_category->add()
line 7986 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: competencies
line 955 of /lib/adminlib.php: call to debugging()
line 27 of /admin/settings/top.php: call to admin_category->add()
line 7986 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: badges
line 955 of /lib/adminlib.php: call to debugging()
line 28 of /admin/settings/top.php: call to admin_category->add()
line 7986 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: location
line 955 of /lib/adminlib.php: call to debugging()
line 29 of /admin/settings/top.php: call to admin_category->add()
line 7986 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: language
line 955 of /lib/adminlib.php: call to debugging()
line 30 of /admin/settings/top.php: call to admin_category->add()
line 7986 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: modules
line 955 of /lib/adminlib.php: call to debugging()
line 31 of /admin/settings/top.php: call to admin_category->add()
line 7986 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: security
line 955 of /lib/adminlib.php: call to debugging()
line 32 of /admin/settings/top.php: call to admin_category->add()
line 7986 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: appearance
line 955 of /lib/adminlib.php: call to debugging()
line 33 of /admin/settings/top.php: call to admin_category->add()
line 7986 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: frontpage
line 955 of /lib/adminlib.php: call to debugging()
line 34 of /admin/settings/top.php: call to admin_category->add()
line 7986 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: server
line 955 of /lib/adminlib.php: call to debugging()
line 35 of /admin/settings/top.php: call to admin_category->add()
line 7986 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: mnet
line 955 of /lib/adminlib.php: call to debugging()
line 36 of /admin/settings/top.php: call to admin_category->add()
line 7986 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()

Duplicate admin category name: reports
line 955 of /lib/adminlib.php: call to debugging()
line 37 of /admin/settings/top.php: call to admin_category->add()
line 7986 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: development
line 955 of /lib/adminlib.php: call to debugging()
line 38 of /admin/settings/top.php: call to admin_category->add()
line 7986 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()

Duplicate admin category name: unsupported
line 955 of /lib/adminlib.php: call to debugging()
line 41 of /admin/settings/top.php: call to admin_category->add()
line 7986 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()

Duplicate admin category name: themes
line 955 of /lib/adminlib.php: call to debugging()
line 12 of /admin/settings/appearance.php: call to admin_category->add()
line 7997 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()

Duplicate admin category name: theme_klass
line 955 of /lib/adminlib.php: call to debugging()
line 31 of /theme/klass/settings.php: call to admin_category->add()
line 52 of /admin/settings/appearance.php: call to include()
line 7997 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()

Duplicate admin category name: backups
line 955 of /lib/adminlib.php: call to debugging()
line 168 of /admin/settings/courses.php: call to admin_category->add()
line 7997 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()

Duplicate admin category name: experimental
line 955 of /lib/adminlib.php: call to debugging()
line 8 of /admin/settings/development.php: call to admin_category->add()
line 7997 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()

Duplicate admin category name: gradereports
line 955 of /lib/adminlib.php: call to debugging()
line 207 of /admin/settings/grades.php: call to admin_category->add()
line 7997 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()

Duplicate admin category name: gradeimports
line 955 of /lib/adminlib.php: call to debugging()
line 220 of /admin/settings/grades.php: call to admin_category->add()
line 7997 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()

Duplicate admin category name: gradeexports
line 955 of /lib/adminlib.php: call to debugging()
line 235 of /admin/settings/grades.php: call to admin_category->add()
line 7997 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()

Duplicate admin category name: mnetpeercat
line 955 of /lib/adminlib.php: call to debugging()
line 18 of /admin/settings/mnet.php: call to admin_category->add()
line 7997 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()


Exception - Call to a member function add() on null
Debug info:
Error code: generalexceptionmessage
Stack trace:
line 30 of /admin/settings/moodleservices.php: Error thrown
line 7997 of /lib/adminlib.php: call to require()
line 7886 of /lib/adminlib.php: call to admin_get_root()
line 24 of /admin/search.php: call to admin_externalpage_setup()


Exception - Call to a member function add() on null
Debug info:
Error code: generalexceptionmessage
Stack trace:
line 30 of /admin/settings/moodleservices.php: Error thrown
line 7997 of /lib/adminlib.php: call to require()
line 4183 of /lib/navigationlib.php: call to admin_get_root()
line 4046 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 3452 of /lib/navigationlib.php: call to moodle_page->__get()
line 627 of /theme/boost/classes/output/core_renderer.php: call to navbar->get_items()
line 55 of /theme/moove/layout/columns2.php: call to theme_boost\output\core_renderer->region_main_settings_menu()
line 1287 of /lib/outputrenderers.php: call to include()
line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2824 of /lib/outputrenderers.php: call to core_renderer->header()
line 374 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()
In reply to Cristina Cocioabă

Re: Exception - Call to a member function add() on null after UPDATE

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Can you add in your config.php

$CFG->theme = 'boost';

...and see what happens. I note you are running a non-core theme (moove). Eliminating that is always a good place to start.
In reply to Howard Miller

Re: Exception - Call to a member function add() on null after UPDATE

by Cristina Cocioabă -
Nothing happened sad

Yeah, I thought about that, but since I can't access my admin panel, I don't know how to change it. If I just delete the theme folder will moodle use a default theme?
In reply to Howard Miller

Re: Exception - Call to a member function add() on null after UPDATE

by Cristina Cocioabă -
Changed the theme to a core one and it's the same error. Also got this one:

Notice: Undefined variable: moodleservices in /home/r56026inte/public_html/admin/settings/moodleservices.php on line 30

This is line 30 from that document:
$moodleservices->add(new admin_setting_heading('moodleservicesintro', '',
new lang_string('moodleservices_help', 'admin')));

After a refresh, that error was gone.
In reply to Cristina Cocioabă

Re: Exception - Call to a member function add() on null after UPDATE

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
How did you "update to the latest version"? What instructions did you follow?
In reply to Howard Miller

Re: Exception - Call to a member function add() on null after UPDATE

by Cristina Cocioabă -
I updated using cpanel.
In reply to Cristina Cocioabă

Re: Exception - Call to a member function add() on null after UPDATE

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I don't know anything about cPanel... do you mean that you clicked some option "upgrade moodle" or something else? Did you follow the upgrade instructions here?

If (as I'm starting to suspect is the case) that you have used scripts provided by your hosting provider then you're probably going to have to ask them. We have no idea what these scripts do and it sounds like they are broken. Unfortunately, this is very common.
In reply to Howard Miller

Re: Exception - Call to a member function add() on null after UPDATE

by Cristina Cocioabă -

My domain Control Panel has installed softaculous, and moodle is installed from there and I updated using that script. 


How can I backup my moodle courses and users database without accesing my admin board, so I can reinstall it. I am not very positive that I will manage to fix the problem. 

In reply to Cristina Cocioabă

Re: Exception - Call to a member function add() on null after UPDATE

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Yeh - we don't like Softaculous around here. Your hosting company provided it. It broke. They should fix it.

You did take a full backup before you attempted the upgrade, didn't you? :-O

Other than that, it might be really difficult to recover the data. I would certainly start by taking the database and 'moodledata' file area and pointing a completely clean, new download of the Moodle code at them. Only ever download Moodle from moodle.org!
In reply to Cristina Cocioabă

Re: Exception - Call to a member function add() on null after UPDATE

by Ken Task -
Picture of Particularly helpful Moodlers

Does your cPanel have an icon for 'Terminal'? (that is command line into only your slice of the server upon which your moodle is installed).

If it does and you are not totally afraid of a little command line it might ... notice I said might ... be possible to backup your courses via command line.

Expect a 'private message' in moodle.org from me.

'spirit of sharing', Ken

In reply to Ken Task

Re: Exception - Call to a member function add() on null after UPDATE

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
It did cross my mind that 'Moosh' might work... and it's worth a shot. But, given that Moosh is so heavily tied to Moodle's API, I'm not optimistic.
In reply to Howard Miller

Re: Exception - Call to a member function add() on null after UPDATE

by Ken Task -
Picture of Particularly helpful Moodlers

@Howard ...

Well ... my line of thinking different ... more than likely moosh may not be installable on remote systems ... or if it could, there would be instructions to give users and how would one do that ... environment/site un-seen?

Was thinking of the backup.php script in moodlecode/admin/cli/   That doesn't use web service, does use config.php variables and defaults for course backups.   Only 2 things one would need ... a directory to which to save the backup ... that could be as simple as /home/[useraccount]/ and a course ID ... and one could guess those ... not 1 (that's front page), but 2, or 3, or 4, or 5.

Failure to give a valid course ID fails gracefully.

If successful, at least user has course backups of some sort.

'spirit of sharing', Ken


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

Re: Exception - Call to a member function add() on null after UPDATE

by Cristina Cocioabă -

Me and Ken Task tried to solve this and came out with a solution. He helped me back up my courses and he checked them out for errors and corrected them, so that they will work on a new Moodle Installation. Also he taught me what to do in the future to avoid having these kind of problems. He was a very big help and he did a great job and he did it very quickly. 

Thank you so much Ken Task for using your vast knowledge to help me overcome this issue. 

In reply to Cristina Cocioabă

Re: Exception - Call to a member function add() on null after UPDATE

by Ken Task -
Picture of Particularly helpful Moodlers

Welcome! smile

'spirit of sharing', Ken


In reply to Ken Task

Re: Exception - Call to a member function add() on null after UPDATE

by Cristina Cocioabă -
Hey. Solved it. Thanks a lot. You can delete my account and eveyrthing on

your website.



I wish you the best!



On Sun, Jul 7, 2019 at 8:58 PM Ken Task (via Moodle.org) <noreply@moodle.org>
In reply to Cristina Cocioabă

Re: Exception - Call to a member function add() on null after UPDATE

by Ken Task -
Picture of Particularly helpful Moodlers

Done!  Category/Course and users deleted from sandbox.

'SoS', Ken

In reply to Ken Task

Re: Exception - Call to a member function add() on null after UPDATE

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Above and beyond the call of duty award wink
In reply to Howard Miller

Re: Exception - Call to a member function add() on null after UPDATE

by Ken Task -
Picture of Particularly helpful Moodlers

Yes, it was ... thanks for recognizing that.   There an emoticon ... oops, that's too old ... better yet ... emoji for that?   Kinda like the stipend/pay raise I got at my last place of 'regular' employment before retirement. :|

'spirit of sharing', Ken