Fix PHP errors.