TypeError: Drupal\file\Validation\FileValidator::validate():

Created on 26 November 2024, 5 months ago

When inserting photos we always get the following error message

TypeError: Drupal\file\Validation\FileValidator::validate(): Argument #1 ($file) must be of type Drupal\file\FileInterface, Drupal\media\Entity\Media given, called in /var/www/vhosts/saarland.today/saarland.today/modules/contrib/entity_browser/src/Plugin/EntityBrowser/WidgetValidation/File.php on line 46 in Drupal\file\Validation\FileValidator->validate() (Zeile 43 in /var/www/vhosts/saarland.today/saarland.today/core/modules/file/src/Validation/FileValidator.php).

🐛 Bug report
Status

Active

Version

2.0

Component

Core API

Created by

🇩🇪Germany saarlandtoday

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

Comments & Activities

  • Issue created by @saarlandtoday
  • 🇦🇺Australia kobusvw Adelaide

    Could you kindly provide an update on the current status of the solution or patch for this issue?

    Thank you in advance for your assistance, and I look forward to your response.

Production build 0.71.5 2024