-
Bug
-
Resolution: Fixed
-
Minor
-
4.1.4, 4.2.1
-
1
In a new install of of Moodle 4.2.1+ (Build: 20230616) with PHP 8.1 going to the "Configuration for recent files repository" site administration page generates the following exception:
Exception - fmod(): Argument #1 ($num1) must be of type float, string given
Debug info:
Error code: generalexceptionmessage
Stack trace:
- line 164 of /lib/form/duration.php: TypeError thrown
- 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 439 of /lib/pear/HTML/QuickForm.php: call to MoodleQuickForm_duration->onQuickFormEvent()
- line 485 of /lib/formslib.php: call to HTML_QuickForm->setDefaults()
- line 3089 of /repository/lib.php: call to moodleform->set_data()
- line 214 of /lib/formslib.php: call to repository_type_form->definition()
- line 98 of /admin/repository.php: call to moodleform->__construct()
- has a non-specific relationship to
-
MDL-70745 Prepare Moodle for PHP 8.0
-
- Closed
-
- is duplicated by
-
MDL-78857 Fatal error on Recent Files config page
-
- Closed
-
- will help resolve
-
CONTRIB-9156 Error: fmod(): Argument #1 ($num1) must be of type float, string given
-
- Open
-