vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Digital Point User Map (https://vborg.vbsupport.ru/showthread.php?t=244236)

digitalpoint 12-18-2010 07:03 PM

Did you edit the usermap.php file by chance? It *really* looks like it's been edited to me.

sadaar 12-18-2010 10:45 PM

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.

Mattske 12-21-2010 01:12 AM

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:

Warninggeoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /opt/geoip/share/GeoIP/GeoIPCity.datin [path]/usermap.php on line 100


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

Warning
geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /opt/geoip/share/GeoIP/GeoIPCity.datin [path]/usermap.php on line 158 


EDIT:
This is a listing of the two directories - am I missing anything?


-
Quote:

bash-3.2# ls -aslh /var/lib/GeoIP
total 29M
2.0K drwxr-xr-x 2 root root 2.0K Dec 20 19:06 .
2.0K drwxr-xr-x 19 root root 2.0K Dec 20 18:38 ..
1.2M -rw-r--r-- 1 root root 1.2M Dec 20 19:06 GeoIP.dat
28M -rw-r--r-- 1 root root 28M Dec 20 18:38 GeoIPCity.dat



-bash-3.2# ls -aslh /usr/local/share/GeoIP/
total 57M
2.0K drwxr-xr-x 2 root root 2.0K Dec 20 18:38 .
2.0K drwxr-xr-x 6 root root 2.0K Dec 20 10:32 ..
1.2M -rw-r--r-- 1 root root 1.2M Dec 20 10:32 GeoIP.dat
28M -rw-r--r-- 1 root root 28M Dec 20 18:38 GeoIPCity.dat
28M -rw-r--r-- 1 root root 28M Dec 3 19:41 GeoLiteCity.dat

digitalpoint 12-21-2010 08:57 AM

The error shows it's looking in a different path for the database.

Mattske 12-21-2010 09:25 AM

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?

Boofo 12-21-2010 01:04 PM

Just upload the GeoIP files to the directory it shows in the error.

Mattske 12-21-2010 05:20 PM

Thanks, got it working.

Boofo 12-21-2010 07:36 PM

Glad you got it going. ;)

marcopolo 12-27-2010 06:22 PM

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

digitalpoint 12-28-2010 03:33 PM

You would still need to install the geoip module for PHP.


All times are GMT. The time now is 02:01 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
  • Page Generation 0.01247 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete