Bug #21823
closedWP admin bar not appearing on ACERT site
0%
Description
Reported in https://redmine.gc.cuny.edu/issues/21797#note-22. When not authenticated, the purple Hunter bar appears out of the viewport. There are some custom styles:
#banner { height: 30px; background-color: #4E3A7D; margin-top: -45px; margin-left: -85px; max-width: 960px px; }
When authenticated, this offsets the fact that the WP adminbar is 45px tall, and the ACERT site hides it with CSS:
#wpadminbar { display: none; }
But for some reason, when viewing the site unauthenticated, the wpadminbar element doesn't even appear in the DOM, and the body doesn't have the 'admin-bar' class. It's not clear to me why this would be happening on Reclaim but not on the legacy GC site. Ray, could you have a look when you get a moment?
Updated by Raymond Hoh 18 days ago
The purple bar showed up after I purged ACERT's frontpage from LSCache.
I should note that purging a mapped domain URL with LSCache's WP-CLI module does not work properly. The CLI command throws a Error: Multisite url passed in is invalid.
message. This is probably due to LSCache not knowing about Mercator's mapped domains, so I had to manually login to the mapped domain and purge the page using LSCache's menu in the WP Admin Bar. (Since ACERT hides the admin bar with CSS, I had to unhide the admin bar to access LSCache's menu.)
I also tried purging the entire site's cache with wp litespeed purge blog SITE_ID
. While I got a success message, the cached pages do not seem to have been purged. Perhaps the Reclaim server's IP address needs to be added to the Litespeed config before the CLI commands can work, but I'm just taking a wild guess here.
Updated by Boone Gorges 18 days ago
- Status changed from New to Resolved
- Target version changed from 2.5.1 to Not tracked
Thanks, Ray. I'm going to mark this as resolved, and if it comes up again, we can try to understand it better then.
Thanks for the note about the purge tool - this is annoying, but logging into the Dashboard is a reasonable workaround.