cleantalk 9.2.0: “Class "Cleantalk\Common\Firewall\Modules\SFW" not found”, breaks site

Created on 1 February 2023, almost 2 years ago
Updated 4 March 2023, over 1 year ago

After using composer to update to 9.2.0, the site becomes inaccessible to visitors with watchdog full of the following php warning:


Error: Class "Cleantalk\Common\Firewall\Modules\SFW" not found in Drupal\cleantalk\EventSubscriber\BootSubscriber->handle() (line 115 of /public_html/modules/contrib/cleantalk/src/EventSubscriber/BootSubscriber.php)
#0 /public_html/core/modules/ban/src/BanMiddleware.php(50): Drupal\cleantalk\EventSubscriber\BootSubscriber->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#1 /public_html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#2 /public_html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#3 /vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#4 /public_html/core/lib/Drupal/Core/DrupalKernel.php(713): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#5 /public_html/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#6 {main}
>/quote>

Downgrading has corrected the issue for now.

🐛 Bug report
Status

Active

Version

9.2

Component

Code

Created by

🇬🇧United Kingdom Janner

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

Comments & Activities

  • Issue created by @Janner
  • 🇷🇺Russia znaeff

    Hello.

    Thank you for your request.

    We are sorry about this issue. Please give us 2-3 days for the investigations.

    We'll do our best to fix it as soon as possible.

  • 🇷🇺Russia znaeff

    Hello again.

    We've released a fix.
    https://www.drupal.org/project/cleantalk/releases/9.2.2

    Could you, please try it?

  • 🇬🇧United Kingdom Janner

    I'm not encountering this issue after updating to 9.2.2.

    Thank you for the speedy investigation and resolution. This module makes life so much simpler for me.

  • 🇷🇺Russia znaeff

    Thank you for your feedback!

    If you need further assistance, feel free to ask.

    Best regards.

  • 🇬🇧United Kingdom iainH

    Regrettably 9.2.2 fails when visitor accesses webform - works on other pages.

    [Wed Feb 01 20:28:46.698196 2023] [proxy_fcgi:error] [pid 918:tid 139870328837888] [client 114.119.135.92:57400] AH01071: Got error 'PHP message: Drupal\\Core\\Database\\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupal.cleantalk_ua_bl' doesn't exist: SELECT * FROM cleantalk_ua_bl ORDER BY `ua_status` DESC; Array\n(\n)\n in /var/www/drupal/web/modules/contrib/cleantalk/lib/Cleantalk/Custom/Db/Db.php on line 81 #0 /var/www/drupal/web/core/lib/Drupal/Core/Database/Connection.php(987): Drupal\\mysql\\Driver\\Database\\mysql\\ExceptionHandler->handleExecutionException(Object(PDOException), Object(Drupal\\Core\\Database\\StatementWrapper), Array, Array)\n#1 /var/www/drupal/web/modules/contrib/cleantalk/lib/Cleantalk/Custom/Db/Db.php(81): Drupal\\Core\\Database\\Connection->query('SELECT * FROM c...')\n#2 /var/www/drupal/web/modules/contrib/cleantalk/lib/Cleantalk/Custom/Firewall/Modules/AntiFlood.php(72): Cleantalk\\Custom\\Db\\Db->fetchAll('SELECT * FROM c...')\n#3 /var/www/drupal/web/modules/contrib/cleantalk/lib/Cleantalk/Common/Firewall/Firewall.php(180): Cleantalk\\Custom\\Firewall\\Modules\\AntiFlood->check()\n#4...', referer: https://bradford-abbas.uk/index.php/allnews?page=0"
    
  • 🇷🇺Russia znaeff

    Hello.

    Thank you for your feedback.

    We'll fix the issue as soon as possible.

    Please wait.

  • 🇷🇺Russia znaeff

    Hello iainH,

    Could you, please completely reinstall the plugin?

    Does it work?

  • 🇬🇧United Kingdom iainH

    Apologies for delay. Yes, uninstall and re-enable latest version fixed the issue for me

  • 🇺🇸United States serge-m

    Thank you for your confirmation.

Production build 0.71.5 2024