-- url of the page with the problem -- : on development
-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.7.0
-- PHP version -- : 7.1.4
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : Too few arguments to function plgHikashopUserpoints::onCheckoutStepDisplay(), 3 passed in /home/olfaaply/gp/libraries/joomla/event/event.php on line 70 and exactly 5 expected
Once I tested my localsite online with a PHP 7.1.4 powered server I found this error message:
Too few arguments to function plgHikashopUserpoints::onCheckoutStepDisplay(), 3 passed in /home/olfaaply/gp/libraries/joomla/event/event.php on line 70 and exactly 5 expected
This message shows once I do checkout having some product selected in the cart.
I fixed it going into to the file plugins/hikashop/userpoints/userpints.php
and changing line 741
public function onCheckoutStepDisplay($layoutName, &$html, &$view, $pos, $options) {
by
public function onCheckoutStepDisplay($layoutName, &$html, &$view, $pos=null, $options=null) {
Best regards,
Carlos.