-
Bug
-
Resolution: Fixed
-
Minor
-
4.0.1
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE, MOODLE_401_STABLE
-
MDL-74755-401 -
-
1
-
Team Hedgehog Sprint 2.1
Hello,
I upgraded from Moodle 3.10 to 4.0.1+
I got errors in the website-adminstration:
Undefined property: stdClass::$enableaccessibilitytools in D:\Inetpub\....\blocks\accessreview\block_accessreview.php on line 176
generalexceptionmessage
|
Exception - Return value of block_accessreview::can_block_be_added() must be of the type bool, null returned
|
File: ...view/block_accessreview.php
|
Line: 176
|
Stack trace:
|
|
Error code: generalexceptionmessage
|
* line 176 of /blocks/accessreview/block_accessreview.php: TypeError thrown
|
* line 228 of /lib/blocklib.php: call to block_accessreview->can_block_be_added()
|
* line 97 of /blocks/classes/external/fetch_addable_blocks.php: call to block_manager->get_addable_blocks()
|
* line 261 of /lib/externallib.php: call to core_block\external\fetch_addable_blocks::execute()
|
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
|
|
Error code: generalexceptionmessage
|
* line 176 of /blocks/accessreview/block_accessreview.php: TypeError thrown
|
* line 228 of /lib/blocklib.php: call to block_accessreview->can_block_be_added()
|
* line 97 of /blocks/classes/external/fetch_addable_blocks.php: call to block_manager->get_addable_blocks()
|
* line 261 of /lib/externallib.php: call to core_block\external\fetch_addable_blocks::execute()
|
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
|
The plugin "accessibilitytools" was not enabled automatically during the upgrade.
Solution:
I could solve the problem by activating accessibilitytools at website-administration --> advanced features --> activated the checkbox for accessibilitytools
Afterwards the problem was solved but it took quite a while to figure out the cause.
Environment:
OS: Windows 2016 + IIS + PHP 7,4,29 (64 Bit)
Desired behaviour:
The extension should be activated automatically during upgrade or moodle should run with deactivated accessibilitytools.