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

Created on 17 April 2025, 6 months 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?

  • πŸ‡§πŸ‡·Brazil irafah

    Yes @serge-m. The release 9.6.1 is working as expected
    I think we are safe to close this issue.
    Thanks!

Production build 0.71.5 2024