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

Created on 10 April 2023, about 1 year ago
Updated 19 December 2023, 6 months ago

Problem/Motivation

Error encountered:
Error: Call to undefined method Drupal\Component\Utility\Bytes::toInt() in Drupal\video\Plugin\Field\FieldWidget\VideoUploadWidget->getUploadValidators() (line 253 of modules\contrib\video\src\Plugin\Field\FieldWidget\VideoUploadWidget.php).

Steps to reproduce

Chose Video upload instead embed video on Manage Form Display
Add a node (a content), then the following error is encountered:

Error: Call to undefined method Drupal\Component\Utility\Bytes::toInt() in Drupal\video\Plugin\Field\FieldWidget\VideoUploadWidget->getUploadValidators() (line 253 of modules\contrib\video\src\Plugin\Field\FieldWidget\VideoUploadWidget.php).

๐Ÿ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

๐Ÿ‡ฒ๐Ÿ‡บMauritius Moudeen

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024