Required database not available at /usr/share/GeoIP/GeoIPOrg.dat

So I was working on one of my Fiverr orders and client complained his Prosper202 is not working as it should. This was an order with GeoIP integration. This is an error that is caused by a missing database. Simply adding database to proper location will fix the problem.

Before I move to the fix, This was the error client was getting,

Warning: geoip_org_by_name() [function.geoip-org-by-name]: Required database not available at /usr/share/GeoIP/GeoIPOrg.dat. in /var/www/clcktrcker.com/public_html/tracking202/includes/devices_detect_inc.php on line 5

Warning: Cannot modify header information – headers already sent by (output started at /var/www/clcktrcker.com/public_html/tracking202/includes/devices_detect_inc.php:5) in /var/www/clcktrcker.com/public_html/202-config/functions-tracking202.php on line 4387

Warning: Cannot modify header information – headers already sent by (output started at /var/www/clcktrcker.com/public_html/tracking202/includes/devices_detect_inc.php:5) in /var/www/clcktrcker.com/public_html/202-config/functions-tracking202.php on line 4388

Warning: Cannot modify header information – headers already sent by (output started at /var/www/clcktrcker.com/public_html/tracking202/includes/devices_detect_inc.php:5) in /var/www/clcktrcker.com/public_html/202-config/functions-tracking202.php on line 4392

Warning: Cannot modify header information – headers already sent by (output started at /var/www/clcktrcker.com/public_html/tracking202/includes/devices_detect_inc.php:5) in /var/www/clcktrcker.com/public_html/tracking202/redirect/tracker.php on line 452

What I did was just download the missing file from github,

sudo wget https://github.com/nateweiss/geoip-data-files/blob/master/GeoIPOrg.dat?raw=true

As you can see, wget saves file as GeoIPOrg.dat?raw=true so let’s fix that too,

sudo mv GeoIPOrg.dat?raw=true GeoIPOrg.dat

That should be it.

Tharindu

Hey!! I'm Tharindu. I'm from Sri Lanka. I'm a part time freelancer and this is my blog where I write about everything I think might be useful to readers. If you read a tutorial here and want to hire me, contact me here.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button