Undefined property stdClass::$uri and stdClass::$filemime in file_styles_styles_filter()

Created on 13 June 2011, about 14 years ago
Updated 11 June 2025, 2 days ago

I am getting these errors when viewing a node that has a multimedia asset field on it for images, using a media style for display.

Notice: Undefined property: stdClass::$uri in file_styles_styles_filter() (line 40 of /var/www/mysite/sites/all/modules/styles/contrib/file_styles/file_styles.module).
Notice: Undefined property: stdClass::$filemime in file_styles_styles_filter() (line 56 of /var/www/mysite/sites/all/modules/styles/contrib/file_styles/file_styles.module).

If I insert if I insert the images into the body using WYSIWYG everything works as expected but when using the field I get the errors and the image doesn't display.

The object in question is:

                    [0] => stdClass Object
                        (
                            [fid] => 5
                            [title] => 
                            [data] => 
                            [file] => stdClass Object
                                (
                                    [fid] => 5
                                    [uid] => 1
                                    [filename] => IMG_5056.jpg
                                    [uri] => public://IMG_5056.jpg
                                    [filemime] => image/jpeg
                                    [filesize] => 1697491
                                    [status] => 1
                                    [timestamp] => 1307929907
                                    [type] => image
                                    [field_caption] => Array
                                        (
                                        )

                                )

                        )
πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia rooby

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.

  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9

    Thank you for your contributions to this issue. As Drupal 7 has reached its End of Life and is no longer supported, we are closing this issue. We encourage you to upgrade to a supported version of Drupal.

Production build 0.71.5 2024