Maybe, i'm missing something, but I've installed both the module and the geolite city file, but nothing happens. I don't have access to anything beyond the generic permissions. What do I need to do?

Comments

frankcarey’s picture

yeah, i'm not seeing a settings page. On accessing /admin/settings/geouser directly, I get an unauthorized warning.

frankcarey’s picture

I got it to work, try flushing all of your caches. I added an access argument, and that seemed to help. If more people test / report back, I can add a patch. Also I commented out the menu_cache_clear(). I don't this we want this in here do we? is it left over from testing?

function geouser_menu(){

    //menu_cache_clear();
    $items = array();

    $items['admin/settings/geouser'] = array(
		'title'	=> t("GeoUser"),
		'description' => t("Retrieve user's geographic information based on her ip address, and display a yahoo map on user page."),
		'page callback'		=> 'drupal_get_form',
		'page arguments'	=> array('geouser_admin_settings'),
		'access arguments' => array('administer site configuration'),
		'file'		=> 'geouser.admin.inc',
    );
    
    /**
     * @todo Pages for listing users from same geographic location.
     */
    /**
    $items['geouser/lists'] = array(
        'title' => t('GeoUser Lists'),
        'page callback' => 'geouser_lists',
        'access arguments' => array('view geographic information'),
        'type' => MENU_CALLBACK,
        'file' => 'geouser.pages.inc',
    );
    */ 

    return $items;

}
frankcarey’s picture

Status: Active » Fixed

I downloaded this file with drush and for some reason it gave me the 1.4 version. Try the latest version, which incorporates the changes above and see if you are still having problems

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.