Needs Tests: File Styles applied to file fields in any entity other than media leads to warnings and lack of display

Created on 13 May 2010, about 15 years ago
Updated 11 June 2025, 2 days ago

I thought that I'd try out File Styles on some images, but I just get this returned for each file in my content:
Notice: Array to string conversion in file_uri_scheme() (line 170 of /var/www/drupal-7/includes/file.inc).
Warning: Cannot convert to ordinal value in file_uri_scheme() (line 170 of /var/www/drupal-7/includes/file.inc).

Plus this once at the bottom:
Notice: Undefined property: stdClass::$filename in theme_file_styles_styles_default() (line 38 of /var/www/drupal-7/sites/all/modules/styles/contrib/file_styles/file_styles.theme.inc).

There is no problem if I leave my display format as 'Generic file'.

πŸ› Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia Scott J

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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