O sítio da Web encontrou um erro inesperado. Por favor tente mais tarde.
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).
Drupal\video\Plugin\Field\FieldWidget\VideoUploadWidget->formElement() (Line: 349)
Drupal\Core\Field\WidgetBase->formSingleElement() (Line: 167)
Drupal\file\Plugin\Field\FieldWidget\FileWidget->formMultipleElements() (Line: 168)
Drupal\video\Plugin\Field\FieldWidget\VideoUploadWidget->formMultipleElements() (Line: 111)
Drupal\Core\Field\WidgetBase->form() (Line: 183)
Drupal\Core\Entity\Entity\EntityFormDisplay->buildForm() (Line: 121)
Drupal\Core\Entity\ContentEntityForm->form() (Line: 127)
Drupal\node\NodeForm->form() (Line: 106)
Drupal\Core\Entity\EntityForm->buildForm()
call_user_func_array() (Line: 534)
Drupal\Core\Form\FormBuilder->retrieveForm() (Line: 281)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 163)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 74)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 681)
Drupal\Core\DrupalKernel->handle() (Line: 19)
devemos alterar a linha 253 do ficheiro web/modules/contrib/video/src/Plugin/Field/FieldWidget/VideoUploadWidget.php de:
$max_filesize = Bytes::toInt(Environment::getUploadMaxSize());
para
$max_filesize = Bytes::toNumber(Environment::getUploadMaxSize());
https://api.drupal.org/api/drupal/core%21modules%21file%21src%21Plugin%…