I have been trying to track this one for days but if the subsite module is installed and one selects a subsite and tries to use the button
View "All Pages, Including Deleted"
then no pages are returned. I'm pretty sure its somewhere around getChildrenAsUL() in Heirarchy.php and getSiteTreeFor() in LeftAndMain.php. It might also be an incompatibilty due to incorrect or no extension of Versioned::get_including_deleted()
The augmentsql portion of Version has a complex codeset for the latest_versions case. If I alter get_including_deleted() to "all_versions" then data is returned to the sitetree list - I think Im getting close.
If I see any more print_r() I will go nuts!
Can anyone shed any light on this?