php error logging, remove file_notice(), and correct indentation