- Issue created by @doxigo
- First commit to issue fork.
- π¬π§United Kingdom alexpott πͺπΊπ
@doxigo thanks for commenting on the core issue - I think that MR attached might fix it. Can you test it?
- Status changed to Needs review
6 months ago 12:47pm 25 June 2024 - π΅πΉPortugal marcofernandes
@alexpott That'll work. Thanks.
Note that also adding the tags to the gutenberg.media_library.opener service would also work.gutenberg.media_library.opener: class: Drupal\gutenberg\MediaLibraryGutenbergOpener tags: - { name: media_library.opener }
But, I guess, this way, we don't have to worry about other autoconfigurable services that may come up.
- π΅πΉPortugal marcofernandes
We're having issues on Gitlab CI, specifically on the phpunit (max PHP version) job:
Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: The configuration key "autoconfigure" cannot be used to define a default value in "modules/custom/gutenberg-3456995/gutenberg.services.yml". Allowed keys are "public", "tags", "autowire".
But it succeeds on the other phpunit jobs π€
- π¬π§United Kingdom alexpott πͺπΊπ
Given you support 9.5 maybe we can't do autoconfigure
Thanks guys, and thanks for a quick patch Alex, I can confirm that this fixes the issue
- Status changed to Fixed
6 months ago 10:22am 6 July 2024 - Status changed to Active
5 months ago 4:44pm 7 July 2024 - π©πͺGermany szeidler Berlin
szeidler β changed the visibility of the branch 3456995-8.x-2.x to hidden.
- π©πͺGermany szeidler Berlin
szeidler β changed the visibility of the branch 3456995-8.x-2.x to active.
- Merge request !168Issue #3456995 by alexpott, szeidler, doxigo, marcofernandes: Media block... β (Merged) created by szeidler
- Status changed to Needs review
5 months ago 4:52pm 7 July 2024 -
szeidler β
committed 509398e2 on 8.x-2.x
Issue #3456995 by alexpott, szeidler, doxigo, marcofernandes: Media...
-
szeidler β
committed 509398e2 on 8.x-2.x
- Status changed to Fixed
5 months ago 7:16am 8 July 2024 I also got this same issue with Drupal 10.3.1 upgrade, using PHP 8.1.28 on Acquia, and the Gutenberg module 8.x-2.9. Whenever I add a media block and upload a file to it, I can see the Ajax request to "/editor/media/upload/gutenberg". Not sure if it's the same Ajax error as the others that were reported, but before the JSON object is returned by the request above, I can see the following deprecation warning in the response:
<br/><b>Deprecated</b>: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in <b>/mnt/www/html/hpdevportal3dev/docroot/core/lib/Drupal/Component/Utility/Bytes.php</b> on line <b>76</b><br/><br/><b>Deprecated</b>: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in <b>/mnt/www/html/hpdevportal3dev/docroot/core/lib/Drupal/Component/Utility/Bytes.php</b> on line <b>78</b><br/>
The error persists, even after applying the patch that includes the "media_library.opener" tag to the "gutenberg.media_library.opener" service. The error wasn't happening in the 10.2.4, and curiously enough, it's happening only in our dev environment on Acquia Cloud, not happening in our local environments with Docksal.
Is it something from the Drupal 10.3 upgrade? Or maybe something related with how PHP is configured to show notifications or not?
Automatically closed - issue fixed for 2 weeks with no activity.