Title: problem with GeoIP2 update
Last modified: January 13, 2019

---

# problem with GeoIP2 update

 *  Resolved [kevjp](https://wordpress.org/support/users/kevjp/)
 * (@kevjp)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/problem-with-geoip2-update/)
 * After following your instruction to download the GeoIP2 and upload it to wp-content/
   uploads/GeoLite2-Country.mmdb my entire site becomes unusable with an error 500
   message.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Pascal](https://wordpress.org/support/users/iqpascal/)
 * (@iqpascal)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/problem-with-geoip2-update/#post-11085991)
 * Hi,
 * It’s not very likely the error 500 is related to the upload of the GeoLite database.
   It might just be a coincidence. Do you have the error logging of your PHP that
   might tell a bit more what was going on
 *  Thread Starter [kevjp](https://wordpress.org/support/users/kevjp/)
 * (@kevjp)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/problem-with-geoip2-update/#post-11086204)
 * It definitely is that – when I upload it, my site gets error 500. when I delete
   it the site works fine. I’ve repeated it several times with the same result.
   
   Sorry, not sure how to get the error log.
 *  Plugin Author [Pascal](https://wordpress.org/support/users/iqpascal/)
 * (@iqpascal)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/problem-with-geoip2-update/#post-11086221)
 * Error logging might be accessible somewhere in your webhosting control panel.
   Or there might be more information on the help pages of your webhost.
 * I’ve never seen this behavior before so I am curious to what may cause this.
 *  Thread Starter [kevjp](https://wordpress.org/support/users/kevjp/)
 * (@kevjp)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/problem-with-geoip2-update/#post-11086802)
 * Ok, after enabling error logging, I get this:
    Parse error: syntax error, unexpected‘[‘
   in …/wp-content/plugins/iq-block-country/vendor/geoip2/geoip2/src/Database/Reader.
   php on line 51 But when I delete the GeoLite2-Country.mmdb everything reverts
   to normal.
 *  Plugin Author [Pascal](https://wordpress.org/support/users/iqpascal/)
 * (@iqpascal)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/problem-with-geoip2-update/#post-11086938)
 * Which PHP version do you use? You can Find this on the tools tab of the plug-
   in settings
 *  Thread Starter [kevjp](https://wordpress.org/support/users/kevjp/)
 * (@kevjp)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/problem-with-geoip2-update/#post-11093578)
 * Thanks! That was it. I had thought my host always automatically updated the php
   but it was an old version. The update fixed the issue.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘problem with GeoIP2 update’ is closed to new replies.

 * ![](https://ps.w.org/iq-block-country/assets/icon-128x128.png?rev=3136019)
 * [iQ Block Country](https://wordpress.org/plugins/iq-block-country/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/iq-block-country/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/iq-block-country/)
 * [Active Topics](https://wordpress.org/support/plugin/iq-block-country/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/iq-block-country/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/iq-block-country/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [kevjp](https://wordpress.org/support/users/kevjp/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/problem-with-geoip2-update/#post-11093578)
 * Status: resolved