Support » Plugin: BulletProof Security » Notice: Undefined variable

  • Resolved Josh


    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!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author AITpro


    Yep, that will not hinder or break functionality, but yeah it needs to fixed. Thanks for catching this.

    Plugin Author AITpro


    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));

    You are amazing. Not only a quick response… but also a fix!

    I like the way you do business 😉


    Plugin Author AITpro


    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

    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!

    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)

    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


    Happy Friday Yogi! Probably my use of “dummy” set off some alarm bells. 😉

    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 – 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…

    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.