log errors
avoid PHP warning