I installed the Degrade theme in my instance of Moodle 4.3. During the installation, I accepted the default settings. No settings were customized.
Note: My site has multiple themes. My default theme is Trema.
What is happening
I see the following warning message when I have debugging set to DEVELOPER mode and the setting to display errors is enabled:
Warning: Undefined property: stdClass::$theme_degrade_customicon in theme/degrade/lib.php on line 490
It looks like the theme_degrade_coursemodule_edit_post_actions() function in lib.php is not handling correctly the fact that I didn't upload a file in the customicon Degrade theme setting.
What I expected
This function should not be called in this situation where the theme is installed but not being used to display a page.
Why this needs to be fixed
This is important on Moodle sites where multiple themes are in use.
I installed the Degrade theme in my instance of Moodle 4.3. During the installation, I accepted the default settings. No settings were customized.
Note: My site has multiple themes. My default theme is Trema.
What is happening
I see the following warning message when I have debugging set to DEVELOPER mode and the setting to display errors is enabled:
It looks like the theme_degrade_coursemodule_edit_post_actions() function in lib.php is not handling correctly the fact that I didn't upload a file in the customicon Degrade theme setting.
What I expected
This function should not be called in this situation where the theme is installed but not being used to display a page.
Why this needs to be fixed
This is important on Moodle sites where multiple themes are in use.
Let me know if you have any questions.
Best regards,
Michael Milette