Sadly, I've never really understood Git systems well enough. When we exceed max loops, our MW 1.31 freaks out and reports PHP error as above. Issue is in Loops.php, line 361:
return $output .= '<div class="error">' . wfMsgForContent( 'loops_max' ) . '</div>';
wfMsgForContent needs updating to wfMessage. That's all!