Site dies after updating to Cleantalk 9.1.24

Created on 21 October 2022, about 2 years ago
Updated 24 February 2023, almost 2 years ago

Problem/Motivation

After updating to Cleantalk 9.1.24, the next access to the site crashes with the following error:

Error: Class "Drupal\cleantalk\EventSubscriber\BootSubscriber" not found in Drupal\Component\DependencyInjection\Container->createService() (line 262 of /home/accdesign/public_html/web/core/lib/Drupal/Component/DependencyInjection/Container.php)
#0 /home/accdesign/public_html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(176): Drupal\Component\DependencyInjection\Container->createService()
#1 /home/accdesign/public_html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(437): Drupal\Component\DependencyInjection\Container->get()
#2 /home/accdesign/public_html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(240): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters()
#3 /home/accdesign/public_html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(176): Drupal\Component\DependencyInjection\Container->createService()
#4 /home/accdesign/public_html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(437): Drupal\Component\DependencyInjection\Container->get()
#5 /home/accdesign/public_html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(240): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters()
#6 /home/accdesign/public_html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(176): Drupal\Component\DependencyInjection\Container->createService()
#7 /home/accdesign/public_html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(437): Drupal\Component\DependencyInjection\Container->get()
#8 /home/accdesign/public_html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(240): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters()
#9 /home/accdesign/public_html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(176): Drupal\Component\DependencyInjection\Container->createService()
#10 /home/accdesign/public_html/web/core/lib/Drupal/Core/DrupalKernel.php(1363): Drupal\Component\DependencyInjection\Container->get()
#11 /home/accdesign/public_html/web/core/lib/Drupal/Core/DrupalKernel.php(709): Drupal\Core\DrupalKernel->getHttpKernel()
#12 /home/accdesign/public_html/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#13 {main}

Steps to reproduce

  1. Uninstall CleanTalk (if installed already)
  2. Install Cleantalk 9.1.21 (Drupal will cache the service definitions)
  3. Update Cleantalk to 9.1.24 via composer
  4. Access the site. (Drupal will use the incorrect, cached service definitions)

Proposed resolution

Add a post_update hook each time the service definitions change. This is a standard procedure for Drupal module maintenance, though it is not a very well-known standard. https://www.drupal.org/node/2960601 β†’

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

RTBC

Version

9.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Ben Coleman

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.

Production build 0.71.5 2024