Class "Cleantalk\Custom\Antispam\CleantalkRequest" not found

Created on 17 April 2025, 28 days ago

Problem/Motivation

After updating to 9.6, I get php error:

Error: Class "Cleantalk\Custom\Antispam\CleantalkRequest" not found in Cleantalk\Custom\Updater\Updater::updateActions() (line 38 of /home/jamesrom/public_html/blogs/web/modules/contrib/cleantalk/lib/Cleantalk/Custom/Updater/Updater.php)

#0 /home/jamesrom/public_html/blogs/web/modules/contrib/cleantalk/src/EventSubscriber/BootSubscriber.php(107): Cleantalk\Custom\Updater\Updater::updateActions()
#1 /home/jamesrom/public_html/blogs/web/core/modules/ban/src/BanMiddleware.php(50): Drupal\cleantalk\EventSubscriber\BootSubscriber->handle()
#2 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle()
#3 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#4 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#5 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#6 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/DrupalKernel.php(709): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#7 /home/jamesrom/public_html/blogs/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#8 {main}

Steps to reproduce

Happened when I refreshed the cache after the 9.6.0 upgrade

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Active

Version

9.6

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States tjtj

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

Comments & Activities

  • Issue created by @tjtj
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States tjtj

    Reverting to 9.5 stopped the error

  • ๐Ÿ‡ท๐Ÿ‡บRussia znaeff

    Hello @tjtj,
    Thank you for providing this information.

    I have forwarded your details to our development team.

    We will get back to you with an update within three business days once we have any results.

    Thank you for your patience.

  • ๐Ÿ‡ท๐Ÿ‡บRussia znaeff

    Hello @tjtj,
    Thank you for waiting.

    We have fixed this issue. I have attached the patch and the new version.

    Did it help you?

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States tjtj

    Can you release a new version I can install with Composer? I just6 got an email that updates are ready to be used. Is that fir this new version?

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States tjtj

    hmmm. I removed the cleantalk directory and unzipped the above zip file to replace it. but I still get:
    1157484 23/Apr 14:46 php Error Error: Class
    "Drupal\cleantalk\EventSubscriber\BootSubscriber" not
    found in
    Drupal\Component\DependencyInjection\Container->create
    Service() (line 259 of
    /home/jamesrom/public_html/blogs/we

  • You're welcome.
    Unfortunately, the edits can only be installed manually: from the archive or with a patch. The release of a new version is not planned yet.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States tjtj

    This makes it hard to maintain the site using Composer. php errors are critical.

  • ๐Ÿ‡ท๐Ÿ‡บRussia znaeff

    Hello,
    Unfortunately, at this time weโ€™re not able to release a new version โ€” the fixes are only available via manual installation (ZIP or patch). Weโ€™ll definitely include them in the next official release, but thereโ€™s no set date yet.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States serge-m

    Hello and thank you for waiting.

    We have fixed the issue. Please, re-install the CleanTalk module from this archive:
    https://www.drupal.org/project/cleantalk/releases/9.6.1 โ†’

    Did it help?

Production build 0.71.5 2024