Title: ERROR: Undefined variable: ip
Last modified: August 30, 2016

---

# ERROR: Undefined variable: ip

 *  [J00na5](https://wordpress.org/support/users/j00na5/)
 * (@j00na5)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/error-undefined-variable-ip/)
 * Hi,
 * Our debug.log is getting hammered with this error:
 * `PHP Notice: Undefined variable: ip in /nas/content/live/XXXXXXXXX/wp-content/
   plugins/better-wp-security/core/class-itsec-lib.php on line 396`
 * Any idea what might cause it? Something to do with our host WP Engine?
 * Thank you! 🙂
 * [https://wordpress.org/plugins/better-wp-security/](https://wordpress.org/plugins/better-wp-security/)

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

 *  [dwinden](https://wordpress.org/support/users/dwinden/)
 * (@dwinden)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/error-undefined-variable-ip/#post-6789626)
 * [@j00na5](https://wordpress.org/support/users/j00na5/)
 * The PHP Notice probably indicates that the $_SERVER[‘REMOTE_ADDR’] is empty …
   In other words there is not always a client IP address …
 * If your webserver is not behind a proxy you could try and enable the **Disable
   Proxy IP Detection** checkbox in the Global Settings section of the iTSec plugin
   Settings page.
 * It probably won’t fix the $_SERVER[‘REMOTE_ADDR’] being empty … but it will prevent
   the PHP Notice from happening …
 * Talk to WP Engine about the $_SERVER[‘REMOTE_ADDR’] being empty …
 * dwinden
 *  [dwinden](https://wordpress.org/support/users/dwinden/)
 * (@dwinden)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/error-undefined-variable-ip/#post-6789837)
 * [@j00na5](https://wordpress.org/support/users/j00na5/)
 * If you require no further assistance please mark this topic as ‘resolved’.
 * dwinden
 *  Thread Starter [J00na5](https://wordpress.org/support/users/j00na5/)
 * (@j00na5)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/error-undefined-variable-ip/#post-6789838)
 * Thank you. Have asked from WP Engine about this and will get back with an answer
   🙂

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

The topic ‘ERROR: Undefined variable: ip’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [J00na5](https://wordpress.org/support/users/j00na5/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/error-undefined-variable-ip/#post-6789838)
 * Status: not resolved