- Issue created by @jason_purdy
- πͺπΈSpain enchufe Spain
As a workaround I've created a patch to make the
AudioFieldPluginBase
andWavesurferAudioPlayer
classes support bothDrupalCoreFileUrlGenerator
andDrupalCoreFileUrlGenerator
. And, as this patch fixes a problem that only affects in a specific scenario, I have added the CDN module as a dependency. - Status changed to RTBC
7 months ago 1:06pm 18 October 2024 - πΊπΈUnited States robertmartin1961
The patch does resolve the issue, but the module has yet to be updated with the fix. I am currently using version 1.13.0 of the AudioField module, but I need to apply this patch whenever I reinstall the module. The only section of this patch that succeeds and fixes the issue is "/src/Plugin/AudioPlayer/WavesurferAudioPlayer.php"
Who and when will this module be updated with the identified fix?
- πΊπΈUnited States smethawee
I also got the issue when I upgrade Drupal 10.4.6 to Drupal 11.1.6 If anyone can point how to fix it. I appreciate it very much.
The website encountered an unexpected error. Try again later.
TypeError: Drupal\audiofield\AudioFieldPluginBase::__construct(): Argument #4 ($library_discovery) must be of type Drupal\Core\Asset\LibraryDiscovery, Drupal\Core\Asset\LibraryDiscoveryCollector given, called in /var/www/html/web/modules/contrib/audiofield/src/AudioFieldPluginBase.php on line 82 in Drupal\audiofield\AudioFieldPluginBase->__construct() (line 68 of modules/contrib/audiofield/src/AudioFieldPluginBase.php).