Title: PHP errors
Last modified: January 24, 2022

---

# PHP errors

 *  [Seath](https://wordpress.org/support/users/seath/)
 * (@seath)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-errors-264/)
 * Hello,
 * The plugin is producing a lot of PHP errors…..
 *     ```
       [24-Jan-2022 02:55:31 UTC] PHP Warning: Trying to access array offset on value of type bool in /wp-content/plugins/ip2location-country-blocker/ip2location-country-blocker.php on line 2701
   
       [24-Jan-2022 02:55:31 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /wp-content/plugins/ip2location-country-blocker/ip2location-country-blocker.php on line 2691
       ```
   
 * Thanks

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

 *  Plugin Author [IP2Location](https://wordpress.org/support/users/ip2location/)
 * (@ip2location)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-errors-264/#post-15286468)
 * It looks like the error is coming from PHP command line. Do you have scripts 
   that running from command line?
 *  Thread Starter [Seath](https://wordpress.org/support/users/seath/)
 * (@seath)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-errors-264/#post-15297677)
 * Hello,
 * I was looking at my server and as far as I can tell I do not.
 * Any other idea?
 * Thanks.
 *  Thread Starter [Seath](https://wordpress.org/support/users/seath/)
 * (@seath)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-errors-264/#post-15310592)
 * [@ip2location](https://wordpress.org/support/users/ip2location/) Any idea about
   warnings?
 * Also I have noticed that the localhos …. 127.0.0.1 is being blocked. Can you 
   please explain this one to me.
 * `127.0.0.1 - 133`
 * Thanks
 *  Plugin Author [IP2Location](https://wordpress.org/support/users/ip2location/)
 * (@ip2location)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-errors-264/#post-15333046)
 * Can you enable the debugging log in the plugin settings and check the “debug.
   log” in the plugin folder for details?

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

The topic ‘PHP errors’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [IP2Location](https://wordpress.org/support/users/ip2location/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/php-errors-264/#post-15333046)
 * Status: not resolved