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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

xcf33’s picture

FileSize
752 bytes
xcf33’s picture

xcf33’s picture

FileSize
752 bytes
Dave Reid’s picture

Status: Active » Needs review
FileSize
1.09 KB

Please try the following patch with the latest File entity release.