Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After the Drupal 8 installation the flood table isn't being created, so when I try to log in with incorrect credentials, I'm getting a mysql error because the table doesn't exists.
SELECT 1 FROM @flood LIMIT 0, 1
Table 'drupal8.flood' doesn't exist
Comment | File | Size | Author |
---|---|---|---|
#4 | flood_table_database_exception-2781599-4.patch | 942 bytes | dmouse |
#4 | screen.jpg | 72.95 KB | dmouse |
Comments
Comment #2
cilefen CreditAttribution: cilefen commentedIt should be created as soon as it is needed, such as when there is a failed login.
Comment #3
cilefen CreditAttribution: cilefen commentedJust to be clear: the installer does not create this table. It is created on demand. What is the error you see when logins fail?
Comment #4
dmouseHow to reproduce:
When We have activated `xdebug.show_exception_trace=true` and We do our first login with a wrong user and password, Drupal launch an exception because the flood table doest not exist.
Solution:
File: core/lib/Drupal/Core/Flood/DatabaseBackend.php:128
Needs an extra catch
Comment #5
dmouseComment #7
gnugetIt seems a problem with the bot,
Let's try again.
Comment #9
dpiPerhaps there is a problem with database account permissions?
Flood is a part of core. See also
\Drupal\Core\Flood\DatabaseBackend::ensureTableExists
for how table is auto created.Comment #11
cilefen CreditAttribution: cilefen commentedAs with #9, I also can't reproduce this issue on 8.3.x. An automated test would be great. If you can get that test to fail on your platform but it passes on drupal.org's testbots, we'll need platform details so we can understand the conditions that lead to this. Thanks!
Comment #18
pameeela CreditAttribution: pameeela commentedThanks for reporting this issue and especially thanks dmouse for providing a patch. We rely on issue reports like this one to resolve bugs and improve Drupal core.
As part of the Bug Smash Initiative, we are triaging issues that are marked "Postponed (maintainer needs more info)".
Since there were no specific steps to reproduce the issue provided since the issue was postponed, I'm marking the issue "Closed (cannot reproduce)". If anyone can provide complete steps to reproduce the issue (starting from "Install Drupal core"), document those steps in the issue summary and set the issue status back to "Active".
Thanks!