Error: Call to undefined method Drupal\Component\Utility\Bytes::toInt()

Created on 27 November 2023, 7 months ago
Updated 8 December 2023, 7 months ago

Problem/Motivation

Error encountered:
Error: Call to undefined method Drupal\Component\Utility\Bytes::toInt() in Drupal\entity_browser\Plugin\EntityBrowser\Widget\MediaImageUpload->getForm() (line 56 of /app/docroot/modules/contrib/entity_browser/src/Plugin/EntityBrowser/Widget/MediaImageUpload.php).

Steps to reproduce

Using Entity Browser to load assets into Media fields for a site upgraded to PHP 8.2 and Drupal 10 is generating the error:
Error: Call to undefined method Drupal\Component\Utility\Bytes::toInt() in Drupal\entity_browser\Plugin\EntityBrowser\Widget\MediaImageUpload->getForm() (line 56 of /app/docroot/modules/contrib/entity_browser/src/Plugin/EntityBrowser/Widget/MediaImageUpload.php).

πŸ’¬ Support request
Status

Closed: cannot reproduce

Version

2.9

Component

Deprecation updates

Created by

πŸ‡»πŸ‡ͺVenezuela zahord

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024