PHP errors after enabling module

shah_waliuallah - February 10, 2009 - 00:07
Project:GeoUser
Version:6.x-1.7-beta3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

# warning: fopen(../IPDatabase/GeoLiteCity.dat) [function.fopen]: failed to open stream: No such file or directory in /var/www/vhosts/xxx.com/httpdocs/xxxx/sites/all/modules/geouser/GeoIP.php on line 390.
# Unable to open file: ../IPDatabase/GeoLiteCity.dat
# warning: fopen(../IPDatabase/GeoLiteCity.dat) [function.fopen]: failed to open stream: No such file or directory in /var/www/vhosts/xxx.com/httpdocs/xxxx/sites/all/modules/geouser/GeoIP.php on line 390.
# Unable to open file: ../IPDatabase/GeoLiteCity.dat
# warning: fopen(../IPDatabase/GeoLiteCity.dat) [function.fopen]: failed to open stream: No such file or directory in /var/www/vhosts/xxx.com/httpdocs/xxxx/sites/all/modules/geouser/GeoIP.php on line 390.
# Unable to open file: ../IPDatabase/GeoLiteCity.dat
# warning: fopen(../IPDatabase/GeoLiteCity.dat) [function.fopen]: failed to open stream: No such file or directory in /var/www/vhosts/xxx.com/httpdocs/xxxx/sites/all/modules/geouser/GeoIP.php on line 390.
# Unable to open file: ../IPDatabase/GeoLiteCity.dat
# warning: fopen(../IPDatabase/GeoLiteCity.dat) [function.fopen]: failed to open stream: No such file or directory in /var/www/vhosts/xxx.com/httpdocs/xxxx/sites/all/modules/geouser/GeoIP.php on line 390.
# Unable to open file: ../IPDatabase/GeoLiteCity.dat

#1

fuzzy_texan - February 15, 2009 - 10:21
Title:probs» PHP errors after enabling module
Version:6.x-1.7-beta2» 6.x-1.7-beta3

Getting the same errors on beta3.

#2

zidong.c - February 15, 2009 - 17:15
Status:active» fixed

/var/www/vhosts/xxx.com/httpdocs/xxxx/sites/all/modules/geouser/GeoIP.php on line 390.
# Unable to open file: ../IPDatabase/GeoLiteCity.dat

Since this error message occurred, you dont have GeoLiteCity.dat file under your system.
You have to download and put under a directory yourself.
Before installing geouser module. please read readme.txt file carefully.

Hope this will help you.

#3

fuzzy_texan - February 15, 2009 - 23:16
Status:fixed» active

Thanks for the reply, but yes I had already done that (can't speak for shah_waliuallah).

I put it under the directory suggested in the readme.txt

#4

animelion - August 26, 2009 - 11:06

In case someone else was wondering what is going on, do this

1.Install and activate the module
2.Ignore the errors
3.Ensure you have GeoLiteCity.dat uploaded to the following directory sites/all/modules/Other/geouser/IPDatabase/
4.Go to GeoUsers modules settings page admin/settings/geouser
5.In Path of database: put sites/all/modules/Other/geouser/IPDatabase/GeoLiteCity.dat
6.Click "save configuration"

Bam! you are done.

#5

torstenzenk - October 12, 2009 - 02:14

Hi,
you have to add the GeoLiteCity.dat from here http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz into the root folder of your site and then change settings under admin/settings/geouser from "../IPDatabase/GeoLiteCity.dat" to "GeoLiteCity.dat"

 
 

Drupal is a registered trademark of Dries Buytaert.