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

Patch GoogleAPI library for PHP 8.1 compatibility

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.1.1
    • 4.1
    • Libraries
    • MOODLE_401_STABLE
    • MOODLE_401_STABLE
    • MDL-76355-401
    • MDL-76355-master
    • Hide

      Setup

      Testing

      1. Log in as an admin and go to Site administration > Plugins > Blocks > Manage blocks.
      2. Enable the YouTube block
      3. In the YouTube block settings, add an API key and save changes.
      4. Go to the site home and turn editing on.
      5. Add a Tags block to the page via the 'Add a block' link.
      6. Click on any tag in the Tags block. (If there are no tags available, add a tag to an item on the site or add a tag to the default collection via 'Manage tags' in the Site administration.)
      7. On the tag page, add the YouTube block via the 'Add a block' link. (Note that the YouTube blocks may only be added to a tag page.)
      8. Check that the YouTube block displays videos related to the tag.
      Show
      Setup Get a Google API key following the Youtube Data API guide Don't forget to enable Youtube Data API v3 on Google's Enabled APIs page Testing Log in as an admin and go to Site administration > Plugins > Blocks > Manage blocks. Enable the YouTube block In the YouTube block settings, add an API key and save changes. Go to the site home and turn editing on. Add a Tags block to the page via the 'Add a block' link. Click on any tag in the Tags block. (If there are no tags available, add a tag to an item on the site or add a tag to the default collection via 'Manage tags' in the Site administration.) On the tag page, add the YouTube block via the 'Add a block' link. (Note that the YouTube blocks may only be added to a tag page.) Check that the YouTube block displays videos related to the tag.

      Since MDL-67733 is not going to make it to 4.1 we need to at least patch the existing library so it does not throw errors on PHP 8.1

            marina Marina Glancy
            marina Marina Glancy
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Andrew Lyons Andrew Lyons
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            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 - 55 minutes
                55m

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