Error when adding a contribution:
It’s a warning (not an error) - so it should let you save the Contribution but nevertheless it should be logged as an issue.

On a production site you will always want display Errors/Warnings -> to none;

In Drupal 7 the setting for that lives:
/admin/config/development/logging