Used the new version and now I can't access my website

Created on 17 February 2023, about 2 years ago
Updated 1 December 2023, over 1 year ago

Error: Class "DeviceDetector\DeviceDetector" not found in Drupal\Component\DependencyInjection\Container->createService() (line 259 of core\lib\Drupal\Component\DependencyInjection\Container.php).

Drupal\Component\DependencyInjection\Container->createService(Array, 'counter.device_detector') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('counter.device_detector', 1) (Line: 434)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'counter.counter_utility') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('counter.counter_utility', 1) (Line: 434)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'counter.counter_event_subscriber') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('counter.counter_event_subscriber') (Line: 136)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.request') (Line: 145)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

💬 Support request
Status

Closed: cannot reproduce

Version

1.2

Component

Code

Created by

🇵🇭Philippines Neonshade

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • Dhakad509 changed the visibility of the branch 3342554-used-the-new to hidden.

  • Assigned to Neonshade
  • Status changed to Closed: cannot reproduce over 1 year ago
  • 🇮🇳India Akhil Babu Chengannur

    I have tested the latest version of this module in Drupal 9 site (As the latest version supports only up to Drupal 10) and everything works fine.
    As per the error message, Device detector library is missing in your code base. It should get automatically downloaded when this module is installed using composer. Did you install the module using composer?
    Install command: composer require 'drupal/counter:^1.2'

Production build 0.71.5 2024