Repositories ::: repository_giphy
Maintained by Andrei Băutu
Moodle plugin for using of as repository
Latest release:
19 sites
6 fans
Current versions available: 1
Moodle plugin for using of as repository

How to setup 

  1. Download and install the plugin, as indicated here Access Site administration > Plugins > Repositories > Manage repositories. 
  2. Enable the plugin and access its settings page. 
  3. Fill in the Giphy API key (you can get one from
  4. Optional, limit the available files to a specific rating level.

How to use

  1. Select any field that triggers the file picker (e.g. file upload in assignments, link in forum posts, etc.)
  2. In the File picker, select the Giphy repository. 
  3. Search or browse the available images to select one.
  4. For the selected image, you will be presented with multiple options for format and resolutions to select from.


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3


Andrei Băutu (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS


  • Fri, Feb 2, 2018, 8:30 PM
    Approval issue created: CONTRIB-7182
  • Thu, Feb 22, 2018, 4:49 PM
    Hi Andrei,

    Thanks for submitting this plugin! I think it a a realy fun and nice addition to the plugin DB.

    During installation I noticed a small problem in when configuring the Giphy API key. The steps to reproduce are:
    Turn on development mode
    Go to Site Administration -> Development
    Select Debugging
    Set Debugging to "Developer..."
    Check the display debug messages

    Go to Site Administration -> Plugins
    Select Repositories -> Manage Repositories
    Click the settings icon for the Giphy repository

    You will see this notice:

    Did you remember to call setType() for 'api_key'? Defaulting to PARAM_RAW cleaning.
    line 1354 of /lib/formslib.php: call to debugging()
    line 312 of /lib/formslib.php: call to moodleform->detectMissingSetType()
    line 218 of /lib/formslib.php: call to moodleform->_process_submission()
    line 99 of /admin/repository.php: call to moodleform->__construct()


    Notice: Undefined variable: attributes in /var/wwwdata/mdk/stable_34/moodle/repository/giphy/lib.php on line 260

    For further info please read:

  • Tue, Sep 18, 2018, 9:09 AM
    Why I attempt to select Giphy from the list of repositories on the File Picker dialog box in Moodle 3.5, I get the following error:

    Exception - Too few arguments to function html_writer::img(), 1 passed in [dirroot]/repository/giphy/lib.php on line 235 and at least 2 expected
  • Sat, Oct 31, 2020, 1:00 AM
    Dear Andrei,

    I tried to use your plugin in a Moodle 3.9.2.+ installation but I keep getting the same error as mentioned by Matthew. Is there any fix?

    Thank you!
  • Thu, Nov 12, 2020, 9:12 PM
    Hello Martin and Matthew, I updated the code and tested the plugin on Moodle 3.10. Please give it a try now.
    Matthew, I'm sorry this small fix comes after more than 2 years since you reported it.
  • Sat, Nov 14, 2020, 4:46 AM
    Hello Andrei, thank you for your time and effort! Just tried it and it works like a charm! Great plugin for a bit of fun to lighten the mood! Thank you!
  • Wed, Apr 14, 2021, 5:30 PM
    Hello Andrei,

    thanks for your effort to create such a cool plugin.

    Sadly, I have a problem with using the gifs on our moodle website. In the file packer I can see all gifs and can search for many more, but if I select a gif, a message is seen with "No data available". And I don't know why sad

    Do I need a ADI production key or is there a different problem I need to fix in moodle itself?

    Thanks for your help!
  • Wed, Apr 14, 2021, 6:40 PM
    I can test to see if anything change within the API. Can you tell me which moodle version do you use?
  • Thu, Apr 15, 2021, 2:06 PM
    Thank you so much! We are using the version 3.10.3
  • Sun, Apr 18, 2021, 10:45 PM
    Hello, Sabrina. I tested with a fresh install of 3.10.3 and it works. You do need an API key for it to work. You can use a free key.
  • Mon, Apr 19, 2021, 4:00 PM
    Hey, Andrei. Hmmm. Damn. It still doesn't work with our moodle and I put in a new API key. I installed your plugin anew as well but it still has the same error ("No data available"). It's curious because I can see the gifs in the previous step. Do you have any other idea what could be wrong? Do I need to change something in the moodle settings?
Please login to post comments