Author Topic: PHP Warning: A non-numeric value encountered in vmpsplugin.php  (Read 8652 times)

ptrouw

  • Jr. Member
  • **
  • Posts: 124
PHP Warning: A non-numeric value encountered in vmpsplugin.php
« on: January 03, 2018, 22:28:32 pm »
Is this a configuration issue in our shop or a bug.

[03-Jan-2018 13:46:53 CST6CDT] PHP Warning:  A non-numeric value encountered in /home/xxx/public_html/administrator/components/com_virtuemart/plugins/vmpsplugin.php on line 1071
[03-Jan-2018 13:46:53 CST6CDT] PHP Warning:  A non-numeric value encountered in /home/xxx/public_html/administrator/components/com_virtuemart/plugins/vmpsplugin.php on line 988

PHP code line 988: $costs = $method->cost_per_transaction + $cartPrice * $method->cost_percent_total * 0.01;
line 1071: $cartTotalAmount = ($cartTotalAmountOrig + $method->cost_per_transaction) / (1 -($method->cost_percent_total * 0.01));

php_errorlog full of these warnings.
Using vm 3.2.12.

irene-ah

  • Beginner
  • *
  • Posts: 1
  • A beginner
Re: PHP Warning: A non-numeric value encountered in vmpsplugin.php
« Reply #1 on: March 07, 2018, 17:34:41 pm »
update your Virtuemart > SHOP > Payment Methods
check each payment method Configuration:
fill in "Discounts and Fees" section below 2 fields:
"Free per transaction"
"Percent of the total amount"