Answers.Body: <p>It’s a warning (not an error) - so it should let you save the Contribution but nevertheless it should be logged as an issue.</p>
  
  <p>On a production site you will always want display Errors/Warnings -> to none;</p>
  
  <p>In Drupal 7 the setting for that lives:
  /admin/config/development/logging</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-10T18:00:02.830Z
Answers.Text: Hi Karin - we are still testing things - access is still internal to a small group - so we still want errors to appear. The donations do go through - just was unsure about the *warning*.
Answers.UserDisplayName: themak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-08T13:43:55.253Z
Answers.LastActivityDate: 2018-12-08T13:43:55.253Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>When manually adding a contribution - I get the following error:</p>
  
  <p><code>Warning: A non-numeric value encountered in CRM_Contribute_BAO_Contribution::calculateMissingAmountParams() (line 383 of /home/sitename/www/www/sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution.php).</code></p>
  
  <p>Line 383 is:
  <code>$params['net_amount'] = $params['total_amount'] - $params['fee_amount'];</code></p>
  
  <p>The contribution is processed without issue - but that error persists. When I add fee amount as 0 - the error does not display. Do we always have to provide a fee amount for manual contribution entries?</p>
  
  <p><a href="https://i.sstatic.net/7U4Sd.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/7U4Sd.png" alt="enter image description here"></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-12-07T20:15:40.933Z
Comments.Text: unless you are already using latest vanilla how about testing on dmaster.demo.civicrm.org to verify what happens there and rule out strangeness related to your set up?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-12-07T20:37:28.037Z
Comments.Text: replicated on Demo - created a new payment method - used that payment method - same error.
Comments.UserDisplayName: themak
Tags: <civicontribute><contributions>
Title: Error when adding a contribution:
ThreadText: # Error when adding a contribution:
  
  (Asked by: username_0 on 2018-12-07)
  
  When manually adding a contribution - I get the following error:
  
  `Warning: A non-numeric value encountered in CRM_Contribute_BAO_Contribution::calculateMissingAmountParams() (line 383 of /home/sitename/www/www/sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution.php).`
  
  Line 383 is:
  `$params['net_amount'] = $params['total_amount'] - $params['fee_amount'];`
  
  The contribution is processed without issue - but that error persists. When I add fee amount as 0 - the error does not display. Do we always have to provide a fee amount for manual contribution entries?
  
  [![enter image description here](https://i.sstatic.net/7U4Sd.png)](https://i.sstatic.net/7U4Sd.png)
  
  **Tags:** civicontribute, contributions
  
  > **Comments:**
  > **username_1**: unless you are already using latest vanilla how about testing on dmaster.demo.civicrm.org to verify what happens there and rule out strangeness related to your set up?  
  > **username_0**: replicated on Demo - created a new payment method - used that payment method - same error.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2018-12-08. Score: 1
  
  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
  
  > **Comments:**
  > **username_0**: Hi Karin - we are still testing things - access is still internal to a small group - so we still want errors to appear. The donations do go through - just was unsure about the *warning*.  
  
  ---
  
  