1.0.9 works, but there's no chance to get 1.0.11 working.

Too many changes.
Error messages.
View ist not installed (is located in /config/optional)

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).

Please repair.
Modul is currently not working.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

drupalfan2 created an issue. See original summary.

rajab natshah made their first commit to this issue’s fork.

rajab natshah’s picture

Status: Active » Needs review

Confirmed and fixed in !47: the Views hooks class was never registered as a service, so hook_views_data() disappeared when admin_audit_trail.views.inc was removed. Thank you for the stack trace.

rajab natshah’s picture

Reproduced on Drupal 10.6.15: hook_views_data() is missing, so Views has no data for the table. OOP hook discovery is Drupal 11.1+ only, and views_data was the one hook left without a procedural wrapper when admin_audit_trail.views.inc was removed. Drupal 11.4 is unaffected.

Also found: the report view is not created when Views is enabled in the same command as the module, and a fresh install skips the repair update.

!47 fixes both, with tests. Verified on Drupal 10.6.15 with all submodules: report renders, 14 events logged, no errors.

rajab natshah’s picture

Zugriff, What is the version of Drupal you are using?

  • rajab natshah committed 48c1d271 on 1.0.x
    fix: #3618801 Restore hook_views_data on cores without hook discovery...
rajab natshah’s picture

Title: 1.0.9 works, but there's no chance to get 1.0.11 working » Audit trail report crashes with InvalidArgumentException on Drupal 10 and 11.0 (hook_views_data has no legacy wrapper)
rajab natshah’s picture

Status: Needs review » Fixed
Issue tags: +admin_audit_trail-1.0.12

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

drupalfan2’s picture

Good work.
Thank you.