![]() |
This mod looks great, but for some reason it's not working on my setup. I'm trying to figure out what I've done wrong...
url: * GeoIP install is verified, it's showing up in php.info. I'm not seeing any errors. The page loads but the map isn't displaying. I've probably bungled something, but I can't figure out what... thank you in advance for pointing me in the right direction. |
Is the GeoIP database installed?
|
Yes.
Does that look right? I've disabled all other mods just to see if there was a conflict but the map still won't display... |
Yep... Looks good there. Unfortunately it's gonna have to wait until Sunday before I can really look into it (no computer until then).
|
Okay, no problem. Whenever it's convenient for you. In the meantime I'll keep poking at it and if I figure it out I'll post the solution in this thread.
|
Hmmm... everything looks like it's installed okay, but for whatever reason, the geoip extension on your server doesn't seem to be resolving IPs for some reason.
Can you make a simple PHP script to test the actual geoip functionality? See this post. |
I put my own ip in that php script and it comes up blank. Seems like it is the server.
That site uses Cloudflare, reverse proxy. I added mod_cloudflare to httpd.conf which enabled vbulletin to log user IPs instead of cloudflare's, but it looks like it probably doesn't work with geoip. To see if it would happen on a site that wasn't coming through cloudflare I tried the script on another domain that is on the same server. It didn't work there either. I've got a couple of sites where I'd really like to install the map so I'll contact cloudflare and see if they have any suggestions. If there's a solution I'll post it here. Thank you for taking a look. |
Reserved for later.
|
I installed this mod on my test forum and I'm getting the following error when I navigate to the /usermap.php page...
"Fatal error: Call to undefined function geoip_record_by_name() in /home/****/public_html/testvb/usermap.php on line 100" |
It requires the geoip PHP extension...
|
I had it enabled and I'm still recieving the same error... What do I do next?
|
Well it's either not installed or not installed correctly because your PHP stack doesn't know the function. Does it show if you look at php info via a phpinfo() call?
|
Quote:
|
I've got about 300 of these at the top of usermap.php...
"Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /opt/geoip/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100" |
Quote:
|
Quote:
|
I tried, but I am too far from that extension.
|
I've got the same problem as Cheryl, mod loads ok, but no map displayed. My hosts installed the GeoIP plugin for me and I've checked the phpinfo and it is installed.
www.trotonline.co.uk/forum/usermap.php |
Make a script on your server with just this:
PHP Code:
|
I created a file called ip.php but the code in, uploaded it to the server went to the page and it's blank.
|
Is your server suppressing errors by chance?
Try making it this: PHP Code:
|
Tried that and still a blank page, cleared the cache in my browser just to be sure.
|
Well something is wrong with your server... you are probably going to want to talk to your server admin to figure it out. geoip_record_by_name() is returning nothing for you (not even an error) on your server.
|
My hosts have fixed the problem and it's working great now. They are going to let me know what the problem was and if it's a PHP config issue it might help out other people...
|
It was the database location, it needs to be at,
/usr/local/share/GeoIP |
Quote:
Also, don't forget those closing ?> tags in your php code up there lol |
Quote:
?> was intentionally left out (it's not required). |
Quote:
|
The only way to change the db location would be to recompile geoip from scratch.
|
Thanks for the quick response. I thought different. Is the db located somewhere by default in a different place and can I copy it to this place?
|
Quote:
But, digitalpoint is correct about having to re-compile it if you move the database. |
The DB is not located *anywhere* by default... you need to install it (it comes from maxmind.com).
On a side note, you *can* change the default directory location I found out with a php.ini setting: Code:
[geoip] |
So I first installed on my server:
Geoip apt-get isntall php5-geoip libapache2-mod-geoip /etc/init.d/apache2 restart Than I installed your addon Now I have also install on my server the database? Both? Only one of them? Which one? :-) GeoLite Country GeoLite City http://www.maxmind.com/app/geolite using this Install: http://www.maxmind.com/app/installation Sorry for the questions :-) |
I'm not sure, I've never tried to install just one... I've always installed both.
|
Good day,
I asked my admin to enable GeoIP PHP extension they told me, that is activated now. But still getting: Quote:
Any suggestions? Thanks. |
I would suggest going back to your admin because it's not activated. :)
|
- so databes both installed
- geoip with phphinfo checked - mod installed empty pages :-) any more hints ??? error reporting on does not show up errors |
I am getting this error code:
Warnung: geoip_record_by_name(): Required database not available at /usr/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php (Zeile 100) I uploaded your test.php and this is the result: Array ( [1] => Array ( [available] => 1 [description] => GeoIP Country Edition [filename] => /usr/share/GeoIP/GeoIP.dat ) [2] => Array ( [available] => [description] => GeoIP City Edition, Rev 1 [filename] => /usr/share/GeoIP/GeoIPCity.dat ) [3] => Array ( [available] => [description] => GeoIP Region Edition, Rev 1 [filename] => /usr/share/GeoIP/GeoIPRegion.dat ) [4] => Array ( [available] => [description] => GeoIP ISP Edition [filename] => /usr/share/GeoIP/GeoIPISP.dat ) [5] => Array ( [available] => [description] => GeoIP Organization Edition [filename] => /usr/share/GeoIP/GeoIPOrg.dat ) [6] => Array ( [available] => [description] => GeoIP City Edition, Rev 0 [filename] => /usr/share/GeoIP/GeoIPCity.dat ) [7] => Array ( [available] => [description] => GeoIP Region Edition, Rev 0 [filename] => /usr/share/GeoIP/GeoIPRegion.dat ) [8] => Array ( [available] => [description] => GeoIP Proxy Edition [filename] => /usr/share/GeoIP/GeoIPProxy.dat ) [9] => Array ( [available] => [description] => GeoIP ASNum Edition [filename] => /usr/share/GeoIP/GeoIPASNum.dat ) [10] => Array ( [available] => [description] => GeoIP Netspeed Edition [filename] => /usr/share/GeoIP/GeoIPNetSpeed.dat ) [11] => Array ( [available] => [description] => GeoIP Domain Name Edition [filename] => /usr/share/GeoIP/GeoIPDomain.dat ) [12] => Array ( [available] => 1 [description] => GeoIP Country V6 Edition [filename] => /usr/share/GeoIP/GeoIPv6.dat ) [13] => Array ( [available] => [description] => GeoIP LocationID ASCII Edition [filename] => /usr/share/GeoIP/GeoIPLocA.dat ) [14] => Array ( [available] => [description] => GeoIP Accuracy Radius Edition [filename] => /usr/share/GeoIP/GeoIPDistance.dat ) [15] => Array ( [available] => [description] => GeoIP City with Confidence Edition [filename] => /usr/share/GeoIP/GeoIPCityConfidence.dat ) [16] => Array ( [available] => [description] => GeoIP City with Confidence and Accuracy Edition [filename] => /usr/share/GeoIP/GeoIPCityConfidenceDist.dat ) ) Whats wrong? I am using a "managed" root server! So i can`t do anything myself so the support must do it if its a server side problem.... |
Mine is working now. Problem was with admins :)
procrewing.com/usermap.php all you need is to ask your hosting to enable GeoIP |
Quote:
Quote:
Quote:
|
All times are GMT. The time now is 04:07 AM. |
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:
|