In latest WordPress if web page has <input type="hidden" name="action" value="action_name"> input field with name=action then it create console log error. But this happen maybe 4.9.5/6.

However. if page has form or just <form></form> tag before that input field (name=action) then console error not generate.

admin_post_(action) require to used field with name="action" and when use this field with certain name value this error generate infinitely on only console error Uncaught TypeError: e.action.indexOf is not a function.

enter image description here

Is it a WordPress bug or is there anyway I can avoid this error.

Currently I avoiding this error using extra form before it.

  • on which hook do you create this form ?
    – mmm
    Jul 17 '18 at 6:49
  • 2
    Those are JavaScript errors, in whatever 'onloadwff.js' is. Nothing to do with any PHP hooks. A quick search shows that onloadwff.js is part of the LastPass browser extension. Are you using an input outside of a form element? Jul 17 '18 at 6:50
  • Thanks Jacob and Lastpass was the culprit here. Thanks again.
    – mlimon
    Jul 18 '18 at 6:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.