Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-9156

Error: fmod(): Argument #1 ($num1) must be of type float, string given

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.0.5
    • Module: HotPot
    • 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. 

       

       

            xxxxxxx Gordon Bateson
            thomas.ludwig Thomas Ludwig
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.