Postponed
Project:
Masquerade
Version:
8.x-2.x-dev
Component:
User interface
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Dec 2013 at 20:53 UTC
Updated:
17 Apr 2026 at 13:10 UTC
Jump to comment: Most recent
Comments
Comment #1
webservant316 commentedclarify title
Comment #2
andypost@webservant316 please try 7.x-1.0-dev version, also provide a url from which you are trying to unmasquerade.
it would be awesome if you provide more info about steps to reproduce the bug
Comment #3
webservant316 commentedwill do when I get back in the office monday.
Comment #4
webservant316 commentedOk I did a fresh install of masquerade 7.x-1.0-dev. I still have the exact same problem. I am able to switch to another user. However, I am unable to unswitch. Mydomain.com/masquerade/unswitch throws a no access error.
There are no PHP errors. However, there is this entry in the Drupal logs...
I am able to log out as the switched user and then log back in as the admin. However, that is not very convenient.
What other information can I give you?
Comment #5
andypostThis really strange, the url should have token so it seems that some of installed modules breaks masquerade at least prevents execution of
masquerade_menu_alter()I recomment to to debug this, also try clear all cache ;)
Comment #6
webservant316 commentedWhat does this statement mean?
Maybe I am simply calling the 'unswitch' command wrong. I didn't see the link anywhere and I am not using the navigation menu, so I was just manually typing 'masquerade/unswitch' in the URL.
Is the commend supposed to have an argument?
Comment #7
andypostyou can't manually type the url, try to use block or menu
Comment #8
webservant316 commentedok - that is the problem. sorry for the trouble over such a simple thing.
Comment #9
stevendeleus commentedI need help with this. There is no unswitch link in the menu. Does this need some configuration?
Will the token be added automatically when I create a menu link masquerade/unswitch ?
Using the block didn't help much. It worked sometimes, but most often I got the access denied error.
I am using the adminimal menu. I'm not sure this is causing problems, but it seems to use caching.
Comment #10
sgdev commentedOne important point in case anyone is reading this thread -- if you have Login Destination installed (I'm using 7.x-1.1), and you're performing a redirect to the current page (using the "
<current>" path), you need to add "masquerade/*" as pages to not allow redirects from in your Login Destination settings. Otherwise the site will say there are insufficient permissions to view the page.This happens both when attempting to masquerade and attempting to switch back, and adding "masquerade/*" fixes the issue.
Comment #11
andypost@ron_s better to file and link here new issue to modules compatible or add a line to readme
I think about that we just need to properly check referer and redirect to front page or login destination if enabled
Comment #12
andypostComment #13
sgdev commentedSure, I think adding a line to readme until there is a more proper check would be reasonable.
Comment #14
aaronbaumanStill having this issue with latest dev, but only on my local environment.
Are there undocumented requirements around cookies, or other settings?
Comment #15
aaronbaumanOK, resolved this by enabling mod_rewrite
Not sure how my clean URLs were working without this enabled, but enabling it fixed my issues with masquerade.
Comment #16
andypost#15 thanx for reporting, I'm sure we need to explore redirects with clean urls "off"
Comment #17
joelpittetI'm seeing this as well with clean url's "on". Is it
login_destinationfor others seeing this?Comment #18
fox mulder commented#10 resolved this problem on my site
Comment #19
andypostComment #20
ressaThanks for reporting this. In an attempt to help the maintainers, I am going through some of the Drupal 7 issues, since it's EOL.
So we can probably close this issue, unless it's still a problem in the Drupal 11 version?