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

image/png missing language string

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.1.6, 2.2.3
    • Component/s: Language
    • Labels:
    • Testing Instructions:
      Hide
      1. Go to [Site administration->Plugins->Repositories->Manage repositories] and make Youtube videos and Wikimedia 'Enabled and visible'.
      2. Create an activity which uses a text editor. (I chose a lesson, but it could be a reply in a forum)
      3. Click the moodle media button on the text editor and click 'Find or upload a sound, video or applet...'
      4. Select Wikimedia and then do a search for test
      5. Select one of the results which is a PNG file
      Show
      Go to [Site administration->Plugins->Repositories->Manage repositories] and make Youtube videos and Wikimedia 'Enabled and visible'. Create an activity which uses a text editor. (I chose a lesson, but it could be a reply in a forum) Click the moodle media button on the text editor and click 'Find or upload a sound, video or applet...' Select Wikimedia and then do a search for test Select one of the results which is a PNG file
    • Affected Branches:
      MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull Master Branch:

      Description

      As Jason discovered:

      Invalid get_string() identifier: 'image/png' or component 'mimetypes'
      
      line 5962 of /lib/moodlelib.php: call to debugging()
      line 6552 of /lib/moodlelib.php: call to core_string_manager->get_string()
      line 177 of /repository/repository_ajax.php: call to get_string(){"error":"[[image\/png]] filetype cannot be accepted.","stacktrace":"* 
      line 177 of \/repository\/repository_ajax.php: moodle_exception thrown\n","debuginfo":null,"reproductionlink":"http:\/\/localhost\/istable21\/"
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    14/May/12