Title: Notice: Undefined variable
Last modified: August 21, 2016

---

# Notice: Undefined variable

 *  Resolved [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/notice-undefined-variable-1/)
 * Hi, I use your plugin on many client sites. I hope many of them have upgraded
   to your premium version 😉
 * Anyways, I run a test site… and notice an undefined variable notice message on
   the login/logout page.
 * The error is as follows (very top-left of login/logout page):
    Notice: Undefined
   variable: date in /xxx/public_html/wp-content/plugins/bulletproof-security/includes/
   login-security.php on line 22
 * I don’t think it hinders performance or functionality at all… jut thought you
   might like to be aware.
 * Awesome plugin… and thank you!
 * [http://wordpress.org/extend/plugins/bulletproof-security/](http://wordpress.org/extend/plugins/bulletproof-security/)

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

 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/notice-undefined-variable-1/#post-3739722)
 * Yep, that will not hinder or break functionality, but yeah it needs to fixed.
   Thanks for catching this.
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/notice-undefined-variable-1/#post-3739725)
 * To suppress the php error for now you can add @ until we fix this.
 * `$timestamp = @date_i18n(get_option('date_format'), strtotime("11/15-1976")) .'-'.
   date_i18n(get_option('time_format'), strtotime($date));`
 *  Thread Starter [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/notice-undefined-variable-1/#post-3739729)
 * You are amazing. Not only a quick response… but also a fix!
 * I like the way you do business 😉
 * Resolved!
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/notice-undefined-variable-1/#post-3739782)
 * The official Code Correction:
    `$timestamp = date_i18n(get_option('date_format'),
   strtotime("11/15-1976")) . ' - ' . date_i18n(get_option('time_format'), $timeNow
   + $gmt_offset);`
 * Classic case of stick some code somewhere and forgot to complete it. 😉 I usually
   add a comment for myself, but forgot that too – “don’t forget to finish this 
   function dummy”. LOL
 *  Thread Starter [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/notice-undefined-variable-1/#post-3739783)
 * Lmao – Well, I’d be lying if I said I’ve never done that before 😉
 * You know.. been doing it for years… and just today looked at some code I wrote…
   well, I think I wrote it.. and thought to myself… Did I write that??
 * These plugins get so darn large and “codey”. I constantly find myself going in
   and looking for ways to reduce the amount of code.
 * Comments are becoming my new best friend. I’m having dreams of “slash slash” 
   and “slash asterisk” going through my head all night long!
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/notice-undefined-variable-1/#post-3739784)
 * >  Comments are becoming my new best friend. I’m having dreams of “slash slash”
   > and “slash asterisk” going through my head all night long!
 * LOL too :)!
 * _(Apologies for eavesdropping guys, but I could not resist…happy Friday to you
   both)_
 *  Thread Starter [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/notice-undefined-variable-1/#post-3739785)
 * See. This is what I’m always preaching about to my friends who rarely use the
   internet. You never know who is watching from above!!
 * Howdy Yogi. Last time we spoke I think you were getting ready to board a plane.
   How was your trip? Business or pleasure?
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/notice-undefined-variable-1/#post-3739786)
 * Happy Friday Yogi! Probably my use of “dummy” set off some alarm bells. 😉
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/notice-undefined-variable-1/#post-3739787)
 * Nah, no alarms – I just happened to see it go by on the backend view and I’m 
   always happy to find someone to joke around with :).
 * [@josh](https://wordpress.org/support/users/josh/) – aside from spending several
   extra hours in Portland airport – passing the time on the forums makes it more
   bearable – it was pretty good. Sisters, Oregon -> Eugene (for the Eugene Marathon–
   my dad was running the half) -> road trip home via east side of Oregon and California
   to Truckee, CA, stop at our cabin near there and then home to Bay Area…
 *  Thread Starter [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/notice-undefined-variable-1/#post-3739788)
 * Very nice – sounds like you did a little mini-marathon yourself!
 * I’m over on the other side of the mountains, in Kentucky. We just had the Derby
   here… man. You really get to admire human nature when you have 100,000 people
   over-crowding the city!
 * I have lived here my entire life, and never attended the actual Derby race because
   of the hoards of people 🙂

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

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

 * ![](https://ps.w.org/bulletproof-security/assets/icon-128x128.png?rev=1731938)
 * [BulletProof Security](https://wordpress.org/plugins/bulletproof-security/)
 * [Support Threads](https://wordpress.org/support/plugin/bulletproof-security/)
 * [Active Topics](https://wordpress.org/support/plugin/bulletproof-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bulletproof-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bulletproof-security/reviews/)

 * 10 replies
 * 3 participants
 * Last reply from: [Josh](https://wordpress.org/support/users/josh401/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/notice-undefined-variable-1/#post-3739788)
 * Status: resolved