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

Klarna error message in backend

Started by Uke, February 12, 2014, 23:46:31 PM

Previous topic - Next topic

Uke

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')
            )
        );
    }


;)