Fatal error: Unsupported operand types

Created on 11 December 2013, over 11 years ago
Updated 26 November 2024, 4 months ago

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.

πŸ› Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States xcf33

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    I'm closing it because the issue was created a long time ago without any further steps.

    if you still need it then raise a new one.
    thanks

Production build 0.71.5 2024