PHP errors after enabling module
| Project: | GeoUser |
| Version: | 6.x-1.7-beta3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
# 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
Getting the same errors on beta3.
#2
/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
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
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
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"