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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fix-s3fs-class-type-error.patch | 4.15 KB | dbouman |
Comments
Comment #2
dbouman commentedI was experiencing the same issue.
Comment #3
marcoscanoYeah, 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,
Comment #4
wilksdotco commentedThank you both. I can confirm that #2 fixes the issue. Thanks for the quick turn around.
Comment #6
marcoscanoThank you!