I'm currently using Fast 404 module with fast_404_path_check() in settings.php.

When checking for valid paths, it queries the menu_router table and expects wildcards in the path column in order to match against requests. Since Admin Menu only declares the path 'js/admin_menu/cache' but always requests with a hash (e.g. js/admin_menu/cache/e20ece5231d9f885cfcdcd5aec4e621a), fast_404 thinks the path does not exist.

Members fund testing for the Drupal project. Drupal Association Learn more


gapple’s picture

Status: Active » Needs review
515 bytes
PASSED: [[SimpleTest]]: [MySQL] 228 pass(es). View

I've addressed this by just adding a wildcard to the end of the path declaration, but I'm unclear if this will not work properly with js.module

dureaghin’s picture

Patch #1 works! Thank you.

dureaghin’s picture

Status: Needs review » Fixed
joelpittet’s picture

Status: Fixed » Needs review

@Hakintosh marking it fixed when there is a patch means that you've committed the patch. I don't think you have commit privileges to this project? And don't see the automatic commit message on this issue.

Have a read through how to change status here: https://www.drupal.org/node/156119

+++ b/admin_menu.module
@@ -63,7 +63,7 @@ function admin_menu_theme() {
-  $items['js/admin_menu/cache'] = array(
+  $items['js/admin_menu/cache/%'] = array(

@gapple, not familiar with the routing internals but does /% also include the base path without the slash?

Saphyel’s picture

691 bytes

I reroll the patch

Status: Needs review » Needs work

The last submitted patch, 5: admin_menu-2419055-5.patch, failed testing.

joelpittet’s picture

@Saphyel the fail from test bot is because the patch isn't relative to the project folder.
Try adding --relative flag in git.

@gapple I tested my question in #4 and it didn't allow the non-slash too. Should we add that too?

Saphyel’s picture

#7 thanks for the tip, unfortunately I tried the patch on my other laptop and it didn't work :(

gapple’s picture

@joelpittet My understanding is that the hash value is always provided, so the non-slash path would be uneccessary

natew’s picture

I ran in to the same issue and the patch in #1 fixed this for me.

jucedogi’s picture

Just ran into this and #1 fixed it.

Someone should include this into the project if it is a proper fix.

DYdave’s picture

Status: Needs work » Needs review
589 bytes

Hi guys,

I encountered the same issue with:

  • drupal-7.56
  • admin_menu-7.x-3.0-rc5+3-dev (dev version)
  • fast_404-7.x-1.5+3-dev (dev version)

Tried the patch from #1 and it helped fixing my problem, as described in the issue summary.
I concur with #10 and #11, the patch fixed my issue.

This ticket should be in "Needs review", so here's a reroll of the patch against admin_menu-7.x-3.x at 67abd3a:
File attached as: admin_menu-js-cache-break-menu-fast_404-2419055-12.patch

After applying the patch, make sure you flush the cache, and the menu should should display again.

Thanks again to everyone for sharing, contributing the patch, testing and giving your feedback.

gapple’s picture

Status: Needs review » Reviewed & tested by the community

Marking RTBC, since there's now been a few confirmations of the change working and the latest patch is not substantially different than the first.