Drupal 7.56

The following updates returned messages

imagestyleflush module

Update #7000
Failed: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'module' cannot be null: INSERT INTO {role_permission} (rid, permission, module) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => 5 [:db_insert_placeholder_1] => flush image styles [:db_insert_placeholder_2] => ) in user_role_grant_permissions() (Zeile 3174 von C:\inetpub\wwwroot\drupal\modules\user\user.module).

==> The 'db_insert_placeholder_2' is empty, what is the right value for that?

Is it possible to insert this line manually into the role_permissions tabel?

Comments

Matroschker created an issue. See original summary.

Matroschker’s picture

Title: Error during DB-Update if updateing from 7.x-1.3 to 7.x-1.4 » Error during DB-Update (from 7.x-1.3 to 7.x-1.4)

  • hargobind committed c1cf69c on 7.x-1.x
    Issue #2929094: Error during DB-Update (from 7.x-1.3 to 7.x-1.4) when...
hargobind’s picture

Component: User interface » Code
Status: Active » Fixed

Thanks for reporting this. From my testing, this is only an issue when the update is run and the module is disabled. The function user_role_grant_permissions() relies on the module to be enabled in order to add the new permission to the database. I have removed that dependency and created a new release. Please update to the latest version.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.