Results 1 to 3 of 3

Thread: recurring error in GeographicalLocation.lua

  1. #1
    Join Date
    Jun 2005
    Posts
    339

    Default recurring error in GeographicalLocation.lua

    Recently, I've started receiving the following error throughout the day:

    GeographicalLocation.lua:245 table index is nil

    Here's the routine where it occurs. It looks like it's a routine that updates geographical location based on IP address.

    if l.IP ~= self.Settings.IPAddress then -- only use if ip changed
    -- now try and get data from maxmind which is better than above, but the above gets our ip...
    -- Used to be maxmind.com, now using Promixis.com
    local s = win.URLDownloadToMemory ('http://promixis.com/webservice/geoip.php?i='..l.IP)
    if s then
    local keys = {
    'Country',
    'Region',
    'City',
    'Latitude',
    'Longitude',
    }

    local t = string.Split (s,',')

    for i,v in ipairs (t) do
    l [keys [i]] = v
    end
    end

    self:SetLocation (l)
    self:SetIP (l.IP)

    Any thoughts on how to remedy this?

    Thanks!

  2. #2
    Join Date
    Nov 2004
    Posts
    142

    Default

    http://www.promixis.com/forums/showt...hical-Location

    It sounds like your problem is related.

  3. #3
    Join Date
    Jun 2005
    Posts
    339

    Default

    That definitely sounds like the same problem. I was hoping to avoid modding the code my self, but I may end up going that route! Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •