fix php error logging