Errors with site installation.

Created on 13 July 2018, almost 6 years ago
Updated 5 April 2024, 3 months ago

Problem/Motivation

I am getting the following issues during site installation.

Undefined property: Drupal\user\Entity\Role::$rid front_page.module:117

Unexpected error during import with operation delete for user.role.authenticated: SQLSTATE[42S02]: Base table or view not found: 1146 Table `DB_NAME.front_page` doesn't exist: 
DELETE FROM {front_page} WHERE rid = :db_condition_placeholder_0; Array(
  [:db_condition_placeholder_0] => 
)

For some reason the hook implemented in the module gets called first with wrong role value (do not know the issue for that).
The delete is even stranger - hook on the module is invoked before the module is being fully installed yet. There is no such table provided by the module. Why are we deleting against it at all?

Proposed resolution

Drop the whole hook implementation as it seems vary invalid - handling a non-existing table.

Remaining tasks

Patch, etc.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Closed: outdated

Version

10.0

Component

Code

Created by

πŸ‡§πŸ‡¬Bulgaria ndobromirov

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024