Needs review
Project:
Storage Entities
Version:
1.4.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jul 2025 at 09:58 UTC
Updated:
17 Oct 2025 at 14:54 UTC
Jump to comment: Most recent
Comments
Comment #4
abhishek_gupta1 commented@steveg., I have fixed the issue and created MR, please review it once. thanks
Comment #5
steveg. commentedI've checked if is working after the patch you've provided. But again when opening the Storage overview page I get an error. I have installed Drupal core 10.5.1 and Storage Entities 1.4.0-rc1.
Comment #6
mandclu commentedI'm using a fresh install of Drupal 11.2.4 and Storage dev-1.4.x. I am able to successfully access the storage overview page without or without existing storage entities in the database. Clear steps to reproduce are needed before I can evaluate the proposed changes.
Comment #7
steveg. commentedThe problem occurs in Drupal 10.5.3 in combination with Storage 4.1, that's the reason why you don't get this error.
When we update from version 1.3.1 to version 4.1 and then go to content and click on Storage data, the error message above appears.
Comment #8
nicxvan commentedI hit this locally, but on version 1.3 and it seems to be devel actually:
Triggers:
Digging deeper it is happening here in: web/modules/contrib/storage/src/Entity/Storage.php
A check for type here also fixes the issue.
Comment #9
nicxvan commentedComment #10
nicxvan commentedI'm not sure how we got in that state, but I suspect that we have these storage entities in the database still even though I deleted them.
It is possible I imported an older db with them.
Comment #11
glottus commentedI just ran into this issue as well, but in this case it is Drupal 11.2.5 with Storage 1.4.0.
This is an existing site built in Drupal 9 or 10, but since upgraded. The addition of Storage is new today.
I created a storage type, gave it several fields, and then attempted to migrate content into it, but got the above error. To try and troubleshoot this, I manually went to /storage/add and created a sample entry and retried the Storage overview page, but with no difference.
Then, following this thread, I applied the proposed fix in MR !20, but still got an error:
This is only the second site I've tried Storage on, and the first had no such issues. The main differences I can think of were that the first (also a long-established site) was probably Drupal 11.2.4 at the time (and still is), and Storage 1.4.0-rc1 (since updated to 1.4.0).
A second attempt (reverting my database and re-adding the module) did seem to help, so still don't know how to recreate this.
[Edited to add] In subsequent tests, I determined that my migration had accidentally set the "type" to a non-existent value in one place and correctly identified my storage type machine name in another. This didn't apparently affect my migration itself, but caused the Storage Content page to choke. Finding and removing the erroneous "type" line in my migration YML allowed it to run and populate as expected, loading when I visited that page.