After update of Drupal to 8.4 i faced error:

The website encountered an unexpected error. Please try again later.
TypeError: Argument 2 passed to Drupal\adv_varnish\Varnish::__construct() must implement interface Psr\Log\LoggerInterface, instance of stdClass given, called in /var/www/drupal/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php on line 270 in Drupal\adv_varnish\Varnish->__construct() (line 48 of modules/contrib/adv_varnish/src/Varnish.php).
Drupal\adv_varnish\Varnish->__construct(Object, Object, Object) (Line: 270)
Drupal\Component\DependencyInjection\Container->createService(Array, 'adv_varnish.handler') (Line: 171)
Drupal\Component\DependencyInjection\Container->get('adv_varnish.handler', 1) (Line: 480)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 328)
Drupal\Component\DependencyInjection\Container->createService(Array, 'cache_tags.invalidator.adv_varnish') (Line: 171)
Drupal\Component\DependencyInjection\Container->get('cache_tags.invalidator.adv_varnish', 1) (Line: 480)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 319)
Drupal\Component\DependencyInjection\Container->createService(Array, 'cache_tags.invalidator') (Line: 171)
Drupal\Component\DependencyInjection\Container->get('cache_tags.invalidator', 1) (Line: 480)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 230)
Drupal\Component\DependencyInjection\Container->createService(Array, 'router.route_provider') (Line: 171)
Drupal\Component\DependencyInjection\Container->get('router.route_provider', 1) (Line: 480)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 230)
Drupal\Component\DependencyInjection\Container->createService(Array, 'options_request_listener') (Line: 171)
Drupal\Component\DependencyInjection\Container->get('options_request_listener') (Line: 105)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.request', Object) (Line: 129)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 67)
Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 657)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

I think we should change factory service record in adv_varnish.services.yml to the new format:

    factory: logger.factory:get

Comments

afi13 created an issue. See original summary.

afi13’s picture

Status: Active » Needs review
StatusFileSize
new421 bytes
afi13’s picture

Issue summary: View changes
m.krestnicov’s picture

Assigned: Unassigned » m.krestnicov

  • afi13 authored 065f1f9 on 8.x-2.x
    Issue #2937313 by afi13: Incompatibility with Drupal 8.4
    
m.krestnicov’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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