Error: Call to undefined function format_size() in seven_preprocess_image_widget() (line 432 of /var/www/html/docroot/themes/contrib/seven/seven.theme)

CommentFileSizeAuthor
seven-theme-format-size-d11.patch751 bytesdhavalpanchal

Comments

dhavalpanchal created an issue. See original summary.

avpaderno’s picture

Status: Active » Needs work
Issue tags: +Needs merge request

ByteSizeMarkup::create() does not exist in Drupal 9.

The solution is not simply replacing a call to format_size() with a call to ByteSizeMarkup::create(). The solution is back-porting #3577760: The file-link template should not always display file_size, which also removes the call to format_size().

avpaderno’s picture

Assigned: dhavalpanchal » Unassigned
Status: Needs work » Closed (duplicate)
Related issues: +#3577760: The file-link template should not always display file_size

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

avpaderno’s picture

Issue tags: -Needs merge request