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

preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

XMLWordPrintable

    • 2
    • Team Hedgehog 2024 Sprint 4.2, Team Hedgehog 2024 Sprint 4.3, Team Hedgehog 2025 Sprint 1.0

      Via Tideways we found the following deprecation in lib/formslib.php:2752

      preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

      undefined: undefined
      1. preg_replace (/opt/moodle/tuwel/web/lib/formslib.php:2752)
      2. MoodleQuickForm::getValidationScript (/opt/moodle/tuwel/web/lib/pear/HTML/QuickForm/Renderer/Tableless.php:269)
      3. HTML_QuickForm_Renderer_Tableless::finishForm (/opt/moodle/tuwel/web/lib/formslib.php:3524)
      4. MoodleQuickForm_Renderer::finishForm (/opt/moodle/tuwel/web/lib/pear/HTML/QuickForm.php:1646)
      5. HTML_QuickForm::accept (/opt/moodle/tuwel/web/lib/formslib.php:2130)
      6. MoodleQuickForm::accept (/opt/moodle/tuwel/web/lib/pear/HTML/QuickForm.php:1687)
      7. HTML_QuickForm::toHtml (/opt/moodle/tuwel/web/lib/pear/HTML/Common.php:445)
      8. HTML_Common::display (/opt/moodle/tuwel/web/lib/formslib.php:1048)
      9. moodleform::display (/opt/moodle/tuwel/web/course/edit.php:244)
      

       

      I have

            raquel.ortega@moodle.com Raquel Ortega
            Daniel Ziegenberg Daniel Ziegenberg
            Meirza Meirza
            Safat Shahin Safat Shahin
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 3 hours, 59 minutes
                1d 3h 59m

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