New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception - cannot use object of type stdClass as array #58

bradhowe opened this Issue Aug 25, 2018 · 1 comment


None yet
1 participant

bradhowe commented Aug 25, 2018

Hi team,

Recently upgraded Moodle and we're getting the following error.

running 3.5.1+ (Build: 20180817)
Php 7.2.9
Apache 2.3.34
NED Marking Manager

NED Mentor Manager


object of type stdClass as array Debug: \nError code: generalexceptionmessage\n* line 2483 of /blocks/fn_mentor/lib.php: Error thrown\n* line 2488 of /blocks/fn_mentor/lib.php: call to block_fn_mentor_get_selected_courses()\n* line 154 of /blocks/fn_mentor/block_fn_mentor.php: call to block_fn_mentor_get_selected_courses()\n* line 288 of /blocks/moodleblock.class.php: call to block_fn_mentor->get_content()\n* line 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()\n* line 1211 of /lib/blocklib.php: call to block_base->get_content_for_output()\n* line 1263 of /lib/blocklib.php: call to block_manager->create_block_contents()\n* line 604 of /lib/outputrenderers.php:
call to block_manager->ensure_content_created()\n* line 185 of /theme/adaptable/layout/includes/header.php: call to core_renderer->standard_head_html()\n* line 30 of /theme/adaptable/layout/frontpage.php: call to require_once()\n* line 1287 of /lib/outputrenderers.php: call to include()\n* line 1217 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()\n* line 112 of /index.php: call to core_renderer->header()\n, referer

Turn the initial update the site loaded correctly. It wasn't until after the teachers got into the system that this bug appeared. The only way to resolve it was for me to hide the plug in temporarily.

If you'd like to work out some time to debug, please let me know


This comment has been minimized.

Show comment
Hide comment

bradhowe Aug 30, 2018

Hi All, can you help me with this?

bradhowe commented Aug 30, 2018

Hi All, can you help me with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment