Tuesday 28 July 2009 11:07:04 pm
Heath, I did as you recommended.
Now the message is displayed:
<i>Fatal error: Call to a member function attribute() on a non-object in /var/www/dima/data/www/midisa.org/extension/ib2checkout/classes/ib2checkoutgateway.php on line 116
Fatal error: eZ Publish did not finish its request The execution of eZ Publish was abruptly ended, the debug output is present below.</i> Code from line 110 to 121
foreach( $productItems as $index =>$item )
{
$it_object=$item['item_object'];
$contentObject=$item['item_object']->attribute('contentobject');
$objectDataMap = $contentObject->attribute('data_map');
$productNumberAttribute=$objectDataMap['product_number'];
$productNumber = $productNumberAttribute->attribute('data_text');
$quantity = $item['item_count'];
if ($index>0) $ind = $index + 1; else $ind = "";
$products = $products."&product_id".$ind."=".$productNumber."&quantity".$ind."=".$quantity;
}
Please help correct the error.
|