Closed (duplicate)
Project:
Seven
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2026 at 07:01 UTC
Updated:
14 Mar 2026 at 23:35 UTC
Jump to comment: Most recent
Error: Call to undefined function format_size() in seven_preprocess_image_widget() (line 432 of /var/www/html/docroot/themes/contrib/seven/seven.theme)
| Comment | File | Size | Author |
|---|---|---|---|
| seven-theme-format-size-d11.patch | 751 bytes | dhavalpanchal |
Comments
Comment #2
avpadernoByteSizeMarkup::create()does not exist in Drupal 9.The solution is not simply replacing a call to
format_size()with a call toByteSizeMarkup::create(). The solution is back-porting #3577760: The file-link template should not always display file_size, which also removes the call toformat_size().Comment #3
avpadernoComment #5
avpaderno