Error message: Exception - Call to a member function remove() on Bool

Error message: Exception - Call to a member function remove() on Bool

by Astrid Robitaille -
Number of replies: 4
Hi all,
I'm running into a problem with a Moodle course (v. 4.0) that is one activity- a Glossary, with the enrolment set to "guest." Suddenly it's throwing this error message: "Exception - Call to a member function remove () on bool" about 95% of the time someone attempts to access it. I cannot figure out how to fix this issue, and recreating the course would entail massive lift to change the link in all of our documentation. Any ideas? 

Thanks in Advance!
Astrid
moodle error
Average of ratings: -
In reply to Astrid Robitaille

Re: Error message: Exception - Call to a member function remove() on Bool

by Mark Johnson -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Please enable Debugging to get a full trace of where the error is coming from and post it here. If it looks like a bug in the code you can raise an issue on the Tracker.

In reply to Mark Johnson

Re: Error message: Exception - Call to a member function remove() on Bool

by Leslie Harris -
Hi, Mark.

I turned on debugging and reproduced the error.

Here is the full stack trace:

Debug info:

Error code: generalexceptionmessage

Stack trace:

line 47 of /local/metagroup/lib.php: Error thrown

line 5700 of /lib/navigationlib.php: call to local_metagroup_extend_settings_navigation()

line 4410 of /lib/navigationlib.php: call to settings_navigation->load_local_plugin_settings()

line 838 of /lib/pagelib.php: call to settings_navigation->initialise()

line 967 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()

line 761 of /lib/classes/navigation/views/secondary.php: call to moodle_page->__get()

line 236 of /lib/classes/navigation/views/secondary.php: call to core\navigation\views\secondary->load_admin_navigation()

line 895 of /lib/pagelib.php: call to core\navigation\views\secondary->initialise()

line 967 of /lib/pagelib.php: call to moodle_page->magic_get_secondarynav()

line 33 of /theme/adaptable/layout/includes/secondarynav.php: call to moodle_page->__get()

line 35 of /theme/adaptable/layout/columns1.php: call to require_once()

line 1477 of /lib/outputrenderers.php: call to include()

line 1403 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()

line 1973 of /lib/setuplib.php: call to core_renderer->header()

line 57 of /mod/attendance/password.php: call to bootstrap_renderer->__call()

In reply to Leslie Harris

Re: Error message: Exception - Call to a member function remove() on Bool

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

Stack trace:

line 47 of /local/metagroup/lib.php: Error thrown

That looks like an error in additional plugin local_metagroup. That's not in the Plugins directory and isn't a plugin I'm familiar with. You may need to find out where this plugin was obtained from and contact the author/maintainer for support. The general advice for errors in plugins is to make sure you've got the latest version of that plugin for your Moodle version.

Also, this error message is Error code: generalexceptionmessage when accessing mod_attendance, and not Exception - Call to a member function remove () on bool when accessing mod_glossary. So the debugging output looks unrelated to the original error.

In reply to Astrid Robitaille

Re: Error message: Exception - Call to a member function remove() on Bool

by Ken Task -
Picture of Particularly helpful Moodlers
+1 to Leon's suggestions ... +1 more since you are running 4.0 - a no longer supported for anything version of core.

This pertains to upgrading moodle to 4.1 or higher.   Moodle is finally removing assignment (2.2) which on your system should be hidden and not in use.

HIghly recommended that you un-install assignment 2.2 now while you are working with plugins cause upgrading to 4.2 or higher will be killed if assignment (2.2) is present.

It would also be a very good idea to check server's environment - update component - then choose any higher version of Moodle in drop down pick list to see if there are any REDS that you must address before attempting upgrading your 4.0.

'SoS', Ken