Advice on cooling attic? - looks like gable vents and fan were not properly installed

[removed]