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)

KevinL 09-03-2010 11:29 AM

GeoIP has been re-installed and I am still having the same problem...

The template is there but no map..

Anyone? Please?

Quote:

Originally Posted by KevinL (Post 2092493)
OK I am having an issue with this.

GeoIP is installed in PHPinfo I can see it. I installed this and I go to usermap and I see everything but the actual map. I changed the settings and everything but nothing. I am not even getting an error.

What did I do wrong? lol


Quote:

In IE8 a blank page, with these errors:

Code:
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; GTB6.5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Alexa Toolbar; .NET4.0C)
Timestamp: Tue, 29 Jun 2010 12:49:40 UTC


Message: Syntax error
Line: 333
Char: 41
Code: 0
URI: http://www.XXXXX.com/usermap.php


Message: Object doesn't support this property or method
Line: 248
Char: 1
Code: 0
URI: http://www.XXXXX.com/usermap.php
and

phpinfo

PHP Code:

           geoip 
geoip support enabled  
geoip extension version  1.0.6   
geoip library version  1004006   

Directive Local Value Master Value  
geoip
.custom_directory no value no value 



digitalpoint 09-03-2010 07:33 PM

What version of vBulletin are you using?

KevinL 09-03-2010 07:40 PM

Quote:

Originally Posted by digitalpoint (Post 2093398)
What version of vBulletin are you using?

4.0.6

Thanks for the reply!

digitalpoint 09-03-2010 09:01 PM

What's the URL?

KevinL 09-03-2010 09:14 PM

Since it is not my forum I will PM you the url?

Thanks :)

digitalpoint 09-03-2010 09:57 PM

It's choking because you have no $_SERVER['REMOTE_ADDR'] set to determine the location of the user looking at the page.

Maybe some weird security system where somewhere along the way it unsets $_SERVER globals?

At the end of the usermap.php, change this:
PHP Code:

$user_location geoip_record_by_name($_SERVER['REMOTE_ADDR']); 

to this:
PHP Code:

$user_location geoip_record_by_name(IPADDRESS); 

Maybe that will work if $_SERVER is disappearing somehow.

KevinL 09-03-2010 10:01 PM

nah didn't work. I don't think they have anything out of the ordinary installed.

Thanks for looking into it for me.

digitalpoint 09-03-2010 10:17 PM

Well either way, $user_location isn't getting a valid array. So either $_SERVER['REMOTE_ADDR'] isn't set properly or geoip_record_by_name() isn't working... but I assume geoip_record_by_name() is working because it's able to look up addresses from the session table.

KevinL 09-04-2010 01:47 AM

I will look into it further. Thanks!

spillage 09-12-2010 07:22 PM

I confirmed that the GeoIP files exist on my server, uploaded the usermap.php file to my Forums folder, imported the xml file, and rebooted the server.
I get User Map listed in the Community dropdown, but when I click on it I get the 500 Internal Server Error.

Any direction would be appreciated.


All times are GMT. The time now is 08:05 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.01526 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)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