Not sure why this is happening, but here is the log. It may have happened before my latest update since I don't check every page. I imagine it's a php 7 issue.
Only effects audiofields.
[Thu Nov 22 10:25:44.340969 2018] [php7:notice] [pid 6150] [client 207.46.13.31:26704] TypeError: Argument 6 passed to Drupal\\audiofield\\AudioFieldPluginBase::__construct() must be an instance of Drupal\\Core\\Logger\\LoggerChannelFactory, instance of Drupal\\redirect_404\\Render\\Redirect404LogSuppressor given, called in /var/www/ssmusic.com/ssmusic/web/modules/co
ntrib/audiofield/src/AudioFieldPluginBase.php on line 65 in /var/www/ssmusic.com/ssmusic/web/modules/contrib/audiofield/src/AudioFieldPluginBase.php on line 47 #0 /var/www/ssmusic.com/ssmusic/web/modules/contrib/audiofield/src/AudioFieldPluginBase.php(65): Drupal\\audiofield\\AudioFieldPluginBase->__construct(Array, 'default_mp3_pla...', Array, Object(Drupal
\\Core\\Asset\\LibraryDiscovery), Object(Drupal\\Core\\Messenger\\Messenger), Object(Drupal\\redirect_404\\Render\\Redirect404LogSuppressor))\n#1 /var/www/ssmusic.com/ssmusic/web/c
ore/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(21): Drupal\\audiofield\\AudioFieldPluginBase::create(Object(Drupal\\Core\\DependencyInjection\\Container), Array, 'default_mp3_pla..
.', Array)\n#2 /var/www/ssmusic.com/ssmusic/web/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(83): Drupal\\Core\\Plugin\\Factory\\ContainerFactory->createInstance('default
_mp3_pla...', Array)\n#3 /var/www/ssmusic.com/ssmusic/web/modules/contrib/audiofield/src/Plugin/Field/FieldFormatter/AudioFieldFieldFormatter.php(592): Drupal\\Component\\Plugin\\P
luginManagerBase->createInstance('default_mp3_pla...')\n#4
...
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | loggerChannelFactoryInterface-3015629-8.patch | 1.36 KB | daniel.moberly |
| #5 | loggerChannelFactoryInterface-3015629-5.patch | 40.73 KB | janec |
| #3 | loggerChannelFactoryInterface-3015629-3.patch | 1.34 KB | janec |
Comments
Comment #2
paolo m. commentedI experienced the same problem (and got the same log message) after updating to 8.x-1.7 and I had to revert to AudioField 8.x-1.6.
In my case the broken pages are the ones which use AudioField and the Status Report admin page.
The php version I'm using on my production site is 7.0.32.
Thanks in advance for your help.
Comment #3
janec commentedThis seems to be very similar to this issue for the instagram_api module.
In short: we should replace LoggerChannelFactory with LoggerChannelFactoryInterface.
In attachment a patch that does just that.
Comment #4
janec commentedTried to make the title more specific.
Comment #5
janec commentedMissed a loggerChannelFactory in a comment.
Comment #6
tresero commentedThanks Janec, #5 works.
Comment #7
paolo m. commentedThank you very much Janec, #5 solved all my problems.
Comment #8
daniel.moberly commentedThe patch in number 5 is enormous for some reason. Revising the patch here for simplicity's sake. Thanks very much to Janec for the work
Comment #9
daniel.moberly commentedComment #11
daniel.moberly commented