VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Uke on February 12, 2014, 23:46:31 PM

Title: Klarna error message in backend
Post by: Uke on February 12, 2014, 23:46:31 PM
Hello!

I got a error message on Virtuemart V2.0.26d when changing the order status to "cancelled" in backend:

QuotePHP Fatal error: func_get_args(): Can't be used as a function parameter in /plugins/vmpayment/klarna/klarna/api/klarna.php on line 3925

I solved it by changing the function from:


    public static function colon(/* variable parameters */)
    {
        return implode(
            ':',
            array_filter(
                func_get_args(),
                array('self', 'filterDigest')
            )
        );
    }


to


    public static function colon(/* variable parameters */)
    {
    $func_args=func_get_args();
   
        return implode(
            ':',
            array_filter(
                $func_args,
                array('self', 'filterDigest')
            )
        );
    }


;)