Problem/Motivation
The OO Hooks get executed automatically in Drupal 11.2 and later. But the legacy hooks in the module file also get executed. Therefore, the hooks get executed twice and that is not only a performance issue, it also leads to an exception when you e.g. look at /admin/config/people/ban if IP's get linked to the IP info.
Proposed resolution
The hooks in the module file need to be marked as legacy.
Issue fork ip_info-3563412
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
jurgenhaasComment #4
antonín slejška commentedHi Jürgen,
I apologize for noticing this issue so late.
Thank you very much!
I will create a new patch version, 1.2.1, with this change.