Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.3.2, 2.4, 2.5
-
Testing Instructions:
-
Affected Branches:MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
-
Fixed Branches:MOODLE_23_STABLE, MOODLE_24_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-37523_master -
Pull Master Diff URL:
Description
MyMobile theme's renderers.php line 35 has a call to include /mod/choice/renderer.php. This is really strange, as no other Moodle theme has such include to a module!
On my moodle 2.4 test site, I have removed the Choice module, which I never use.
When I backup and then restore a course (or part of course) on that test site, in the very last stage of restore I get the following error messages and a crash:
Warning: include_once(moodle24/mod/choice/renderer.php) [function.include-once]: failed to open stream: No such file or directory in moodle24/theme/mymobile/renderers.php on line 35
Warning: include_once() [function.include]: Failed opening 'moodle24/mod/choice/renderer.php' for inclusion (include_path='moodle24/lib/zend:moodle24/lib/pear:.:/usr/local/lib/php') in moodle24/theme/mymobile/renderers.php on line 35
Fatal error: Class 'mod_choice_renderer' not found in moodle24/theme/mymobile/renderers.php on line 804.
Please remove from MyMobile theme that include /mod/choice/renderer.php OR at least test that the Choice module does exist on a moodle site before trying to include it!