Wordpress login getting error

  • Answered
mmops.ocm/login

Error 406 - Not Acceptable

An error has occurred. Generally a 406 error is caused because a request has been blocked by Mod Security. If you believe that your request has been blocked by mistake please contact the web site owner.
JacobIMH
Hello, and thank you for your question. The Mod Security error that your WordPress site is generating is: [msg "POST to wp-login.php without redirect_to"] [severity "WARNING"] [tag "WEB_ATTACK/SHELL ACCESS" It looks like you're not using the default wp-login.php script to handle your WordPress logins. The theme that you're currently using is missing the required hidden redirect_to field that our server requires to authenticate with WordPress correctly. You might wish to contact the theme developer and let them know of these issues so they can roll out an update and fix this permanently. But for the time being if you'd like to fix this yourself you should be able to modify this file and add the highlighted code: /wp-content/themes/AskIt/page-login.php Line 43:

<p><label><span><?php esc_html_e('Password','AskIt'); ?>: </span><input type='password' name='pwd' id='pwd' size='20' /><span class='et_protected_icon et_protected_password'></span></label></p> <input type="hidden" name="redirect_to" value="http://example.com/wp-admin/"> <input type='submit' name='submit' value='Login' class='etlogin-button' />

You of course would want to replace example.com with your own domain name. Please let us know if you are still having any issues at all. - Jacob