I reproduce this issue on 2.1.9 - 2.1.11 Magento version.
Exception:
Exception: Warning: is_readable() expects parameter 1 to be a valid path, object given in vendor/maxmind-db/reader/src/MaxMind/Db/Reader.php on line 47 in vendor/magento/framework/App/ErrorHandler.php:61
After some investigation, I found the following:
The object manager instantiate incorrectly the class (in row 61-64)
I reproduce this issue on 2.1.9 - 2.1.11 Magento version.
Exception:
After some investigation, I found the following:
So, after that in reader we have instead of
GeoIp2\Database\Reader
-Tobai\GeoIp2\Model\Database\GeoIp2\Database\Reader
At first, i change the instanceName variable like:
$instanceName = '\GeoIp2\Database\Reader
It works locally but does not work in production mode.
For production mode i made the following:
Please let me know if you found the more elegant solution. And I hope you will make changes and fix the problem.
P.S.: I can create PR if you want.