fread() TypeError in TarArchiveWriter.php

Created on 3 February 2023, over 1 year ago
Updated 17 February 2023, over 1 year ago

Problem/Motivation

Content editing screen fails to load due to fread error in TarArchiveWriter.php The error received is

TypeError: fread(): Argument #1 ($stream) must be of type resource, bool given in ...\modules\backup_migrate\src\Core\Service\TarArchiveWriter.php on line 49 #0

Steps to reproduce

Install Drupal 9 with PHP 8.1.13 then try to edit a content block.

Proposed resolution

Add a type check to variable submissions to allow a better path for script failure.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

5.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dms117

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

Comments & Activities

Production build 0.69.0 2024