Adaptable - 405.1.5 and attendance plugin

Adaptable - 405.1.5 and attendance plugin

by Scott Taylor -
Number of replies: 2

I am testing an upgrade of Moodle 4.5.4 and an update to Adaptable 405.1.5. The Adaptable theme is working fine but there are 2 plugins that I use that no longer work. One plugin is the "attendance" plugin and the other is the "questionnaire" plugin. In both instances I receive an exception class error as shown below. 

error

If I switch my theme to use Boost or Classic these 2 plugins work without issue so I believe the primary issue lays with the adaptable theme. Is there anything that I'm missing or something that can be done as I would hate to change my theme but the attendance module is very important to our institution.

Average of ratings: -
In reply to Scott Taylor

Adaptable - 405.1.5 and attendance plugin

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
Dear Scott,

Turn on 'Developer level' debugging (https://docs.moodle.org/405/en/Debugging#Enabling_debugging) and report the error result here (i.e. all the files / line numbers - the 'Stack trace'). Also post version details of mod_attendance and mod_questionnaire please as the latter only currently supports up to M4.4. After reporting, turn off debugging.
 
Also did you follow the upgrade procedure correctly? (The one in the Readme.md file) / or upgrade via the UI?  Which one please?  As I cannot find fault with the code from looking at it given the error you've reported and wonder if you have a stray out of date file in the installation.

Kind regards,

Gareth
In reply to Gareth J Barnard

Adaptable - 405.1.5 and attendance plugin

by Scott Taylor -
Gareth, thank you for the input. Below is the debug output which was enlightening. Based upon the trace I focused on another plugin that I have installed (simple_clock) which seems to be what is causing the error. When I removed this block the attendance plugin would display. What is odd is that the simple_clock block did display throughout the rest of the site and did not seem to throw an error but did when accessing the attendance module. At the very least I can work around not having the simple_clock plugin which does not seem to be updated for Moodle 4.x.

Debug info:
Error code: generalexceptionmessage
Stack trace:
line 161 of /blocks/simple_clock/block_simple_clock.php: Error thrown
line 337 of /blocks/moodleblock.class.php: call to block_simple_clock->get_content()
line 231 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
line 1255 of /lib/blocklib.php: call to block_base->get_content_for_output()
line 1313 of /lib/blocklib.php: call to block_manager->create_block_contents()
line 377 of /lib/blocklib.php: call to block_manager->ensure_content_created()
line 2873 of /theme/adaptable/classes/output/core_renderer_toolbox.php: call to block_manager->region_has_content()
line 547 of /theme/adaptable/classes/output/core_renderer_layout.php: call to theme_adaptable\output\core_renderer->blocks()
line 150 of /theme/adaptable/classes/output/core_renderer_layout.php: call to theme_adaptable\output\core_renderer->sidepostheader()
line 723 of /theme/adaptable/classes/output/core_renderer_layout.php: call to theme_adaptable\output\core_renderer->yesheader()
line 31 of /theme/adaptable/layout/columns2.php: call to theme_adaptable\output\core_renderer->columns_two_layout()
line 972 of /lib/classes/output/core_renderer.php: call to include()
line 888 of /lib/classes/output/core_renderer.php: call to core\output\core_renderer->render_page_layout()
line ? of unknownfile: call to core\output\core_renderer->header()
line 130 of /lib/classes/output/plugin_renderer_base.php: call to call_user_func_array()
line 87 of /mod/attendance/manage.php: call to core\output\plugin_renderer_base->__call()