Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.Problem/Motivation
Warning: Undefined array key "X-Ratelimit-Limit" in Drupal\media_pexels\Plugin\EntityBrowser\Widget\PexelsWidget->getForm() (line 475 of /app/web/modules/contrib/media_pexels-media_pexels/src/Plugin/EntityBrowser/Widget/PexelsWidget.php)
That header is missing and 'X-Ratelimit-Remaining' always shows the default ratelimit 20.000.
Steps to reproduce
Search pexels using the widget.
Proposed resolution
Hide the quota info if we don't have all data.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | media_pexels-3342325-2.patch | 1.37 KB | primsi |
Issue fork media_pexels-3342325
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
primsi commentedInitial patch.
Comment #4
primsi commentedComment #5
primsi commentedComment #7
primsi commentedMissed to merge this one.