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

LTI 1.3 broken in update 4.1.10 because of PHP 8 function

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 4.1.10
    • LTI provider
    • MOODLE_401_STABLE

      Hello we have multiple Moodle sites running on PHP 7.4. Last week we updated these sites to Moodle 4.1.10. After this update LTI 1.3 connections are broken. The error we are getting is attached. The error we are getting is: Error melding Call to undefined function core\session\utility\str_contains() https://github.com/moodle/moodle/blob/v4.1.10/lib/classes/session/utility/cookie_helper.php#L152

      This PHP function (https://www.php.net/manual/en/function.str-contains.php) requires PHP 8 while Moodle 4.1 should be able to run on PHP 7.4. This PHP function therefore can not be used.

      We do have servers running higher PHP versions but cannot move sites easily because of other dependencies.

      Please supply us with a fix in a new release since customers now have connections that are broken.

      With kind regards,
      Christel Keislair
      Avetica

            Unassigned Unassigned
            c.a.keislair Christel
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 21 minutes
                21m

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