Franz Holzinger

Verse of the day

Bei Gott ist mein Heil, meine Ehre, der Fels meiner Stärke; meine Zuversicht ist auf Gott.
Psalm 62:7

© Bible Gateway's Verse of the Day


autor  
26-10-15 11:48:18 Different number of arguments passed in the functions
vishal tanna
I have issue with the payment gateway. For that I debug the code of the tt_products. And I found that there are some functions that passed the wrong number of arguments. And because of that original value is missing for the argument variables.

Please check below given two files and functions. In version "2.11.0".

(1) tt_products/control/class.tx_ttproducts_control.php
(2) tt_products/lib/class.tx_ttproducts_paymentlib.php

Check function "includeHandleLib" in both files.
File (1) have 9 arguments. And in file (2) have only 8 arguments.

So in file (2) when function is calling. Value of the argument is mismatch. And configuration of payment script is comes blank. And because of that payment object is not created.

I need the payment object created and execute code for that.
30-10-15 10:30:44 bug fix
Franz Holzinger
Remove the line

$productRowArray,

from the call in file tt_products/control/class.tx_ttproducts_control.php


$content = $paymentObj->includeHandleLib(
$handleLib,
$basketExtra,
$calculatedArray,
$basketObj->getItemArray(),
$orderArray,
$basketObj->basketExtra['payment.']['handleLib.'],
$bFinalize,
$errorMessage
);

< Zurück zum Forum