Problem/Motivation

Updating from 2.00 beta7 to 2.00 beta8 produces the following error when saving a node:

TypeError: Drupal\entity_usage\EntityUsageTrackBase::__construct(): Argument #10 ($public_stream) must be of type Drupal\Core\StreamWrapper\PublicStream, Drupal\s3fs\StreamWrapper\PublicS3fsStream given, called in /var/www/html/web/modules/contrib/entity_usage/src/EntityUsageTrackBase.php on line 123 in Drupal\entity_usage\EntityUsageTrackBase->__construct() (line 97 of modules/contrib/entity_usage/src/EntityUsageTrackBase.php).

Steps to reproduce

Have S3 as the Drupal file system. Upgrade to beta8 from beta7. Create or edit a node with media and save.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 fix-s3fs-class-type-error.patch4.15 KBdbouman

Comments

wilksdotco created an issue. See original summary.

dbouman’s picture

StatusFileSize
new4.15 KB

I was experiencing the same issue.

marcoscano’s picture

Status: Active » Needs review
Issue tags: -StreamWrapper, -s3fsStreamWrapper, -s3fs

Yeah, that was probably introduced in https://git.drupalcode.org/project/entity_usage/-/commit/22901f1 , thanks for filing this and for the patch.

@wilksdotco can you please test the patch above, and confirm if it solves the problem for you?

Thanks,

wilksdotco’s picture

Thank you both. I can confirm that #2 fixes the issue. Thanks for the quick turn around.

  • marcoscano committed 73420874 on 8.x-2.x authored by dbouman
    Issue #3338906 by dbouman, wilksdotco, marcoscano: Node save broken when...
marcoscano’s picture

Status: Needs review » Fixed

Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.