On some pages, the Summary header and its corresponding edit link are missing. After some initial testing, it appears this is caused when the Licensing section for the file in question has subsections. The likely suspect seems to be something to do with caption rendering, but it may not be.
See the bug in action on these two files:
and