![]() |
Yep, looks like databases are not installed. Otherwise the "available" key would be "true".
|
UPDATE:
I SSH'd into the server and the /var/lib/GeoIP/ directory is empty. Anything I can do? I have the GeoLiteCity.dat file. |
You need to change the name of GeoLiteCity.dat to GeoIPCity.dat and upload it along with GeoIP.dat to the directory on the server, if they have GeoIP installed correctly.
|
I emailed by Host, and got this response:
Regarding GeoIP, the database had been installed at /usr/share/GeoIP, I have moved the file to /var/lib/GeoIP. I renamed the file above and uploaded it into both locations. Still have the same issue. I can see everything buy the actual map. Sad.. It seems like a really cool mod. |
Does the output of the previously mentioned PHP script show it as available now?
|
Output is now as follows. I can verify that the /var/lib/GroIP/GeoIP.dat file is present, but the only other file in that directory is GeoIPCity.dat
Array ( [1] => Array ( [available] => 1 [description] => GeoIP Country Edition [filename] => /var/lib/GeoIP/GeoIP.dat ) [2] => Array ( [available] => 1 [description] => GeoIP City Edition, Rev 1 [filename] => /var/lib/GeoIP/GeoIPCity.dat ) [3] => Array ( [available] => [description] => GeoIP Region Edition, Rev 1 [filename] => /var/lib/GeoIP/GeoIPRegion.dat ) [4] => Array ( [available] => [description] => GeoIP ISP Edition [filename] => /var/lib/GeoIP/GeoIPISP.dat ) [5] => Array ( [available] => [description] => GeoIP Organization Edition [filename] => /var/lib/GeoIP/GeoIPOrg.dat ) [6] => Array ( [available] => 1 [description] => GeoIP City Edition, Rev 0 [filename] => /var/lib/GeoIP/GeoIPCity.dat ) [7] => Array ( [available] => [description] => GeoIP Region Edition, Rev 0 [filename] => /var/lib/GeoIP/GeoIPRegion.dat ) [8] => Array ( [available] => [description] => GeoIP Proxy Edition [filename] => /var/lib/GeoIP/GeoIPProxy.dat ) [9] => Array ( [available] => [description] => GeoIP ASNum Edition [filename] => /var/lib/GeoIP/GeoIPASNum.dat ) [10] => Array ( [available] => [description] => GeoIP Netspeed Edition [filename] => /var/lib/GeoIP/GeoIPNetSpeed.dat ) [11] => Array ( [available] => [description] => GeoIP Domain Name Edition [filename] => /var/lib/GeoIP/GeoIPDomain.dat ) [12] => Array ( [available] => [description] => GeoIP Country V6 Edition [filename] => /var/lib/GeoIP/GeoIPv6.dat ) ) |
Looks fine from the output. Are you getting an error, or?
|
No errors at all, just no map. I have recorded a short screencast to better illustrate my issue. I really do appreciate your help in getting this resolved.
http://screencast.com/t/I5Gv4erMXxI |
What's the URL you have it running it at? I'll check it out... maybe you are getting some sort of JS error or something with the Google Map API.
|
Sent a PM with login credentials for you.
|
Did you edit the usermap.php file by chance? It *really* looks like it's been edited to me.
|
Hmm. No I didn't edit the file. I just re-downloaded the zip, uploaded it and overwrote what was already there, and re-imported the XML (with overwrite on), with the same results.
|
I am getting the following errors, I confirmed with host that everything was successfully installed and renamed as per some of the comments listed above however a series of errors appears at the top of the page before the map.
No map is shown either. Any help or assistance would be superb. Cheers! PHP Code:
EDIT: This is a listing of the two directories - am I missing anything? - Quote:
|
The error shows it's looking in a different path for the database.
|
Sorry, I am rather new at this, should I change .....
( /usr/local/share/GeoIP/ ) to match what it is looking for ( /opt/geoip/share/GeoIP/ ) ?? Would that solve my issues? |
Just upload the GeoIP files to the directory it shows in the error.
|
Thanks, got it working.
|
Glad you got it going. ;)
|
Ok, I've installed as part of my hosting service (from what I can see) and get this
Fatal error: Call to undefined function geoip_record_by_name() in /data03/????/public_html/usermap.php on line 100 I've checked my php folder here /php/Net/GeoIP and see these files location.php and DMA.php Any ideas? Bit more info after speaking to my hosting company is that they use PEAR packages and have confirmed I have install what I need to use GeoIP, these being Console_Getopt 1.3.0 and Net_Geo 1.0.5 |
You would still need to install the geoip module for PHP.
|
|
How do I get mine to display correctly by usergroup/status.
http://img27.imageshack.us/img27/115...01229at123.png Guests don't seem to show up at all, and users outside of the 5,6,7 usergroups are showing as admins/moderators despite the option being set to 5,6,7 only.... |
I still can't even get the map....
|
Great MOD ! I install GEOIP by CPanel (centos) and use this datafiles . It works now !!
|
Ok, I've been told this by my hosting service
I have raised this with our NOC team they have checked and it turns the module is trying to use mod_perl which is disabled on our servers because of the security risk it poses. That is why it was failing all along. Im afraid this will mean that it won't be possible to use this module on the cpanel, its rare that this happens but sadly the requirements can not be met to install this. Looking around the best way to get around this would be to manually download the geoip.dat database (its in csv format) and then have your website manually look up to that (http://www.builderau.com.au/program/...9129583,00.htm). Basically it would consist of that database file and geoip.inc file that would need to be included in your php code, this then would allow you to do geoIP lookups. It can be obtained here http://www.maxmind.com/app/geolitecountry. Is this possible? |
My host uses the PEAR Net/GeoIP module, `require('Net/GeoIP.php');`.
Can you please advise if this will work with Digital Point or not? |
Like Boofo I'm getting the following error...
Warning: Invalid argument supplied for foreach() in [path]/usermap.php on line 128 Warning: Invalid argument supplied for foreach() in [path]/usermap.php on line 133 Warning: Invalid argument supplied for foreach() in [path]/usermap.php on line 152 Quote:
Any idea what the problem is? |
What's the URL you have it installed at?
|
work fine me php 5.2.14 after upgrade php5.3.4
not work |
Quote:
|
Just wanted to say thanks to Shawn. We PM'd and he suggested I didn't have the database installed correctly. I deleted the files, reinstalled and it works great now.
Quote:
|
I installed it and users seem to like it. How hard would it be to modify? About 70% of my users want their screen names to show when you scroll over or click on their pin. Another 13% want to be able to opt out. Ideally I'd like screen names to show by default (being able to click to their member page would be incredible) and there be the option to set a persistent cookie that could either hide the screen name or completely opt-out.
|
You couldn't do the opt-out with a cookie, would need to be something stored in the database since user A viewing it would need to know the opt-out setting for user B. It wouldn't be *terribly* hard for a programmer to do for you.
|
Hey Shawn, any chance of making this work using membergroups?
|
what do you mean exactly?
|
Hello
I ask to my host to install the module and it did straight away, so i proceed with the installation and the result was: Quote:
Quote:
|
|
Fantastic, it work, Thank you digital point :up:
I open a ticket, and my host download the database in a folder into the root and change the path of php. I'm very happy about that host. The map visualize only the realtime users connected right? Do you think it will be possible to add the nickname of the registered users to the map so when i click on a pin it appear the username of the registered user? |
No sorry... Too many privacy issues.
|
Shaun, is there a way to suppress the foreach errors that show up if a guest clicks the link and no users are logged in?
|
All times are GMT. The time now is 11:59 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|