I use pathauto to determine what menu to show in my left sidebar, so for my gallery menu I have it set to display on galleries/*. Pathauto is set up to alias all acidfree media to galleries/[whatever] and that works fine. The gallery menu shows up fine when looking at albums, but when looking at individual photos, the menu disappears despite the fact they are aliased correctly (URL begins with galleries but the menu just doesn't show up). Anyway to fix this?

Comments

Jedi Stannis’s picture

Upom further investigation I tracked the problem to line 145 in class_photo.inc:

$_GET['q'] = $q;

$q is null here which sets $_GET['q'] to null. The block module is later comparing the path the block should appear on to nothing, so of course it doesn't show up. The question is why is that line there? I commented it out and got my block back, and nothing seems to be wrong, but I don't want to just comment out a line of code without knowing what it's purpose is. Is this a safe fix?

vhmauery’s picture

Status: Active » Fixed

Yes, that fix is safe. That line of code somehow made its way back into the code after being deleted. It should not be there.

vhmauery’s picture

Status: Fixed » Closed (fixed)