Bonjour,
Un site avec Joomla3.9 + VM3.4.2 + PHP7.2 fonctionne sans problème en local. Chez Amen, avec PHP7.0 tout est normal.
Si je le passe en 7.1ou 7.2 (après avoir activé la case mysqli), lors du processus achat, au moment de l'affichage de la page du panier cela génère le message :
" Warning: A non-numeric value encountered in /home/yc2dgv6e/magasin.abbaye-fleury.com/plugins/vmpayment/paybox/paybox.php on line 392
Warning: A non-numeric value encountered in /home/yc2dgv6e/magasin.abbaye-fleury.com/administrator/components/com_virtuemart/plugins/vmpsplugin.php on line 1085 ".
J'ai recharger les fichiers de base de Joomla et VM3.4.2 ... sans succès. J'utilise bien un paiement Paybox.
Que dois-je faire ?
Nota : L'assistance technique d'Amen est impuissante.
La ligne 392 : }
return ($method->cost_per_transaction + ($cart_prices['salesPrice'] * $cost_percent_total * 0.01));
}
La ligne 1085 : //progressive
$cartTotalAmount = ($cartTotalAmountOrig + $method->cost_per_transaction) / (1 -($method->cost_percent_total * 0.01));
//
Merci d'avance.
In english please ?
Jörgen @ Kreativ Fotografi
Pour des réponses en français allez sur http://www.virtuemart.fr/forum/
To solve the problem, try to add (float) before each value to cast to floatall so you get no warnings.
La ligne 392 :
return ((float)$method->cost_per_transaction + ((float)$cart_prices['salesPrice'] * (float)$cost_percent_total * 0.01));
La ligne 1085 : //progressive
$cartTotalAmount = ((float)$cartTotalAmountOrig + (float)$method->cost_per_transaction) / (1 -((float)$method->cost_percent_total * 0.01));
I just discover, Studio 42, that you suggest a solution and ... its OK ! Many thancks.