Okay, yesterday I experimented around. Adding
<?php error_reporting(E_ALL & ~E_NOTICE); ?>
to the pages with that hang cures the problem.
Removing that line and turning off error reporting in Apache (just a toggle button on my ISP's control panel) has the same effect, although error log details fall off.
Anyway, thanks for the help.