fix silent php errors