Problem/Motivation
An exception is thrown when installing the 3.0.x-dev version of the module:
Error: Call to undefined method Drupal\recurring_events\Hook\RecurringEventsViewsHooks::viewsDataAlter() in recurring_events_views_data_alter() (line 18 of modules/contrib/recurring_events/recurring_events.views.inc).
Steps to reproduce
- Install Drupal, standard profile.
- Go to /admin/modules modules and install Recurring Events 3.x.
Proposed resolution
The exception is happening because recurring_events_views_data_alter() is calling the wrong method name on RecurringEventsViewsHooks. It's calling
\Drupal::service(RecurringEventsViewsHooks::class)->viewsDataAlter($data);
when it should be calling
\Drupal::service(RecurringEventsViewsHooks::class)->dataAlter($data);
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Screenshot from 2025-12-30 15-14-02.png | 70.76 KB | olegrymar |
Issue fork recurring_events-3557533
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
Comment #3
muriqui commentedComment #4
olegrymar commentedI can confirm that the patch introduced in this https://git.drupalcode.org/project/recurring_events/-/merge_requests/179 merge request fixes the error.
Before:

After:
The error is no longer displayed.
Comment #5
jmester13 commentedAlso confirming the patch resolves this matter.
Comment #6
muriqui commentedComment #7
muriqui commentedComment #9
muriqui commented