Title: Fatal ERror
Last modified: September 14, 2023

---

# Fatal ERror

 *  Resolved [mrgrt](https://wordpress.org/support/users/mrgrt/)
 * (@mrgrt)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-4537/)
 * We just updated the plugin to the latest version on one of our client sites and
   we’re getting the following error: 
   Site domain removed for privacy:
 *     ```wp-block-code
       2023/09/14 08:45:44 [error] 2384931#2384931: *1269387 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Undefined constant "caches" in /var/www/{domain}htdocs/wp-content/plugins/ip2location-country-blocker/ip2location-country-blocker.php:3309 Stack trace:
       ```
   
 * This looks to be the bit of code causing the error:
 *     ```wp-block-code
        if (!is_file(IP2LOCATION_DIR . get_option('ip2location_country_blocker_database'))) {
                                               $this->write_debug_log('Database not found.', 'ERROR');
   
                                               return caches;
                                       }
       ```
   
 * Please let me know if you need any more info to help resolve this.

Viewing 1 replies (of 1 total)

 *  Plugin Author [IP2Location](https://wordpress.org/support/users/ip2location/)
 * (@ip2location)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-4537/#post-17050180)
 * Sorry, please update to version 2.23.4 for the fix.

Viewing 1 replies (of 1 total)

The topic ‘Fatal ERror’ is closed to new replies.

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

 * 1 reply
 * 2 participants
 * Last reply from: [IP2Location](https://wordpress.org/support/users/ip2location/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-4537/#post-17050180)
 * Status: resolved