Closed (fixed)
Project:
Admin Audit Trail
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Jan 2026 at 19:58 UTC
Updated:
29 Jan 2026 at 12:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
segovia94 commentedThis has nothing to do with the user dependency. It is a problem with D10.
I just tried this in d11 and it worked fine. However in drupal 10 (specifically I tried 10.6.2) it will not install the view.
I manually imported the config and received the following error when trying to view the report page:
InvalidArgumentException: A valid cache entry key is required. Use getAll() to get all table data. in Drupal\views\ViewsData->get() (line 137 of core/modules/views/src/ViewsData.php).Trying to edit the views gives the following errors:
Comment #5
nadim hossain commentedIssue -
The module uses Attribute-based hooks (#[Hook('views_data')]) located in src/Hook/AdminAuditTrailViewsHooks.php. During the Drupal update lifecycle, the Service Container is often in a "frozen" or "minimal" state. Because Attribute-based hooks require a full container rebuild and class discovery to be registered, the Views module fails to "see" the admin_audit_trail table definition when the update hook attempts to save the View entity.
Since the View configuration references a base_table that the system doesn't currently recognize, the ViewsData service returns a null key, causing the crash in HandlerBase.
Solution -
Added a traditional admin_audit_trail.views.inc file in the module root.
I have submitted the merge request and just adding this patch file to use it in the composer.
Comment #6
daaan commentedI tried the patch file suggested in #5, but that didn't apply.
I created my own patch using https://git.drupalcode.org/project/admin_audit_trail/-/merge_requests/26... and that worked on Drupal 10.6.2
Comment #7
rajab natshahComment #8
rajab natshahThanks, Shawn and Mark for reporting and following up.
Thank you Nadim for the MR fix
Comment #9
rajab natshahComment #10
rajab natshahComment #12
rajab natshahComment #13
rajab natshah✅ Released admin_audit_trail-1.0.9