[TYPO3-shop] Fatal error

Dycon - Lars Dyhr lars at dycon.dk
Fri Dec 7 11:00:18 CET 2007


Hi Karsten

Karsten wrote:
> Anybody...?
> 
> How can i get the $orderUid?, thats the only thing i am missing, to get 
> it all working again with my payment gateway, after updating to version 
> 2.5.3, and the server updated to php5
> 
> Karsten P
> 
> Karsten skrev:
>> Karsten skrev:
>>> Just updated to 2.5.3 and now i get this error in my modified 
>>> dibstemplate:
>>>
>>>
>>> Fatal error: Call to a member function getView() on a non-object in 
>>> D:\www\shop\typo3conf\ext\tt_products\pi1\payment_kap.php on line 39
>>>
>>> The line is:
>>> $content=$this->basketView->getView($localTemplateCode,'PAYMENT', 
>>> $tSubpart);        // This not only gets the output but also 
>>> calculates the basket total, so it's NECESSARY!
>>>
>>> Karsten
>>>        
>> have tried with the dibs template, it returned:
>>
>> Fatal error: Call to a member function getBlankUid() on a non-object in 
>> D:\www\shop\typo3conf\ext\tt_products\pi1\payment_DIBS.php on line 69
>>
>> this line:
>>
>> $orderUid = $this->order->getBlankUid();
>>
>> have also tried:
>> $orderUid = $this->pibase->order->getBlankUid();
>>
>> same result!
>>
>> Karsten


I had the same problems that you have described.
I didn't find a working solution without hacking tt_products a bit 
(vers. 2.5.2).

I recall the issues with the non member function calls. In my dibs code 
I have put the call for $orderUid down in the switch statement so that 
it will only be called in that view - try that - maybe it will help you.

Otherwise I don't think I will be able to help as I modified the source 
too much for it to be of general value. (and it is not really 
recommended to hack the source ... sorry).

<snip>
switch($products_cmd)	{
	case 'cardno':
		// Lars: Had to move it here as this object was out
		// of scope when finalizing the order.
		$orderUid = $this->pibase->order->getBlankUid();

</snip>

Kind regards
Lars Dyhr


More information about the TYPO3-project-tt-products mailing list