I've just recently reinstalled some stuff, and now my locations section doesn't work.
https://fyn.io/analytics/#/stats/locations
It also spits out a lot of errors if I select a long enough timeframe;
Quote:
Warning: Illegal string offset 'AE' in /var/www/html/analytics/inc/getlocationrange.php on line 25
Warning: Illegal string offset 'AF' in /var/www/html/analytics/inc/getlocationrange.php on line 25
Warning: Illegal string offset 'AM' in /var/www/html/analytics/inc/getlocationrange.php on line 25
Warning: Illegal string offset 'AR' in /var/www/html/analytics/inc/getlocationrange.php on line 25
Warning: Illegal string offset 'AT' in /var/www/html/analytics/inc/getlocationrange.php on line 25
Warning: Illegal string offset 'AU' in /var/www/html/analytics/inc/getlocationrange.php on line 25
Warning: Illegal string offset 'AZ' in /var/www/html/analytics/inc/getlocationrange.php on line 25
Warning: Illegal string offset 'BA' in /var/www/html/analytics/inc/getlocationrange.php on line 25
Warning: Illegal string offset 'BD' in /var/www/html/analytics/inc/getlocationrange.php on line 25
Warning: Illegal string offset 'BE' in /var/www/html/analytics/inc/getlocationrange.php on line 25
Warning: Illegal string offset 'BG' in /var/www/html/analytics/inc/getlocationrange.php on line 25
Warning: Illegal string offset 'BO' in /var/www/html/analytics/inc/getlocationrange.php on line 25
Warning: Illegal string offset 'BR' in /var/www/html/analytics/inc/getlocationrange.php on line 25
Warning: Illegal string offset 'BY' in /var/www/html/analytics/inc/getlocationrange.php on line 25
Warning: Illegal string offset 'CA' in /var/www/html/analytics/inc/getlocationrange.php on line 25
Warning: Illegal string offset 'CH' in /var/www/html/analytics/inc/getlocationrange.php on line 25
Warning: Illegal string offset 'CL' in /var/www/html/analytics/inc/getlocationrange.php on line 25
Warning: Illegal string offset 'CN' in /var/www/html/analytics/inc/getlocationrange.php on line 25
|
Help?
edit:
found the solution,
gotta install
geoipcity.ext.so along with a
geoipcity.dat (thanks to darkdevil @ discord for remining me)
edit:
nevermind,
i let it run for a few months hoping the geoipcity extension would fix it, but no dice.
i'm using php v7.2 on centos 8, if anyone can tell me how to fix it that'd be amazing.
edit:
found the fix thanks to google,
https://stackoverflow.com/questions/...et-warning-php
open /inc/getlocationrange.php and go to line 21,
then comment out
$maps = ''; so it becomes
//$maps = '';
now it works flawlessly. 😊
__________________