TypeError: Argument 3 passed to Drupal\file\FileRepository::writeData() must be of the type int, string given,

Created on 20 December 2021, almost 3 years ago
Updated 2 January 2024, 11 months ago

TypeError: Argument 3 passed to Drupal\file\FileRepository::writeData() must be of the type int, string given, called in /web/core/modules/file/file.module on line 525 in Drupal\file\FileRepository->writeData() (line 89 of /web/core/modules/file/src/FileRepository.php)

💬 Support request
Status

Closed: works as designed

Version

9.5

Component
File system 

Last updated about 11 hours ago

Created by

🇮🇳India pvsureshmca

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

    Yes, the global constants are also gone, so you need to use the FileSystemInterface:: versions, otherwise PHP will assume you meant 'FILE_EXISTS_REPLACE' ie the literal string

Production build 0.71.5 2024