Title: Uncaught Error: Class &#8216;MaxMind\\Db\\Reader&#8217; not found
Last modified: October 4, 2018

---

# Uncaught Error: Class ‘MaxMind\\Db\\Reader’ not found

 *  [flyinghippo](https://wordpress.org/support/users/flyinghippo/)
 * (@flyinghippo)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/uncaught-error-class-maxminddbreader-not-found/)
 * Hi there, after the latest update my site is brought down with the error ‘Uncaught
   Error: Class ‘MaxMind\\Db\\Reader’ not found in /var/app/current/web/wp-content/
   plugins/wordfence/vendor/geoip2/geoip2/src/Database/Reader.php:53′.
 * Tried deactivating all plugins/themes/re-installing. Any help would be appreciated.
   Thanks!

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

 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/uncaught-error-class-maxminddbreader-not-found/#post-10760167)
 * Hi [@flyinghippo](https://wordpress.org/support/users/flyinghippo/)!
 * Sorry to hear that. We’ve had a couple reports about this and it seems to be 
   a possible conflict with another plugin or some other software on the site that
   uses an autoloader for PHP classes.
 * Is your site hosted on AWS? Do you know if you are using composer autoloader 
   for any other code on the site?
 *  Thread Starter [flyinghippo](https://wordpress.org/support/users/flyinghippo/)
 * (@flyinghippo)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/uncaught-error-class-maxminddbreader-not-found/#post-10760264)
 * Yes, our site is hosted on AWS and we’re not using composer. I also tried disabling
   all plugins/themes and using a fresh install of WordPress.
 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/uncaught-error-class-maxminddbreader-not-found/#post-10760321)
 * Hi [@flyinghippo](https://wordpress.org/support/users/flyinghippo/)!
    Thanks 
   for the update. Can you try going here and download Wordfence 7.1.11 and install
   that instead of the most recent version. If that works, it would be great if 
   you could send me a diagnostics report from Wordfence at that point.
 * [https://wordpress.org/plugins/wordfence/advanced/](https://wordpress.org/plugins/wordfence/advanced/)
 * Let me know how it goes!
 *  Thread Starter [flyinghippo](https://wordpress.org/support/users/flyinghippo/)
 * (@flyinghippo)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/uncaught-error-class-maxminddbreader-not-found/#post-10760779)
 * No problem! That version works fine. What email do I send it to?
 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/uncaught-error-class-maxminddbreader-not-found/#post-10763195)
 * Hi [@flyinghippo](https://wordpress.org/support/users/flyinghippo/),
    Sorry I
   forgot to tell you that part. 😀 Please send it to [asa@wordfence.com](https://wordpress.org/support/topic/uncaught-error-class-maxminddbreader-not-found/asa@wordfence.com?output_format=md).
   It’s important that you mention your forum username in the designated field so
   I know who the diagnostics are coming from.
 * Thanks in advance!
 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/uncaught-error-class-maxminddbreader-not-found/#post-10775287)
 * Hi [@flyinghippo](https://wordpress.org/support/users/flyinghippo/)!
    I got your
   diagnostics. Since you have a fair amount of plugins it’s tricky to say if any
   of them are conflicting with Wordfence.
 * I’m wondering if you are comfortable editing PHP code, would you consider doing
   this?
 * In the file /var/app/current/web/wp-content/plugins/wordfence/vendor/geoip2/geoip2/
   src/Database/Reader.php on the line before line 53 add this
 * `error_log(var_export(get_included_files(), true));`
 * Then activate Wordfence to let the errors be logged. Then send the error log 
   file to [asa@wordfence.com](https://wordpress.org/support/topic/uncaught-error-class-maxminddbreader-not-found/asa@wordfence.com?output_format=md).
 * If you send it, please reply here as well so I know to go looking for it in my
   inbox.
 * Thanks in advance!
 *  Thread Starter [flyinghippo](https://wordpress.org/support/users/flyinghippo/)
 * (@flyinghippo)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/uncaught-error-class-maxminddbreader-not-found/#post-10781831)
 * I added the line and sent over the error logs to you from our staging environment(
   can’t break production). As a side note, I tried disabling all plugins, using
   twentyseventeen, and using a fresh WordPress install and still received the same
   result. Pretty sure it’s our environment but not sure what about it is causing
   the problem.
 * Thank you!
 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/uncaught-error-class-maxminddbreader-not-found/#post-10818600)
 * Hi [@flyinghippo](https://wordpress.org/support/users/flyinghippo/),
    Sorry for
   the late reply. Sending you an update via mail just now.
 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/uncaught-error-class-maxminddbreader-not-found/#post-10876493)
 * Hi [@flyinghippo](https://wordpress.org/support/users/flyinghippo/),
    I think
   we lost touch via email but we’ve made some progress on this case. On a site 
   with similar error we found another plugin was using an out of date composer 
   library which was causing the issue. Is it possible that this could have been
   the cause for you as well?
 *  Thread Starter [flyinghippo](https://wordpress.org/support/users/flyinghippo/)
 * (@flyinghippo)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/uncaught-error-class-maxminddbreader-not-found/#post-10876536)
 * Hi there,
 * Haven’t had a change to disable the apcu PHP extension on our test environments
   yet but we did catch it happening on some of our other sites hosted on Amazon
   Beanstalk. Disabling all plugins and using a theme like twentyseventeen did not
   work for us, either.
 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/uncaught-error-class-maxminddbreader-not-found/#post-10876569)
 * Hi again!
    Okay, is there any chance there could be an old composer library loading
   something independent of WordPress plugins? For a custom app? Or something that
   was part of installation package on these sites?
 *  Thread Starter [flyinghippo](https://wordpress.org/support/users/flyinghippo/)
 * (@flyinghippo)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/uncaught-error-class-maxminddbreader-not-found/#post-10876598)
 * Not that I’ve seen so far! Some of these sites contain legacy code so I’ll have
   to dig through them and do a little cross referencing but it seems like it’s 
   related to the environment since disabling plugins and themes doesn’t solve the
   issue. Most of these environments only get WordPress and plugin updates regularly(
   no other big changes) and we haven’t had any issues upgrading WF until versions
   > 7.1.11.

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

The topic ‘Uncaught Error: Class ‘MaxMind\\Db\\Reader’ not found’ is closed to new
replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [flyinghippo](https://wordpress.org/support/users/flyinghippo/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/uncaught-error-class-maxminddbreader-not-found/#post-10876598)
 * Status: not resolved