Fatal error: Uncaught exception 'Exception' with message 'Geographic location of 'IP Address : ::1' cannot be found.' in /sites/all/modules/geouser/geouser.inc:134 Stack trace: #0 /sites/all/modules/geouser/geouser.module(166): GeoUser::getGeoCity('::1') #1 /modules/user/user.module(22): geouser_user('login', Array, Object(stdClass), NULL) #2 /modules/user/user.module(1376): user_module_invoke('login', Array, Object(stdClass)) #3 /modules/user/user.module(1352): user_authenticate_finalize(Array) #4 /modules/user/user.module(1311): user_authenticate(Array) #5 /includes/form.inc(766): user_login_authenticate_validate(Array, A in /sites/all/modules/geouser/geouser.inc on line 134

array(4) { ["type"]=> int(1) ["message"]=> string(1024) "Uncaught exception 'Exception' with message 'Geographic location of 'IP Address : ::1' cannot be found.' in /sites/all/modules/geouser/geouser.inc:134 Stack trace: #0 /sites/all/modules/geouser/geouser.module(166): GeoUser::getGeoCity('::1') #1 /modules/user/user.module(22): geouser_user('login', Array, Object(stdClass), NULL) #2 /modules/user/user.module(1376): user_module_invoke('login', Array, Object(stdClass)) #3 /modules/user/user.module(1352): user_authenticate_finalize(Array) #4 /modules/user/user.module(1311): user_authenticate(Array) #5 /includes/form.inc(766): user_login_authenticate_validate(Array, A" ["file"]=> string(96) "/sites/all/modules/geouser/geouser.inc" ["line"]=> int(134) } n/a

Comments

andrewsuth’s picture

Same issue here.

andrewsuth’s picture

Is there any news on this issue?

socialnicheguru’s picture

i just received the same error on a new install.

I am on localhost.

andrewsuth’s picture

I think it does this with ani IP that it cannot identify.

In your case, 127.0.0.1 is not a valid location so it throws the error.

Either way, this error has been around for a while without any input from the maintainers..

Yorgg’s picture

I can confirm the same issue even without toboggin

Exception: Geographic location of 'IP Address : 127.0.0.1' cannot be found

Call Stack
# Time Memory Function Location
1 0.0005 60748 {main}( ) ../index.php:0
2 0.5012 2961352 theme( ) ../index.php:36
3 0.5020 2977052 call_user_func_array ( ) ../theme.inc:658
4 0.5020 2977052 template_preprocess_page( ) ../theme.inc:0
5 0.5038 2977620 theme( ) ../theme.inc:1774
6 0.5039 2977620 call_user_func_array ( ) ../theme.inc:617
7 0.5040 2977620 theme_blocks( ) ../theme.inc:0
8 0.5040 2977620 block_list( ) ../theme.inc:1580
9 0.5059 2977776 module_invoke( ) ../block.module:473
10 0.5061 2977960 call_user_func_array ( ) ../module.inc:450
11 0.5061 2977960 user_block( ) ../module.inc:0
12 0.5062 2978052 drupal_get_form( ) ../user.module:731
13 0.5349 3016596 drupal_process_form( ) ../form.inc:119
14 0.5436 3041408 drupal_validate_form( ) ../form.inc:398
15 0.5436 3041408 _form_validate( ) ../form.inc:579
16 0.5505 3042372 form_execute_handlers( ) ../form.inc:714
17 0.5528 3043164 user_login_authenticate_validate( ) ../form.inc:769
18 0.5528 3043164 user_authenticate( ) ../user.module:1309
19 0.5650 3193476 user_authenticate_finalize( ) ../user.module:1350
20 0.5750 3201520 user_module_invoke( ) ../user.module:1374
21 0.5770 3202452 geouser_user( ) ../user.module:22
22 0.5788 3202624 GeoUser::getGeoCity( ) ../geouser.module:166

At least is login in before the issue and replies "No user is found" in the GeoUser tab.

andrewsuth’s picture

As far as I can tell, this module has been abandoned.

There's been no response from the developer/maintainer and the last CVS message is from February 2009.

matt v.’s picture

Status: Active » Needs review
StatusFileSize
new864 bytes

I was getting the error when logging in to a site from a private network. I wrote the small patch below to catch the exception and write the error to Drupal's watchdog table.

matt v.’s picture

StatusFileSize
new756 bytes

After adding the patch in #7 above, I was also getting an error along the lines of the following:

Argument 1 passed to GeoUser::getRegionName() must be an instance of Net_GeoIP_Location, null given, called in C:\etc\xampp\htdocs\mysite\sites\all\modules\geouser\geouser.module on line 168 and defined in C:\etc\xampp\htdocs\mysite\sites\all\modules\geouser\geouser.inc on line 151.

I created the patch below to check that $location is not null before calling getRegionName.

kvick’s picture

StatusFileSize
new524 bytes

Line 93 in geouser.module needs to be patched as well, for same reson as #8.
Created the patch to be applied after #8.

simon georges’s picture

Status: Needs review » Reviewed & tested by the community

I've successfully used #7, #8 & #9, every (ugly) error message has now disappeared.

Thanks a lot, Matt V. & kvick !

It would be a good improvement for the module if somebody could commit them ;)