WordPress.org

Ready to get started?Download WordPress

Forums

BulletProof Security
[resolved] Notice: Undefined variable (11 posts)

  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/

  2. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

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

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

    I like the way you do business ;)

    Resolved!

  5. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    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

  6. 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!

  7. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    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)

  8. 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?

  9. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    Happy Friday Yogi! Probably my use of "dummy" set off some alarm bells. ;)

  10. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    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...

  11. 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 :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.