Support » Plugin: Login With Ajax » Warning: Undefined array key “template” in PHP 8.0

  • Resolved bernard92000

    (@bernard92000)


    Hello,

    Versions : plugin version 4.0.1, WordPress 5.9.3

    I have the message on PHP 8.0 and PHP 8.1:
    Warning: Undefined array key “template” in …/login-with-ajax/login-with-ajax.php on line 560

    No error message on PHP 7.4.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Hello, sorry for the delayed reply. I’ve looked over this error and I think this would only happen if you haven’t saved the settings page, but we’re going to add something to the code so that the error doesn’t occur regardless.

    Thread Starter bernard92000

    (@bernard92000)

    Thank for the feedback, but after click to ‘update options’ this produced an extra warning : Undefined array key “img_p404_status” in ..\wp-content\plugins\all-404-redirect-to-homepage\option_page.php on line 19 , after the 2 errors still occur after plugin list.
    After re-click to ‘update options’ : same.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Hello, are you sure you’re using Login With AJAX? The error is related to another plugin, all-404-redirect-to-homepage

    Try disabling that plugin if that’s the case and save your settings.Then, see if it works for you.

    Thread Starter bernard92000

    (@bernard92000)

    Yes sorry I have another error in parallele !

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Have you tried my suggestion above? Saving the settings should be possible, and maybe that error would go away. Regardless, we’re implementing a fix so that it doesn’t happen even if settings aren’t saved, out in the next update sometime this week.

    Thread Starter bernard92000

    (@bernard92000)

    I reinstalled the plugin and no more error. Than

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    OK, good to know.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Warning: Undefined array key “template” in PHP 8.0’ is closed to new replies.