There are a few threads about issues logging in to new installs and there is also a discussion about the admin session timeout, since updating a old test instance to the very latest everything, I have this odd quirk that when the admin session times out and I click log out and then log back in again, this is what I see
Why is there a “Admin re-authentication required” banner there when I have just logged in as an admin user?
Also none of the buttons in the navbar on the right work (except log out which just circles back here once I log in again), the apps menu works but not the dashboard link (on the left)
Below the footer there is what appears to be a unpopulated user list, which is my chosen landing page
And even more bizarrely, what’s going on when I narrow the page
At this point I’m running all master branches, all fully updated and have cleared browser cache and updated database, there are no errors reported in the log or in browser console, I have done a “git diff” and I have no local changes.
When i started writing this I thought it was a log-in or session auth issue, I now think it might just be an issue with the admin/user list page perhaps?
I have just tried defining a different start page (now feed/list, was admin/users) and it logs in just fine to the feeds page, but I still get a funky admin/users page when I navigate to it via the admin page, which, that route means I am definitely an admin level user at that time, so this is looking more like just a issue with the admin/users page so I will change the thread title from “Bizarre login behavior”.
I was unable to get it working by commenting out that code so I tried some-backdating to see where it stopped working and I have to go back to 9.8.29 to get it working fully
I just tried commenting out some of the more recent changes and it has started working ok.
I have commented out this whole block in admin_controller.php
and replaced it with
if ($updatelogin || $session['admin']) {
essentially undoing the changes made to this file in this commit
following on from that I have found I must of previously forgotten to undo the $updatelogin = true: setting following a problem with logging in.
// Set to true to run database update without logging in
// URL Example: http://localhost/emoncms/admin/db
$updatelogin = true;
setting this to false and reverting the file to master has worked and I have the page back.
Shouldn’t the if ($updatelogin) block come after the if ($session['admin']) block rather than before so that only if it’s not an active admin session will the $updatelogin setting be checked?