Hi,

Drupal-8.1.8 is used.
Here is the error log messages :

TypeError: Argument 5 passed to Drupal\locale\Plugin\QueueWorker\LocaleTranslation::__construct() must be an instance of Drupal\Core\Queue\QueueInterface, instance of Drupal\redis\Queue\PhpRedis given, called in /data/disk/01/static/drupal-8.1.8_dev/core/modules/locale/src/Plugin/QueueWorker/LocaleTranslation.php on line 66 in Drupal\locale\Plugin\QueueWorker\LocaleTranslation->__construct() (line 50 of /data/disk/01/static/drupal-8.1.8_dev/core/modules/locale/src/Plugin/QueueWorker/LocaleTranslation.php).

Thank you.

CommentFileSizeAuthor
#5 queue_interface-2801983-5.patch476 bytesmkolar

Comments

vindo created an issue. See original summary.

vindo’s picture

Status: Active » Closed (fixed)

Hi,
Solved.
I use the DEV version and I have no error.

phjou’s picture

Hi,
I have the same error using the 1.0-beta1 release.
The error seems to occur only if you well configure your interface translations directory in your file system configuration.

maxpah’s picture

Same problem here.
Be careful to your "queue_default" settings.
Remove the line in settings.php

$settings['queue_default'] = 'queue.redis';

Worked for me.

mkolar’s picture

StatusFileSize
new476 bytes

I would say this is not solved... any maintainer here to reopen this? We have the same problem with core 8.4.0-beta1 and 1.0.0-beta1..

Workaround is to to use database for locale with this settings:

$settings[‘queue_service_locale_translation’] = ‘queue.database’;

Or use attached patch.. It fixes issue so you can use queue.redis for locale_translation queue worker..

berdir’s picture

Status: Closed (fixed) » Needs review
berdir’s picture

Status: Needs review » Fixed

Thanks, I committed a slightly different version that adds the interface to the base class instead.

  • Berdir committed 7ca28d2 on 8.x-1.x authored by mkolar
    Issue #2801983 by mkolar, Berdir: If Redis is on and I install "...

Status: Fixed » Closed (fixed)

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