This error keeps showing up on the error log: PHP Notice:
Undefined index: country in /home/.../public_html/app/functions/fn.locations.php on line 625
Any idea on what causes it?
Thank you!
This error keeps showing up on the error log: PHP Notice:
Undefined index: country in /home/.../public_html/app/functions/fn.locations.php on line 625
Any idea on what causes it?
Thank you!
Still getting this error every day, several times a day, any help will be appreciated.
PHP Notice: Undefined index: country in /home/.../public_html/app/functions/fn.locations.php on line 625
Thanks!
As quick fix, open the app/functions/fn.locations.php file and replace
$code = !empty($geo_data) ? $geo_data['country']['iso_code'] : '';
with
$code = (!empty($geo_data) && !empty($geo_data['country'])) ? $geo_data['country']['iso_code'] : '';
As quick fix, open the app/functions/fn.locations.php file and replace
$code = !empty($geo_data) ? $geo_data['country']['iso_code'] : '';with
$code = (!empty($geo_data) && !empty($geo_data['country'])) ? $geo_data['country']['iso_code'] : '';
Thank you!! :-)