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

Exception thrown when calling generate_image_thumbnail() from stored_file class.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.3, 3.4, 3.5, 3.6
    • Fix Version/s: 3.4.4, 3.5.1
    • Component/s: Files API
    • Labels:

      Description

      When using function generate_image_thumbnail of file storage (class file_storage), the function throw exception of undefined function for generate_image_thumbnail_from_image function. 

       
      To replicate (make sure dev mode is enabled):

      1. Place attached script "test_thumbnails.php" in the root of your Moodle install.
      2. Log in as admin, and upload a file to private files.
      3. Now, go to http://YOUR_MOODLE/test_thumbnails.php
      4. Notice you see an exception being thrown.

        Attachments

        1. Step4_MDL-60819.PNG
          8 kB
          Anna Carissa Sadia
        2. test_thumbnails.php
          0.6 kB
          Jake Dallimore

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Jul/18

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m