I've tried turning off all the extensions and the behavior is pretty much the same - page actually exists, but the tab isn't added to the menu.
I bet it is frustrating, frustrating from this end as well because it clearly does work for some people (and the code looks like it should work) but it just... doesn't.
Can't be a permission problem for me as it actually reads and writes the CustomPages file correctly.
Could you pop an echo statement into the PageManagement::Render() function (before the condition), and see if it shows up? That way we could verify if there's something wrong with the setting of the hook or something in the rearranging of the tabs.
I suppose this would've been a better thing to put in it, as it would've killed two birds with one stone, but now could you put in var_dump($GLOBALS['Menu']->Tabs); at the very end of that function, and post the results? If the tabs are reorganized in the array, then there's nothing wrong in either the hook or reorganization, which would probably create an even bigger problem.
Whoa, that's even weirder. It's supposed to be the format of the menu, but somehow it managed to lose all the system tabs... But you say that still nothing happens with the tabs? Could you see what it displays when you put var_dump($this->Tabs); instead?
Well, I now see why all the system tabs were taken out. The available roles for them are missing for some reason, but that still dosn't explain why they don't have any affect upon the tabs themselves. What happens when you click Resync Tabs?
Comments
var_dump($GLOBALS['Menu']->Tabs);
at the very end of that function, and post the results? If the tabs are reorganized in the array, then there's nothing wrong in either the hook or reorganization, which would probably create an even bigger problem.array(1) { [0]=> array(5) { ["Text"]=> string(20) "Back to BEANSUSY.org" ["Value"]=> string(20) "back_to_beansusy.org" ["Url"]=> string(23) "http://www.beansusy.org" ["CssClass"]=> string(0) "" ["Attributes"]=> string(0) "" } }
Here's the code (it looks like all of the tabs- including the custom ones)
My guess is that we're talking about windows servers where it works, and *Nix servers where it doesn't.
Just a hunch.
I'm on a Unix/Apache server and the extension does not work in any template or version.