Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

error at login page in wordpress

The main cause of this error is that somewhere on your site, it could be your theme or a plugin, someone has incorrectly used certain functions.

The error messages themselves describe the problem perfectly well:

  1. Scripts and styles should not be registered or enqueued until the
    wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts
    hooks.
  2. Do not deregister the jquery script in the administration area. To target the front-end theme, use the wp_enqueue_scripts hook.

All the other errors are caused just because the first 4 error messages were output early, and will go away when the first 4 are resolved.

This means that somebody has added code for enqueueing and dequeueing scripts that probably looks a lot like this:

wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', 'some/url/here', ...);
wp_enqueue_script( 'jquery' );

The cause of the errors is that these functions have apparently just been to functions.php or a plugin file without being properly hooked.

At the very least, it needs to look like this:

function wpse_329345_bad_jquery_nonsense() {
    wp_deregister_script( 'jquery' );
    wp_register_script( 'jquery', 'some/url/here', ...);
    wp_enqueue_script( 'jquery' );
}
add_action( 'wp_enqueue_scripts', 'wpse_329345_bad_jquery_nonsense' );

The first place I’d look for the problematic code (if other people are working on the site) is the bottom of the functions.php file in your theme directory. If you find it, make the change you can see I’ve made in my example (or delete it because you should not be enqueueing your own jQuery). That should resolve the issue.

All that being said. These are only debugging messages intended to inform the developer that they have done something wrong. These are appearing because you have debugging enabled on your site. If your site is live, you should not have visible debugging messages enabled. You can do this by disabling WP_DEBUG. The instructions for enabling it are here. Follow those but set the value to false instead of true to disable it.

Related Posts:

  1. Unable to login after registration
  2. How to change login labels
  3. Show errormessages on wrong username/password on custom loginform?
  4. Redirect after login to current URL
  5. wp_login_form display no styled form
  6. wp_enqueue_script was called incorrectly
  7. Adding fields to the “Add New User” screen in the dashboard
  8. Displaying the number of updates available in the Admin area
  9. What’s the difference between admin_url() and get_admin_url() functions?
  10. How to influence the information displayed on widget inside wp-admin
  11. How to override admin-bar style
  12. TinyMCE custom styles remove class when switching styles
  13. Custom ReCaptcha Login
  14. Masking logout URL
  15. How do I create a new WP admin color scheme?
  16. Logout/login redirect CSS issue
  17. AJAX handler throws 400 (Bad request) – why?
  18. How can I tell if I’m on a login page? [duplicate]
  19. Is it possible to use a forgot password url filter?
  20. wp-admin page is blank
  21. Replacing select2 in admin backend for all selects
  22. redirect wp-login.php to another page
  23. difference between add_object_page and add_menu_page
  24. How to fix a theme with page.php Default Template that accidentally deleted?
  25. Target a certain page within wordpress backend (admin) i.e. Pages > About
  26. Login using the password from protected pages
  27. How do I redirect upon login a specific user based on role?
  28. How can I rename the WordPress AJAX URL? [duplicate]
  29. Logging in redirects to correct page but shows logged out content until forced refresh
  30. Using /wp-admin works, using /login gives a 404. Why?
  31. How to add a column to the Trash page?
  32. Comments to only be seen by their author
  33. How to change menu icon which is overriden (i.e. by WooCommerce) [closed]
  34. Remove default user registration, login and subscriber profiles
  35. Custom roles can’t access to wp-admin
  36. password protected post policy
  37. is_user_logged_in not working to redirect only logged out users
  38. Removing the main link to Jetpack from the menu
  39. Access / Filter block variations in Gutenberg, in WordPress 5.6
  40. Members only site – still need the lost password page accessible
  41. How to remove howdy dropdown menu content
  42. Load .txt file for login_message in wp-login.php
  43. Add Featured image column into wordpress admin on pages AND posts
  44. Selective Product Category for Carousel
  45. How can I get my Script to work on the Login page?
  46. Removing wp_login_viewport_meta
  47. wp-admin – 404 after custom login form
  48. How to force field validation first, then its values saved durning edit profile?
  49. How to fix ‘WordPress redirection loop problem in wp-login.php page’?
  50. Move ‘current-menu-item’ class on #adminmenu li from Posts to Pages for Taxonomy Edit Screen
  51. How to auto refresh when user change postcode
  52. Sections and tabs DRY – WordPress settings API
  53. Login Redirect if Logged in from Specific Page
  54. Unable to login using username
  55. How to install Segment on WordPress without a plugin
  56. When a user logs in, how can they view the website instead of the admin menu?
  57. Get First Child Page ID or Permalink in WordPress Admin
  58. Creating A New Admin Menu Tab For Theme Options
  59. WordPress PHP Conflicting User Sessions
  60. Get User Login Data (date, time… )
  61. wp-admin won’t load after setting wp-login custom url
  62. Registration Hooks don’t appear to be working
  63. Wp admin – Set default value to 999 in comments
  64. Remove “Published On” inside wp-admin
  65. Where do i create my own function in wp-admin
  66. How to remove comment count column in Posts inside the admin dashboard?
  67. What is the text that appears beside the page titles in the list of pages in the WP admin?
  68. Why can I log into wp-login.php and not wp-admin.php?
  69. If user is logged-in display/hide something
  70. Disable Admin CP authentication (or auto login)
  71. Admin login not working
  72. Sortable column (by numbers) in admin users
  73. Secondary Menu and Logged In Users
  74. Prevent WordPress Automatic Logout
  75. Add Login/Logout Menu Item to Primary Nav “My Account” Submenu [Woocommerce] [closed]
  76. Logout Redirect and also WP-login.php Redirect
  77. Update to functions.php not showing in dashboard
  78. Add element to widgetpage
  79. Best way to disable sidebars on posts (only)?
  80. “options.php” not found
  81. loginout function customization
  82. Add Login and logout buttons to top menu bar
  83. How to change a specific admin label
  84. How to change a meta value (of a published post) after X days.?
  85. WordPress login set cookie that survive browser exit (wp_signon function)
  86. This code is supposed to only allow user to be authenticated if accountVerified is equal to 1, but it still allows user to be authenticated otherwise
  87. Prevent wp_signon redirect on failed login for ajax login
  88. How to redirect Subscribers on login to specific page, when logging in from a Page
  89. Block all plug-ins from initiating redirection upon activation?
  90. How to add custom metakey to shop_order page’s searching function?
  91. How to replace ACTION url from original wordpress login form?
  92. Allow logged in user to view a Page, else send to login screen and then redirect back to Page
  93. Re-style Login Form Whilst Keeping CSS Separate from Frontend CSS
  94. Insert Modal on user first login
  95. How to change form action of wp-login page with a function
  96. WP Enqueue Script Error
  97. DISABLE wordpress upgrade page
  98. True email confirmation for registration (keeping unvalidated users from user table)
  99. admin-ajax.php & my wp-admin folder url showing in header
  100. Login functions
Categories functions Tags functions, login, wp-admin, wp-login-form
wp_nav_menu() | Outputting my own custom code using built in features
How to display a custom taxonomy without a link?

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress