• Resolved chrix22

    (@chrix22)


    Can you guys fix this issue?

    Notice
    : Undefined index: show_all_login_records in
    /var/www/oliceo-www/wp-content/plugins/when-last-login/when-last-login.php
    on line
    257

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @chrix22,

    Thank you for using When Last Login. I’m really sorry about this issue.

    I have added it to our development schedule to attend to.

    Here is a link to the Github issue – https://github.com/andrewlimaza/when-last-login/issues/33

    Please feel free to add comments to the Github issue.

    This problem hasn’t been fixed. Same notice is written:
    <b>Notice</b>: Undefined index: show_all_login_records in <b>/..page to /public_html/wp-content/plugins/when-last-login/when-last-login.php</b> on line 257

    It doesn’t stop the site working, but causes a huge succession of error messages to be logged and written when working in the dashboard.

    The line causing the error is this:
    $show = $settings['show_all_login_records'];

    Looks like a setting variable hasn’t been given a default value, but I’ve switched on “Enable All Login Records” and then switched it off again. The error is no longer showing. Should be a very simple fix – come on “When-last-login” team – get it fixed. I’ve wasted a couple of hours on this.

    Plugin Author Andrew Lima

    (@andrewza)

    I’m sorry for the inconvenience caused by this. I was unable to recreate this issue but I am merging code in that should help resolve this issue for some cases.

    What PHP version are you running on your site, I would like to try and recreate this on my end?

    Good question – I should have said! We upgraded recently to PHP 7.2 and that’s when the notice started being issued. We were previously on PHP 5.6 (from memory).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Undefined index’ is closed to new replies.