Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#46462 closed defect (bug) (invalid)

Admin Bar at Top Missing for All Pages Except Dashboard

Reported by: sleepycatzzz Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Administration Keywords:
Focuses: Cc:


I fixed the missing top admin bar by matching the Site address URL with the WordPress Address Url. I think this should not have to be a match for the admin bar to work. (this was true on vs. 5.0 too)
I had developed the site at a hosting URL they gave me while the live site remained on another account. When the site was ready, I re-pointed the DNS to the new wp site which didn't have SSL yet. Site address URL didn't match the WordPress Address Url any longer, but admin bar was fine. (http://dns-name not equal to https://hostingURL but ok)

I purchased SSL cert for <b>http://dns-name</b>, redirected everything via plugin to <b>https://dns-name</b>. WP address URL still https://hostingURL. The admin bar disappeared on any pages other than Dashboard, and I noted that the <body> tag stopped saying "logged-in admin-bar".

I went into Settings, and set the WP URL to https://dns-name. Voila, body tag has logged-in admin-bar, and the admin bar is back.

Change History (1)

#1 @desrosj
2 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Severity changed from major to normal
  • Status changed from new to closed
  • Version 5.1 deleted

Hi @sleepycatzzz,

Thanks for opening this ticket and welcome to Trac!

The behavior you are describing seems correct to me. The same site loading over HTTPS and HTTP will each require a login. This is due to how the authentication cookie is created. When the admin bar disappeared and <body> tag had the logged-in class disappear, the session must have expired. When you were successfully seeing the admin bar on both sites, your sessions must have still been valid for the domains.

If you are still having issues, I recommend posting in the WordPress.org support forums.

Note: See TracTickets for help on using tickets.