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.
This happens when I have configured my site as a oEmbed provider and accessing a the public endpoint:
http://localhost/[site-name]/oembed/endpoint/?url=http://localhost/media...
Fatal error: Unsupported operand types in oembed/oembedprovider/plugins/providers/file.inc on line 54
The following code block
$result += array(
'type' => 'photo',
'url' => file_create_url($file->uri),
) + $file->image_dimensions;
It seems that $file->image_dimensions doesn't actually exist, it is being replaced by $file->metadata
I am using media module 7.x-2.0-alpha3 and file entity 7.x-2.0-alpha3
I will post a patch shortly.
Comment | File | Size | Author |
---|---|---|---|
#4 | 2154673-oembed-provider-image-dimensions.patch | 1.09 KB | Dave Reid |
#3 | oembedprovider-2154673-2.patch | 752 bytes | xcf33 |
Comments
Comment #1
xcf33 CreditAttribution: xcf33 commentedComment #2
xcf33 CreditAttribution: xcf33 commentedComment #3
xcf33 CreditAttribution: xcf33 commentedComment #4
Dave ReidPlease try the following patch with the latest File entity release.