-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.0.5
-
MOODLE_400_STABLE
After our update to php 8.0, the following error message appears when creating a HotPot activity:
Error: fmod(): Argument #1 ($num1) must be of type float, string specified.
As a result, the activity cannot be created.
The stack trace returns the following result:
// Line 164 of /lib/form/duration.php: TypeError raised
|
Line 164 of /lib/form/duration.php: Call to fmod() |
Line 228 of /lib/form/duration.php: call to MoodleQuickForm_duration->seconds_to_unit() |
Line 409 of /lib/pear/HTML/QuickForm/group.php: call MoodleQuickForm_duration->onQuickFormEvent() |
Line 144 of /lib/form/group.php: call HTML_QuickForm_group->onQuickFormEvent() |
Line 439 of /lib/pear/HTML/QuickForm.php: call to MoodleQuickForm_group->onQuickFormEvent() |
Line 485 of /lib/formslib.php: call HTML_QuickForm->setDefaults() |
Line 589 of /course/moodleform_mod.php: call to moodleform->set_data() |
Line 153 of /course/modedit.php: Calling moodleform_mod->set_data() |
As cause two mforms could be identified.
- will be (partly) resolved by
-
MDL-78544 PHP 8.0 compatibility: Configuration for recent files repository site admin page generates exception
-
- Closed
-