I just figured out the issue.
You need to add the HTTPS/SSL settings before require_once(ABSPATH . 'wp-settings.php');
in your wp-config.php
So the relevant part of your wp-config.php
should look like this.
define( 'FORCE_SSL_ADMIN', true );
// in some setups HTTP_X_FORWARDED_PROTO might contain
// a comma-separated list e.g. http,https
// so check for https existence
if( false !== strpos( $_SERVER['HTTP_X_FORWARDED_PROTO'], 'https' ) ) {
$_SERVER['HTTPS'] = 'on';
}
/** Sets up WordPress vars and included files. */
require_once( ABSPATH . 'wp-settings.php' );
Related Posts:
- Disable all https in WordPress
- Using shared SSL for login/admin
- Locked out of admin and some pictures don’t show after failed SSL installation
- WordPress administration Over SSL – To Force SSL Logins and SSL Admin Access
- Featured image on post edit page not loading over HTTPS
- Cannot access wp-admin after installing SSL – user capabilities not being set
- WP administration over SSL using different domain
- Cant enter admin page with SSL
- Admin Ajax is returning 0
- Add a Separator to the Admin Menu?
- Adding a custom admin page
- Allowing admin-ajax.php to receive “application/json” instead of “x-www-form-urlencoded”
- Custom admin email for new user registration
- Make A WordPress Page Accessible To Admins Only, Redirect Other User Roles
- localhost/wp-admin on my local redirects to production site’s /wp-admin
- front end logo upload like happytables
- How to show custom menu items in the WordPress android app?
- Modify built-in post type properties
- How can I include JavaScript that use jQuery on admin side
- Admin pages have no content
- Where is the User’s Admin Bar Preference stored? I want it to default to off for new users
- Make certain pages uneditable by editors?
- wp-admin: Sort users by surname
- Add User meta fields, which only admin can edit
- Default, locked sorting of posting fields
- How do I fix “You are not allowed to edit this item.” for Admins on existing posts?
- Modify links under ‘help section’?
- How to add a link to the tax term in the admin Edit page?
- How can I access profile Admin Colour Scheme
- Having admin on different host breaks attached images
- Is it safe to post form data via Ajax to the settings api? Am I missing something?
- Admin area ‘toggle’ w/ cookie
- SSL Partially breaking admin panel and elementor
- Remove default subpages from Custom Post Menu
- wp.template() Not a function
- get user list in admin area
- Need help cleaning up a wordpress site after being hacked
- How would I add a link to the profile editing page of the dashboard?
- How can I make uploaded images in the editor load with HTTPS?
- Showing Post Counts of One’s (Author) Own in the admin post list
- creating custom rewrite rules for admin pages
- admin_enqueue_scripts not working
- When admin changes a password for a registered user, I don’t want to send a password change email to users
- Add last Revision of Post column on Admin Panel
- How do you handle postmeta in admin area?
- Admin – Load existing admin template as a submenu page
- Admin interface problems – thickbox? jquery?
- Restricting access to a single MultiSite site based on IP — possible?
- admin : search custom fields
- Admin cannot publish
- Activate Gallery Options in Media Uploader for Custom Usage
- Get post attached image to display in admin dashboard
- How Can I Found Admin Directory
- Combine and Minify wp-admin files, also re-write URI’s for CDN
- How to disable accessing the custom post types from frontend via a link?
- Problem with Settings API: changes are not saved after submit
- Show excerpt if no title in admin view
- hide default post body field in backend
- How to make the first widget box to be closed instead of open in admin
- Change default italic from to in admin editor
- Can I host WP-admin locally for a remote blog?
- add_cap for editor but no admin role
- WordPress Home/Front Page Display at top of Admin Pages List
- Bind custom role to admin page
- Home page is redirecting to another page – no obvious reason
- Admin Panel Development [closed]
- Backend Checkboxes working – but not visual?
- Why does Thickbox jQuery load on my site?
- Redirect admin 403 “Cheatin uh?” admin pages
- iframe with Youtube video appears for logged-in users, but not for incognito users
- Admin mode breaks with subdomains in latest WP
- How do I create a post_id column, for admin posts list?
- Custom Jquery in admin breaks media-upload script
- How should I change the username of or delete the admin user?
- Prevent Registration Where Role is None?
- Extending the user profile [closed]
- Show private pages in public when you logged in as admin?
- Any known plugins for master admin login to edit all on front end?
- How to exclude some post from admin edit screen
- Allow custom REST route to return before doing long operation
- WordPress – add help text under category list(right side) in post edit page
- Where to store publicly-accessible files
- Show only content in page after action click in WordPress admin
- WordPress4.1.15 Dashboard links not working
- Admins loggin in to our wordpress site default to the admin page
- Display Graphs in Admin Pages
- ‘Conflict’ with action deleted_post and is_admin()
- Downloading file from wp-admin folder
- Dropdown list of available posts for post editing
- Unsure how to add simple checkboxes that write to a small table to admin
- Custom styles and scripts for specific admin screen
- Add Sort Link in Custom Post Type List
- TinyMCE buttons broken
- local WAMP admin user has lost privileges
- Is it possible to get rid of admin new updates notifications?
- WordPress 4.5 Inline Link Toolbar not working on custom wp_editor instance
- 2FA for admin login only, is it doable?
- Add a user to edit the layout of a site
- CSS Styles specific to Admin Sidebar not loading
- Display notice in block editor after wp_insert_post_data hook