HomeITAdmin / nextcloud_geoblocker

GNU Affero General Public License v3.0
42 stars 2 forks source link

Exception: OCA\GeoBlocker\LocalizationServices\MaxMindGeoLite2::getCountryCodeFromIPImpl(): Return value must be of type string... #104

Closed Wotisrv closed 1 year ago

Wotisrv commented 2 years ago

Hei,

Currently installed GeoBlocker app for Nextcloud gives me this error in the log file: Exception: OCA\GeoBlocker\LocalizationServices\MaxMindGeoLite2::getCountryCodeFromIPImpl(): Return value must be of type string, null returned in file '/var/www/html/nextcloud/apps/geoblocker/lib/LocalizationServices/MaxMindGeoLite2.php' line 95

It appears every time when I go into Nextcloud settings / Geoblocker.

System: Fedora-Linux 36 (Server-Edition) Nextcloud 24.0.3 PHP 8.1.8 Apache 2.4.54

HomeITAdmin commented 2 years ago

Which version of geoip2.phar are you using?

Wotisrv commented 2 years ago

2.12.2 the latest available on github.

HomeITAdmin commented 2 years ago

There is a good chance that it is connected to #103, although it is not 100% how. Unfortunately I cannot reproduce it. When the bugfix for the other issue is out please try again. If it is still happening I have to add a check for this specific case.