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.
From node/2165395 - comment #1:
I had the admin toolbar working fine until I installed the JS module (as suggested by IP Geolocation Views & Maps module) and enabled it. Once both modules where enabled, I began to see the same issue you are mentioning here. But when I remove the rules from the .htaccess file that process JS calls, the admin menu shows back up. Otherwise I receive a 500 internal server error.
After that it follows an analysis about the issue and a hack.
Here to help.
Comment | File | Size | Author |
---|---|---|---|
#6 | js_admin_menu-2216061-6.patch | 911 bytes | tripper54 |
Comments
Comment #1
SDWM CreditAttribution: SDWM commentedAfter some debugging i noticed that the path of the admin menu is '/js/admin_menu/cache/'.
Since '/js/' is rewritten to js.php it gives a 500 error, i changed the htaccess and works for me now.
Original .htaccess:
New.htaccess:
Comment #2
alexweber CreditAttribution: alexweber commentedYou can also avoid this problem entirely by disabling the admin menu local cache option (admin_menu_cache_client) in the admin menu config page.
Comment #3
joelpittetThanks for the updated .htaccess rewrite changes. That did the trick in #1.
Comment #4
joelpittetWhoops should have tested better.
This catches the multilingual 2 character prefix and escapes the slashes. the $ at the end is superfluous.
Comment #5
excel28 CreditAttribution: excel28 commentedHello,
I have an issue where my .htaccess has a custom redirect to index.php.
#RewriteRule ^ index.php [L] <--- original
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] <--- my custom redirect
I used the rewrite conditions from comment 4, but it seems to fail.
Can you help?
Comment #6
tripper54 CreditAttribution: tripper54 commentedPatch attached that adds the admin_menu specific line to the auto-generated htaccess code.
Comment #7
markhalliwell