News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

PHP Warning: A non-numeric value encountered in vmpsplugin.php

Started by ptrouw, January 03, 2018, 22:28:32 PM

Previous topic - Next topic

ptrouw

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

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"