Issue when trying to sort custom blocks

Created on 13 February 2023, almost 2 years ago
Updated 14 March 2023, over 1 year ago

Problem/Motivation

I'm trying to use DraggableViews to sort order of custom blocks, unfortunately, when trying to save an order, it ends with an error:
Failed with SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'entity_id' cannot be null: INSERT INTO "draggableviews_structure" ("view_name", "view_display", "args", "entity_id", "weight") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4); Array ( [:db_insert_placeholder_0] => fp_featured_admin [:db_insert_placeholder_1] => page_1 [:db_insert_placeholder_2] => [] [:db_insert_placeholder_3] => [:db_insert_placeholder_4] => )

Steps to reproduce

  1. Create few custom blocks in /admin/structure/block/block-content
  2. Create new view for sorting and add fields: "Block description" and "Custom block"
  3. Save the view
  4. Go to the newly created view, rearrange order and save it

In the result, warning is displayed:

There was an error while saving the data. Please, try again.

And Drupal log shows the message as at the begining.

🐛 Bug report
Status

Closed: outdated

Version

2.1

Component

Code

Created by

🇵🇱Poland besek

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

Comments & Activities

Production build 0.71.5 2024