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

portfolio_flickr stopped working on PHP 7.4 and upward

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • MDL-71741-master
    • Hide

      Notes for the tester

      1. This test needs to be run on php7.4 and 8.0
      2. This test can be tested at the same time as MDL-71737

      Initial setup

      1. Enable Portfolio in Administration.
      2. Enable Portfolio Flickr and connect to Flickr API using a Client ID and Secret.
      3. Create a Course.
      4. Create a Forum.

      Test

      1. Login as admin or teacher or student.
      2. Go to the created Forum.
      3. Click on the Add a new discussion topic button.
      4. Click on the Advanced link.
      5. Fill in the subject and message.
      6. Upload an image file to the Attachment (Ex: PNG or JPG file).
      7. Click on the Post to forum button.
      8. Click the "plus" icon next to the image.
      9. Verify that the Flickr portfolio works again, allowing the user to authorize the Moodle site to upload photos to Flickr.
      Show
      Notes for the tester This test needs to be run on php7.4 and 8.0 This test can be tested at the same time as MDL-71737 Initial setup Enable Portfolio in Administration. Enable Portfolio Flickr and connect to Flickr API using a Client ID and Secret. Create a Course. Create a Forum. Test Login as admin or teacher or student. Go to the created Forum. Click on the Add a new discussion topic button. Click on the Advanced link. Fill in the subject and message. Upload an image file to the Attachment (Ex: PNG or JPG file). Click on the Post to forum button. Click the "plus" icon next to the image. Verify that the Flickr portfolio works again, allowing the user to authorize the Moodle site to upload photos to Flickr.
    • 2
    • Internationals - 4.0 Sprint 1

      portfolio_flickr stopped working on PHP 7.4 and upward due to the fatal error because we're trying to serialize CURLFile class, which does not allow anymore.

      Unserialization of CURLFile instances is not allowed. As of PHP 7.4.0, serialization is forbidden in the first place.
      

      Refer: https://www.php.net/manual/en/class.curlfile.php

       

            huongn@moodle.com Huong Nguyen
            huongn@moodle.com Huong Nguyen
            Dongsheng Cai Dongsheng Cai
            Andrew Lyons Andrew Lyons
            Gladys Basiana Gladys Basiana
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 2 hours, 40 minutes
                1d 2h 40m

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