shoroshanska β made their first commit to this issueβs fork.
If we are talking specifically about "webp" files, then the problem is not reproduced in Drupal 10.2.0.
First, when creating a media type with an "Image" Media source, the "webp" extension is present in the "Allowed file extensions" field:
I tried these steps to reproduce the problem:
- create new media type and remove the "webp" extension from the "Allowed file extensions" field when creating;
- create new media item using this new media type and add a "gif" image;
- edit new media type and add "webp" to the list of "Allowed file extensions";
- edit the media item in question, remove the "gif" image and add a "webp". I did not have any errors.
driverok β credited shoroshanska β .
I have fixed the issue in the MR:
https://git.drupalcode.org/project/drupal/-/merge_requests/3994
Please review.
shoroshanska β made their first commit to this issueβs fork.
driverok β credited shoroshanska β .
Setup: D10.0.0, PHP 8.1.9, typed_data 8.x-1.x-dev
I got to this issue after rebuilding the cache via drush - drush cr
.
The patch #102 solves the issue for me.
drush cc router
also gets to a state that rules fire.
Setup: D10.0.0, PHP 8.1.9, typed_data 8.x-1.x-dev
I am getting this error after applying the patch
#5 β
:
TypeError: Drupal\typed_data\PlaceholderResolver::replacePlaceHolders(): Argument #1 ($text) must be of type string, null given, called in modules/contrib/rules/src/Plugin/RulesDataProcessor/TokenProcessor.php on line 72 in Drupal\typed_data\PlaceholderResolver->replacePlaceHolders() (line 166 of modules/contrib/typed_data/src/PlaceholderResolver.php).
The patch #2 β solves the issue for me. And there are no errors in the log.