# 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

Comments

fuzzy_texan’s picture

Title: probs » PHP errors after enabling module
Version: 6.x-1.7-beta2 » 6.x-1.7-beta3

Getting the same errors on beta3.

zidong.c’s picture

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.

fuzzy_texan’s picture

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

bryancasler’s picture

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.

pimok3000’s picture

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"

noodle.farm’s picture

I had this same issue at first but the solution is to place the IPDatabase folder containing GeoLiteCity.dat one level above your root web directory.

For example if your website is in the following directory: /var/www/html/

Then you need to place the GeoLiteCity.dat file here: /var/www/IPDatabase/GeoLiteCity.dat

I believe the developers intent with this was to provide a simple way to protect the file against download.

Hope this helps.