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 07-12-2012 06:55 PM

Is your server suppressing errors by chance?

Try making it this:

PHP Code:

<?php 
error_reporting
(E_ALL);
print_r (geoip_record_by_name($_SERVER['REMOTE_ADDR']));


Poppet 07-12-2012 07:09 PM

Tried that and still a blank page, cleared the cache in my browser just to be sure.

digitalpoint 07-12-2012 07:35 PM

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.

Poppet 07-13-2012 09:37 AM

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...

Poppet 07-13-2012 10:18 AM

It was the database location, it needs to be at,

/usr/local/share/GeoIP

addamroy 07-14-2012 01:04 AM

Quote:

Originally Posted by digitalpoint (Post 2347340)
Make a script on your server with just this:

PHP Code:

<?php 
print_r 
(geoip_record_by_name($_SERVER['REMOTE_ADDR']));

What does it output?

Fatal error: Call to undefined function geoip_record_by_name() in /home/*****/public_html/test-geoip.php on line 2

Also, don't forget those closing ?> tags in your php code up there lol

digitalpoint 07-14-2012 04:12 PM

Quote:

Originally Posted by addamroy (Post 2347837)
Fatal error: Call to undefined function geoip_record_by_name() in /home/*****/public_html/test-geoip.php on line 2

Also, don't forget those closing ?> tags in your php code up there lol

That error means you don't have the GeoIP extension installed in your version of PHP.

?> was intentionally left out (it's not required).

imported_stefan 07-23-2012 12:53 PM

Quote:

Originally Posted by Poppet (Post 2347532)
It was the database location, it needs to be at,

/usr/local/share/GeoIP

I have maybe the same here. How can I switch the db location and where. I looked at this directory and its empty.

digitalpoint 07-23-2012 03:42 PM

The only way to change the db location would be to recompile geoip from scratch.

imported_stefan 07-23-2012 06:35 PM

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?


All times are GMT. The time now is 09:22 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
  • Page Generation 0.01479 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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