Ok, solved. The ‘problem’ was in “iThemes Security”
If we have ” Enable the hide backend feature.” checked, then we need to check:
“Enable theme compatibility. If you see errors in your theme when using hide backend, in particular when going to wp-admin while not logged in, turn this on to fix them.”