Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Try up add a flickr image before a Flickr API is added. The message contain wrong path to the Flickr API setting page, and a PHP warning.
Notice: Undefined index: err in _media_flickr_get_user_id() (line 203 of media_flickr/includes/media_flickr.utilities.inc).
Proposed resolution
Let _media_flickr_get_user_id() return FALSE if $info if empty.
Remaining tasks
Ideally should we also get rid of
Unable to handle the provided embed string or URL.
warning when API key is missing, it is simply confusing.
User interface changes
None
API changes
None
Comment | File | Size | Author |
---|---|---|---|
#1 | media_flickr-2289781-1.patch | 2.07 KB | steinmb |
Comments
Comment #1
steinmb CreditAttribution: steinmb commentedThis addressed the problem. Also correct the doc block claiming it returns a object.
Comment #3
steinmb CreditAttribution: steinmb as a volunteer commentedcommit 8321fd2794 addresses the link to module settings page.