Cannot redeclare geoip_country_code_by_name

Today I had this error on my Ubuntu Linux box

Fatal error: Cannot redeclare geoip_country_code_by_name()

The reason was that I have geoip extension enabled in my PHP configuration and also I used the geoip.inc file from maxmind.com.

The solution is very simple.

http://www.razvantudorica.net/03/cannot-redeclare-geoip_country_code_by_name/

3 comments so far

  1. Geet on

    Thanks! I had the same problem and went with method 2, that fixed it 🙂

  2. Robert J Turner on

    Your link is to a broken site.


Leave a comment