repair view.php