Problem/Motivation
Admin toolbar get vanished when we are updating any content and coming to the home page again
Steps to reproduce
- Login with the admin user
- Go to content and edit any node
- Update the node content
- Come back to the home page. The toolbar menu gets hidden.
- The issue occurs only on the server, not reflecting in the local and issue is reflecting only in Drupal 10
Proposed resolution
- Need to check for the toolbar menu session.
Comments
Comment #2
shahin-razaComment #3
shahin-razaComment #4
max2bos commentedI'm also having this issue on a site running Drupal 9.5.10.
Comment #5
shahin-razaI got the issue, the issue is related to the 'reverse_proxy' and 'reverse_proxy_trusted_headers'.
The issue occurs due to the deprecated Symfony 6 object HEADER_X_FORWARDED_ALL.
I have fixed it by setting the appropriate value in the settings.php on the server.
Comment #6
shahin-razaComment #7
vlyalko commentedHi shahin-raza, I am having the same issues after the upgrade to drupal 10 and after updating a few pieces if content to test the upgrade.
What values did you have to update/add in settings.php to fix this issue? I would appreciate if you could post the fix.
Thank you
Comment #8
wmfinck commentedNo, I have this issue on one of three fresh drupal installs I have made the last few days, and the toolbar disappeared before I did much to the website. The line "HEADER_X_FORWARDED_ALL" was never in the settings.php file.
Comment #9
damienmckennaThis just showed up for a site that runs on Pantheon, which had been fine until a recent set of updates was deployed. I fixed the problem by adding the Pantheon Advanced Page Cache module.
Comment #10
dydave commentedThanks Damien (@damienmckenna), could this be somehow related to some of the explanation given here?
#3541815-7: Edit icon button disappears after the second display of a page