In addition to checking logs make sure your php template file doesn’t have any line breaks/extra lines after the very last php closing brace so something like this:
?>
"line break"
"line break"
The php file should end exactly after ?>
From what i recall this will result in blank pages being rendered, it’s tricky to detect and will make your hair turn gray fast.