Plugin Author
Pascal
(@iqpascal)
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
(@kevjp)
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
(@iqpascal)
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
(@kevjp)
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
(@iqpascal)
Which PHP version do you use? You can Find this on the tools tab of the plug-in settings
Thread Starter
kevjp
(@kevjp)
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.