Random code line errors and what to do about them?

Random code line errors and what to do about them?

by Todd W. Roat -
Number of replies: 2

I am not sure if these error lines were there previous to recent upgrade to 3.91 (build 20200713).  Wish I had noticed.

Courses and environment seem to be functional with the exception that each page in the web interface dispalys several line sof error codes at the top of the page.  Some error lines seem consistent acrossed pages, but each page also has a few different ones.

For example, HOME

  • line 228 of /lib/blocklib.php: call to block_community->user_can_addto()
  • line 4069 of /lib/navigationlib.php: call to block_manager->get_addable_blocks()
  • line 781 of /lib/pagelib.php: call to flat_navigation->initialise()
  • line 830 of /lib/pagelib.php: call to moodle_page->magic_get_flatnav()
  • line 56 of /theme/boost/layout/columns2.php: call to moodle_page->__get()
  • line 1374 of /lib/outputrenderers.php: call to include()
  • line 1304 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 100 of /index.php: call to core_renderer->header()
Dashboard:
  • line 228 of /lib/blocklib.php: call to block_community->user_can_addto()
  • line 4069 of /lib/navigationlib.php: call to block_manager->get_addable_blocks()
  • line 781 of /lib/pagelib.php: call to flat_navigation->initialise()
  • line 830 of /lib/pagelib.php: call to moodle_page->magic_get_flatnav()
  • line 56 of /theme/boost/layout/columns2.php: call to moodle_page->__get()
  • line 1374 of /lib/outputrenderers.php: call to include()
  • line 1304 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 164 of /my/index.php: call to core_renderer->header()
Course page:
  • line 228 of /lib/blocklib.php: call to block_community->user_can_addto()
  • line 4069 of /lib/navigationlib.php: call to block_manager->get_addable_blocks()
  • line 781 of /lib/pagelib.php: call to flat_navigation->initialise()
  • line 830 of /lib/pagelib.php: call to moodle_page->magic_get_flatnav()
  • line 56 of /theme/boost/layout/columns2.php: call to moodle_page->__get()
  • line 1374 of /lib/outputrenderers.php: call to include()
  • line 1304 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 244 of /course/view.php: call to core_renderer->header()
Where they appear:

Upgrade error lines

Average of ratings: -
In reply to Todd W. Roat

Re: Random code line errors and what to do about them?

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

The Community Finder block (block_community) is still installed, this was removed in Moodle 3.7.2.

You can uninstall this block via the Plugins Overview page, you may need to remove the blocks/community folder manually depending on the server permissions.

But this suggests:

  1. Debug messages isn't set to NONE which is the default.
  2. The upgrade was performed by copying the Moodle 3.9.1 files over those of the previous version. The source code of the new version should be extracted into an empty folder. You may encounter further problems if there are other old files present that shouldn't be there. (Steps for repair in this reply).
Average of ratings: Useful (2)
In reply to Leon Stringer

Re: Random code line errors and what to do about them?

by Todd W. Roat -
Thank you so much. That solved the problem!