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

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

jurgenhaas created an issue. See original summary.

jurgenhaas’s picture

Status: Active » Needs review
antonín slejška’s picture

Status: Needs review » Fixed

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

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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.