Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
My problem is when i'm navigating to any link that contains subdomain admin menu just dissapears but its place remains still.
Here is an example:
http://example.com -> working!
http://sub.example.com -> not working
http://www.example.com -> not working
is this a bug or am i missing a configuration to set?
also i set my $base_url variable to http://www.example.local
Thanks,
Volkan.
Comment | File | Size | Author |
---|---|---|---|
#13 | admin_menu-menu-subdomains-726236-13.patch | 865 bytes | migrad |
Comments
Comment #1
vbilici CreditAttribution: vbilici commentedEdit:
.com -> .local
Comment #2
sunHow are those subdomains related to each other?
Are any multisite/multidomain modules installed?
What is your cookie domain?
Is your user authenticated after switching to the subdomains?
Comment #3
sunSorry, without further information this issue can only be marked as won't fix.
Feel free to re-open this issue if you want to provide further information. Thanks.
Comment #4
NitebreedReopening this issue.
I have the same problem. I have the following modules installed:
Administration Menu 6.x-3.0-alpha4
Subdomain 6.x-1.7
With Subdomain I configured my website to use the domain example.com and use subdomains like tax.example.com and expats.example.com (depending on taxonomy term)
The admin menu is configured to show up for authenticated users, but does the following:
example.com -> showing
tax.example.com -> not showing
expats.example.com -> not showing
My cookie-domain is example.com, i'm working on localhost with Xampp. I just configured my Windows host-file to redirect example.com (and it subdomains) to 127.0.0.1
Comment #5
NitebreedAny new thoughts?
Comment #6
zazinteractive CreditAttribution: zazinteractive commentedI have the same problem but I'm using ".example.com" as my cookie domain
Comment #7
sunThis should work properly in 7.x-3.x.
In 6.x-3.x, the module still has much larger problems (caused by Drupal core's menu system) compared to this one, which is also why 6.x-3.x won't get out of alpha.
Please re-open this issue if you have a patch to fix it.
Comment #8
iTiZZiMO CreditAttribution: iTiZZiMO commentedHello Community,
we have the same error with the latest 7.x stable version and domain modul.
the primary domain works perfect, other domains not - the menu disappears after you logged in and goto admin -> configuration.
We use 3 domains and a barracuda setup (nginx, aegir)
Thanks for help.
Comment #9
iTiZZiMO CreditAttribution: iTiZZiMO commentedHello Community,
we have the same error with the latest 7.x stable version and domain modul.
the primary domain works perfect, other domains not - the menu disappears after you logged in and goto admin -> configuration.
We use 3 domains and a barracuda setup (nginx, aegir)
Thanks for help.
Comment #10
any.site.n.site@gmail.com CreditAttribution: any.site.n.site@gmail.com commentedGetting the same problem; menu is not showing on subdomains.
The source problem is trying to load AJAX from different subdomain. If you would look on dev console, you should see message similar to this:
"XMLHttpRequest cannot load http://store.yosi.local/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://yosi.local' is therefore not allowed access. "
But The problem is in my code, so maybe others' as well: my code make redirect from main to subdomain on condition. The result was the XHR redirects to subdomain and rejected because of Access-Control-Allow-Origin.
So if you get this problem - check your redirects. hope it would help someone.
Comment #11
vahid.k CreditAttribution: vahid.k commentedJust disable Cache menu in client-side browser in administrator menu config page
Comment #12
Sinan Erdem CreditAttribution: Sinan Erdem commentedI also have the exact same problem. I listened to vahid.k's advice and now it works. but it has a performance effect. Any other solution to this?
I tried with 3.x -beta5 and also with dev
Comment #13
migrad CreditAttribution: migrad commentedHi!
I hope this patch will be useful.
Comment #14
mozh92 CreditAttribution: mozh92 commentedThanks #11 comment. I go /admin/config/administration/admin_menu and click on tab Perfomance and uncheck Cache menu
Comment #15
truls1502Does it still an issue with the latest 7.x-3.x-dev?
Comment #16
truls1502Ok, I am going to close this one. So if you or anyone is still facing the same issue, please to re-open the issue, provide with more information and a screenshot that might help us to troubleshoot it. :)