Undefined array key 0 in ..\ip2country\Form\Ip2CountrySettingsForm

Created on 16 March 2024, 8 months ago
Updated 8 September 2024, 3 months ago

Problem/Motivation

Drupal 10.2.4 PHP 8.1.27
Warning: Undefined array key 0 in Drupal\ip2country\Form\Ip2CountrySettingsForm->submitForm() (line 346 of modules/contrib/ip2country/src/Form/Ip2CountrySettingsForm.php).

Steps to reproduce

Install ip2country with composer,
activate Admin debug
save

Proposed resolution

Perhaps one of the depreciated functions in PHP 8?

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain lapurddrupal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @lapurddrupal
  • πŸ‡ΊπŸ‡ΈUnited States tr Cascadia

    What IP address are you using as your test IP address? I guess I never considered that someone might enter a test IP address that wasn't associated with any country, since the point of the admin debug settings is to test the operation of the module by spoofing a real IP or real country.

  • Status changed to Postponed: needs info 8 months ago
  • πŸ‡ΊπŸ‡ΈUnited States tr Cascadia
  • Status changed to Closed: cannot reproduce 3 months ago
  • πŸ‡ΊπŸ‡ΈUnited States tr Cascadia

    I can't reproduce this at all, and without further information I can't help you.

Production build 0.71.5 2024