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

PHP warning – Use of undefined constant ‘FORCE_SSL_LOGIN’ ‘FORCE_SSL_ADMIN’ on wp-config.php

Edit wp-config file :

define('FORCE_SSL_LOGIN', true);
define('FORCE_SSL_ADMIN', true);

just copy this and paste in wp-config file.

best wishes for you

Related Posts:

  1. How can I open up my administrative panel to everyone?
  2. I installed WordPress locally now how do I login?
  3. Not logged in when using http
  4. Illegal string offset Warning PHP
  5. Setting $_SERVER[‘HTTPS’]=’on’ prevents access to wp-admin
  6. User registration followed by automatic login
  7. Remove update nags for non-admins [duplicate]
  8. Error Warning: Declaration of description_walker::start_el after PHP upgrade [duplicate]
  9. Any guides on creating custom admin pages?
  10. Adding “Remember Me” in custom login
  11. How can I make an Ajax login form work with FORCE_SSL_ADMIN enabled?
  12. How to change the wp-login.php page title?
  13. “Warning: count()” error on php 7.2
  14. How build a custom login/register form with error handling?
  15. Remove Customize Background and Header from Appearance admin menu without CSS or JS
  16. renaming an admin menu item with decimal array index number
  17. Change the footer text on the login page
  18. Jquery no more loading, load-scripts.php not found (404)
  19. Admin Bar (Toolbar) not showing on custom PHP file that loads WordPress
  20. How do I remove a require_once admin panel from the parent theme from the child theme functions.php?
  21. Changing user_nicename
  22. Handling error states with admin_post
  23. Installing wp3.2.1 on IIS; getting empty sessions
  24. WordPress 4 invalid username special charachters issue
  25. How to place login logout link on menu that redirects users back to current page?
  26. How to turn off redirection from ‘domain.com/login’ to ‘domain.com/wp-login.php’
  27. How to resolve error “Cookies are blocked due to unexpected output.”?
  28. Adding Field to Profile “Name”
  29. Admin Menus – Name Menu different from first Submenu [duplicate]
  30. Using a nonce in a Custom Login Form
  31. Constructing a custom login form using ajax
  32. Add a Custom Class to Admin Menus
  33. automated tests as a user?
  34. When is is_admin() available?
  35. Creating a new page and automatically associating it with a template in WordPress
  36. PHP contact form returns warning in text widget [closed]
  37. Unable to set right time in admin and frontend template
  38. Remove username in emails or swap username for email
  39. Warning: array_pop() expects parameter 1 to be array, boolean given
  40. woocommerce and is_user_logged_in() if not redirect to homepage
  41. Check if user is logged in when clicking certain links on certain pages
  42. PHP If user is logged in & on home page redirect
  43. WordPress shows registration link for non logged users
  44. List User order by ID in Descending order (Backend)
  45. getting logged in user info (wp-load.php) from parent directory
  46. running wp-cron.php using php not wget
  47. Programmatically create page when saving custom post type post
  48. Problem with login form
  49. Login to wordpress by clicking a link and specifying usernaname and password in url
  50. WordPress administration Over SSL – To Force SSL Logins and SSL Admin Access
  51. Building a WordPress App
  52. Log in / Log Out Custom Button
  53. Should `wp_login` be used since it’s deprecated?
  54. How to redirect users based on role and content of redirect_to?
  55. Change CSS based on is_user_logged_in
  56. How to display login form anywhere, when user isn’t logged in, without redirecting?
  57. Illegal string offset in PHP function
  58. Warning message (re. php) on the blog page
  59. How to fix this warning:call_user_func_array() expects exactly 2 parameters, 1 given in D:\wamp\www\…….\wp-includes\class-wp-hook.php on line 286
  60. retain querystring values when savincustom options in admin
  61. Error while setting role
  62. Get categories names as an array to use it in theme settings
  63. Get Page ID from Backend
  64. How to fix this PHP warning in WP-Admin after upgrading to 3.1.2?
  65. I am receiving a pluggable.php warning sign on my only http:// page
  66. How can I add a new row in a separate database when someone registers via WordPress?
  67. class ‘wphpc_PAnD’ not found
  68. Can not add admin notices from the edit_user_profile_update hook (notices not being displayed)?
  69. One account with multiple logins
  70. Lost in trying to create user database system
  71. Shortcode to log user into current URL
  72. PHP getting error when trying to access WP-Admin Dashboard
  73. Removing custom sort order from admin page listing
  74. If user is logged in not working
  75. PHP Warning: Missing argument 2
  76. Change homepage content if user is logged in – BuddyPress
  77. Cannot modify header information – server cache
  78. Show login greeting above sub-menu links?
  79. Adding a ‘style=’ bit to image_send_to_editor output
  80. is_user_logged_in returning nothing on custom page
  81. Get options from database using php class
  82. Limit ‘contributers’ abilities in WordPress
  83. Help with accessing wp-admin page and resolving error messages
  84. In PHP how do I make my navigation bar show certain links to admins only?
  85. Removing “There is no account with that username or email address.” error message in “/wp-login.php?action=lostpassword”
  86. Can’t log in to WordPress wp-admin after adding code to functions.php
  87. Woocommerce display orders with products from specific categories to specific admins
  88. Check if user had autologin & if so, logout
  89. Admin Panel 404 Error after login
  90. How to block specific user id in custom login form?
  91. Log out without confirmation request (nonce)
  92. admin panel – How to remove “delete” button from category editing page
  93. wordpress email checker on domain
  94. problem connecting to the administrator
  95. Having trouble creating two shortcodes, one for logged in user and one for visitors
  96. Call WP Rest-Api to GET /users/me returned NOTHING in console
  97. How to add a DELETE button to the “Edit User” WordPress admin page?
  98. Restrict wordpress access to logged users only
  99. Infinite loop when logging out using custom login form
  100. Menu not updating for logged in users after redirect
Categories PHP Tags admin, login, php, ssl, warnings
How to add pagination in Terms
Responsive header image

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