Closed (fixed)
Project:
IP Anonymize
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
8 Sep 2025 at 12:45 UTC
Updated:
23 Sep 2025 at 16:49 UTC
Jump to comment: Most recent
We're receiving this error during our project build :
[info] Starting execution of ip_anon_cron(), execution of file_cron() took 0.82ms.
[error] Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupal.sessions' doesn't exist: UPDATE "sessions" SET "hostname"=:db_update_placeholder_0
WHERE "timestamp" <= :db_condition_placeholder_0; Array
(
[:db_update_placeholder_0] => 0
[:db_condition_placeholder_0] => 1756723959
)
I'd suggest adding a quick check to update the database table only if it exists.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
useernamee commentedComment #4
mfbIt looks like the sessions table was removed from system module in Drupal 10.3.0, according to https://www.drupal.org/node/3431286 - it's now created on demand by the session handler.
So yes, we now need to check if the table exists. This also means that the code that gets a description of the sessions table from system schema (for use on the config form) only works on older versions of Drupal.
What session handler do you have in use? Ideally, we could provide ip_anon support for removing IP addresses from alternative session storage
Comment #9
mfbThanks for reporting!