Postgresql support

Created on 14 February 2025, about 2 months ago

Problem/Motivation

This module doesn't support an installation with postgresql databse => it only works with mysql

Steps to reproduce

During the installation process the system raise an error and then the error is always displayed :

The website encountered an unexpected error. Try again later.

TypeError: Drupal\ddos_security\EventSubscriber\AttackProtection::__construct(): Argument #4 ($database) must be of type Drupal\mysql\Driver\Database\mysql\Connection, Drupal\pgsql\Driver\Database\pgsql\Connection given, called in C:\wamp64\www\..\web\core\lib\Drupal\Component\DependencyInjection\Container.php on line 261 in Drupal\ddos_security\EventSubscriber\AttackProtection->__construct() (line 85 of modules\contrib\ddos_security\src\EventSubscriber\AttackProtection.php).
Drupal\Component\DependencyInjection\Container->createService(Array, 'ddos_security.attack_protection') (Line: 179)
Drupal\Component\DependencyInjection\Container->get('ddos_security.attack_protection') (Line: 105)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.request') (Line: 157)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 90)
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: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024