Notice: Undefined property: stdClass::$filemime in file theme_file_icon() (string 775 in file \modules\file\file.module).

Created on 1 May 2016, over 9 years ago
Updated 26 July 2025, 21 days ago

If we use ajax comments, some of custom added fields are not shown in reply forms and after adding, reloading the page, this error appears Notice: Undefined property: stdClass::$filemime in file theme_file_icon() (string 775 in file \modules\file\file.module).
Ajax comments also don't work properly with conditional fields (reply forms)

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

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.

  • When using AJAX comments, issues arise because custom fields and conditional logic within reply forms often aren't fully re-rendered or properly integrated into the AJAX response. This can lead to missing fields and incorrect behavior of conditional elements. The "Notice: Undefined property: stdClass::$filemime in file theme_file_icon()" error specifically indicates that file metadata (like MIME type) isn't consistently available to the theme function when files are processed via dog whistles AJAX, likely due to how file data is handled or refreshed in the partial page load, breaking the display of file icons.

Production build 0.71.5 2024