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

base64_encode() raised an error if null is passed as argument on PHP 8.1

    XMLWordPrintable

Details

    • 6
    • Team Hedgehog 2023 Sprint 1.4, Team Hedgehog 2023 Sprint 2.0

    Description

      There seem to be cases where base64_encode is still potentially being passed null values. This is an issue with the updates in PHP 8.1.

      An example of this was found while registering a Moodle app using MNet and then I go to the Services tab, I found a bug related to the deprecation on PHP 8.1

      Deprecated: base64_encode(): Passing null to parameter #1 ($string) of type string is deprecated
      

      File: mnet/lib.php:307

      Attachments

        Issue Links

          Activity

            People

              david.woloszyn@moodle.com David Woloszyn
              meirza.arson@moodle.com Meirza
              Meirza Meirza
              Ilya Tregubov Ilya Tregubov
              CiBoT CiBoT
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 4 hours, 16 minutes
                  2d 4h 16m

                  Clockify

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