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

Created on 16 March 2024, 4 months ago
Updated 7 April 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

Postponed: needs info

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 3 months ago
  • πŸ‡ΊπŸ‡ΈUnited States TR Cascadia
Production build 0.69.0 2024