Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-82484

Fatal error in adding 'file' element to form

      Fatal error: Declaration of HTML_QuickForm_file::_findValue() must be compatible with HTML_QuickForm_element::_findValue(&$values) 

       

      I tried to add `$mform->addElement('file'...)` to my form, it triggered this error. Then I inspected the code and found out that the `&$values` is missing from the child function `_findValue`

        1. ide-lint-error.png
          32 kB
          David Woloszyn
        2. Screenshot 2024-07-16 102454.png
          42 kB
          Gloria C

            Unassigned Unassigned
            gloriac Gloria C
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 10 minutes
                1h 10m

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