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

Passing null to strlen() in custom fields handler (PHP 8.1)

XMLWordPrintable

    • WP Sprint 2024-I1.1 (Atlantic)

      Another instance of PHP 8.1 warning

       PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /customfield/classes/handler.php on line 653
      

      In our case the custom fields were generated programmatically and the 'description' field was null. Normally it would be filled from the field in the form and would be an empty string. So I guess it does not happen often but still possible.

            marina Marina Glancy
            marina Marina Glancy
            Ruslan Kabalin Ruslan Kabalin
            Huong Nguyen Huong Nguyen
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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