Guest Posted March 28, 2003 Share Posted March 28, 2003 did you download the GeoIP.dat file as specificed in the installation directions and place it in the correct folder? it is complaining that it cannot open the file Quote Link to comment Share on other sites More sharing options...
warrenthewindmill Posted March 28, 2003 Share Posted March 28, 2003 Yes, I put it in catalog/admin/includes Quote Link to comment Share on other sites More sharing options...
Guest Posted March 28, 2003 Share Posted March 28, 2003 ok, did you change the path in the statement below to match your path: Add to admin/includes/footer.php (at the bottom): <?php require('../../catalog/' . DIR_WS_FUNCTIONS . 'user_tracking.php'); if ( ADMIN_CONFIG_USER_TRACKING == 'true') { tep_update_user_tracking(); } ?> NOTE: replace /catalog/ with your named directory Quote Link to comment Share on other sites More sharing options...
Guest Posted March 28, 2003 Share Posted March 28, 2003 and you also have geoip.inc in the same folder admin/includes/ as the GeoIP.dat file correct? Quote Link to comment Share on other sites More sharing options...
Druide Posted March 28, 2003 Author Share Posted March 28, 2003 i am working on a NEW version without the FLAG stuff, its nice but not where the modification originaly was written for I believe... it still is a Shopping Cart, not a postnuke site or so....lol it will be faster then the current one (speed is the important issue here with such queries) Quote Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
warrenthewindmill Posted March 28, 2003 Share Posted March 28, 2003 Yes I've checked all that and it is as per the install guide Quote Link to comment Share on other sites More sharing options...
Guest Posted March 29, 2003 Share Posted March 29, 2003 well there are only 2 other things that i can possibly think of that could cause the error: 1) permission on the file not set correctly 2) the file is corrupt (GeoIP) Quote Link to comment Share on other sites More sharing options...
warrenthewindmill Posted March 29, 2003 Share Posted March 29, 2003 Re checked everything and downloaded the GeoIP.dat file again but still doesn't work. Been working on this for the last 4 hours but can't find a solution. I've had enough for one day. Thanks for the responses so far, any further help would be much appreciated. By the way I'm working with Loaded 5 and Windows ME Quote Link to comment Share on other sites More sharing options...
Druide Posted March 29, 2003 Author Share Posted March 29, 2003 AARGHHH Win ME that's buggy with PHP Better check php.net for more info Quote Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Farrukh Posted March 29, 2003 Share Posted March 29, 2003 the admin section is working fine and I can see all the IP's etc. But i am getting this error at the bottom of my main page (i.e. catalog) Fatal error: Cannot redeclare tep_update_user_tracking() (previously declared in /home/arabianb/www/www/includes/functions/user_tracking.php:18) in /home/arabianb/www/www/includes/functions/user_tracking.php on line 16 Quote Link to comment Share on other sites More sharing options...
Farrukh Posted March 29, 2003 Share Posted March 29, 2003 Is it because I am running my site under Search Engine Friendly URL's ? Quote Link to comment Share on other sites More sharing options...
Farrukh Posted March 29, 2003 Share Posted March 29, 2003 Got it solved , it was from the other User Tracking contribution which I had. Everything is working fine now under Loaded 5 Quote Link to comment Share on other sites More sharing options...
warrenthewindmill Posted March 29, 2003 Share Posted March 29, 2003 Checking the properties of GeoIP.dat I noticed that it was a filetype gz. I added this to line 23 in admin/user_tracking.php so it reads: $gi = geoip_open(DIR_WS_INCLUDES . 'GeoIP.dat.gz',GEOIP_STANDARD); and it worked (as far as the next problem). Can someone explain what is going on here? I realised it was not finding GeoIP.dat but what is a .gz file and how do I remove this property from the file so it is a .dat type? Now I get a user tracking screen displayed but with a Fatal error: error traversing database - perhaps it is corrupt? in c:phpdevwwwcatalogadminincludesgeoip.inc on line 220 Am I right in thinking that function _geoip_seek_country in geoip.inc (which contains line 220) is checking the IP address to work out the country? If so could it fail because my site is still on localhost? Still determined to get this working because it looks like such a useful contribution. Doubt I'll be the last to hit these problems so help please? Quote Link to comment Share on other sites More sharing options...
warrenthewindmill Posted March 29, 2003 Share Posted March 29, 2003 From Greg: "oh - .gz is a form of compression. WinZip will uncompress it. Treat it the same way you would GeoIP.zip..." take the .dat file and unzip it and the .gz disappears. .gz is a unix form of zip? Now I am just missing the flags, but I'm sure I will crack this tomorrow. Thanks to all for help Quote Link to comment Share on other sites More sharing options...
warrenthewindmill Posted March 30, 2003 Share Posted March 30, 2003 I've been testing this on localhost and it now works ok except I don't get a flag for any of the users (which are all me of course) Is this right or should I still be able to see a flag? Quote Link to comment Share on other sites More sharing options...
Guest Posted March 30, 2003 Share Posted March 30, 2003 I was having probs with the images too.. it seems that the script is calling US.gif but the file is us.gif Right click on your missing image and see if this is the case Tracy Quote Link to comment Share on other sites More sharing options...
Guest Posted March 30, 2003 Share Posted March 30, 2003 it may be a local issue - when i first installed the version with flags and tested it on my local machine the flags were not showing - when it uploaded it to my production server the flags showed up....? Quote Link to comment Share on other sites More sharing options...
BradWaite Posted March 30, 2003 Share Posted March 30, 2003 Hey folks, Any idea why I'm not getting referers in 1.34? Only 2 out of 13 have an "Originating URL" entry, even though my apache logs show their referers. Suggestions? Brad Waite Quote Link to comment Share on other sites More sharing options...
minglou Posted March 30, 2003 Share Posted March 30, 2003 this is the problem after i installed whos_online_country_1.0 and User Tracking with Admin 1.34, these flag pictures only can be viewed in User Tracking with Admin 1.34 , not in whos_online_country_1.0 anybody knows what is going on? thanks sean Quote Link to comment Share on other sites More sharing options...
gdfwilliams Posted March 31, 2003 Share Posted March 31, 2003 The problem most likely has to do with case sensitivity on the server you're on. If you look in User Tracking, I changed the image call so that it bumps the result down to lowercase in all cases: <?php echo tep_image(DIR_WS_FLAGS . strtolower(geoip_country_code_by_addr($gi, $ut['value']['ip_address'])) . '.gif', geoip_country_name_by_addr($gi, $ut['value']['ip_address'])); ?> To do the same in whos_online.php, call the image like this: <td class="dataTableContent" align=center><?php echo tep_image(DIR_WS_FLAGS . strtolower(geoip_country_code_by_addr($gi, $whos_online['ip_address'])) . '.gif', geoip_country_name_by_addr($gi, $whos_online['ip_address'])); ?></TD> The most recent version has all of the flag images as lowercase files. - Greg Quote Link to comment Share on other sites More sharing options...
Guest Posted March 31, 2003 Share Posted March 31, 2003 we can always count on Greg to find those small, obscure, drive you crazy types of things with nice simple solutions :D way to go 8) Quote Link to comment Share on other sites More sharing options...
minglou Posted March 31, 2003 Share Posted March 31, 2003 hi, i copied the code and work perfectly with who's online contri , and now the flags appeared. but i only see the flags but no conntry name, some of countries flags i know which is which, but some of them i don't know. Is there a way to add country's name next to the flags like User Tracking with Admin 1.34? thanks sean Quote Link to comment Share on other sites More sharing options...
gdfwilliams Posted March 31, 2003 Share Posted March 31, 2003 You'll notice that the country name is set as an ALT tag for the flag images in Who's Online. If you don't recognize the flag, you can mouseover to see the country name. This works for me because I am most concerned with US and Canadian users. If you want to display the name next to the flag (this caused some minor layout hiccups on my end), just change the above code to: <td class="dataTableContent" nowrap><?php echo tep_image(DIR_WS_FLAGS . strtolower(geoip_country_code_by_addr($gi, $whos_online['ip_address'])) . '.gif', geoip_country_name_by_addr($gi, $whos_online['ip_address'])).' '. geoip_country_name_by_addr($gi, $whos_online['ip_address']); ?></TD> I'll publish my changes to Who's Online in the AM. - Greg Quote Link to comment Share on other sites More sharing options...
minglou Posted March 31, 2003 Share Posted March 31, 2003 thank you so much for fast reply! i got it! thanks sean Quote Link to comment Share on other sites More sharing options...
warrenthewindmill Posted March 31, 2003 Share Posted March 31, 2003 V1.34 is written using this code already so can't be the solution to my problem Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.