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.
drush cron --debug
I see the following:
WD Feeds: exception 'Exception' with message 'Invalid enclosure
https://fbexternal-a.akamaihd.net/safe_image.php?d=AQCc3_Nk7ZztLNc3&w=13...'
characters are written incorrectly for example "&" instead of "&"
Comment | File | Size | Author |
---|---|---|---|
#1 | feeds_facebook-invalid-enclosure-2481469-1.patch | 997 bytes | COBadger |
Comments
Comment #1
COBadger CreditAttribution: COBadger as a volunteer and commentedWe experienced this issue and believe it to be caused by Facebook returning an image that does not live within Facebook through an image utility ('safe_image.php'.)
We added logic to parse the Facebook $entry->full_image, determine if this entry features an image being rendered through safe_image.php and extract the original image's URL, which we substituted back for $entry->full_image.
It may be that this approach loses image sanitizing provided by Facebook's safe_image.php utility, but in our case we're pulling Facebook posts from our own account and we're not worried about malicious images.
Patch attached.