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 
...

Comments

tresero created an issue. See original summary.

paolo m.’s picture

I 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.

janec’s picture

Assigned: Unassigned » janec
Status: Active » Needs review
StatusFileSize
new1.34 KB

This 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.

janec’s picture

Title: Error after update? » Error: LoggerChannelFactory -> LoggerChannelFactoryInterface

Tried to make the title more specific.

janec’s picture

Assigned: janec » Unassigned
StatusFileSize
new40.73 KB

Missed a loggerChannelFactory in a comment.

tresero’s picture

Thanks Janec, #5 works.

paolo m.’s picture

Thank you very much Janec, #5 solved all my problems.

daniel.moberly’s picture

The 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

daniel.moberly’s picture

Status: Needs review » Reviewed & tested by the community

  • Daniel.Moberly committed f550681 on 8.x-1.x
    Issue #3015629 by Janec, Daniel.Moberly: Error: LoggerChannelFactory ->...
daniel.moberly’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.