Cron produces error for newly build project

Created on 8 September 2025, 2 days ago

Problem/Motivation

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
)

Proposed resolution

I'd suggest adding a quick check to update the database table only if it exists.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇸🇮Slovenia useernamee Ljubljana

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