Author
|
Message
|
Rana Faheem
|
Thursday 17 April 2008 3:52:45 am
Hello,
For webshop after talking the order confirmation i am finding this error for paypal developer test
So i am not understanding this problem
Fatal error: Call to a member function attribute() on a non-object in /var/www/naizindagi_1/trunk/naizindagi/kernel/classes/ezorder.php on line 1590 Fatal error: eZ Publish did not finish its request The execution of eZ Publish was abruptly ended, the debug output is present below.
With Regards
Amir Faheem
|
Kristof Coomans
|
Thursday 17 April 2008 5:28:44 am
Hello Amir Faheem You posted this topic into 5 different forums, of which I removed 4. Please post your topics only in 1 forum next time. For more information see our guidelines at http://ez.no/developer/forum/guidelines
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
|
eric browet
|
Friday 18 April 2008 5:44:35 am
i have same prolem replace the function with my code. it's seem work fine.
function currencyCode( $collection = false )
{
if ( is_string( $collection ) and $collection != '' )
{
$currencyCode = $collection;
}
else
{
if ( $collection instanceof eZProductCollection )
{
$collection = eZProductCollection::fetch( $this->attribute( 'productcollection_id' ) );
$currencyCode = $collection->attribute( 'currency_code' );
}
}
// Backwards compability for orders done with the price datatype.
if ( $currencyCode == '' )
{
$currencyCode = eZOrder::fetchLocaleCurrencyCode();
}
return $currencyCode;
}
Aussi perçante que soit la vue on ne se voie jamais de dos
eZ Publish Developer Basics Certification (4.4)
http://ez.no/certification/verify/396958
|
Rana Faheem
|
Friday 18 April 2008 6:13:17 am
Hello Eric,
I tried your given code but already its the same i was using, at the end, founded in result no change. But facing the same problem. Amir
|
Rana Faheem
|
Monday 21 April 2008 11:17:08 pm
Hello, I solved this problem just to comment the line code no 1590 in ezorder.php and function name is currencyCode // $currencyCode = $collection->attribute( 'currency_code' ); and control is transferred on Paypal
With Regards Amir Faheem
|
michael depetrillo
|
Sunday 08 June 2008 2:28:52 am
$collection is false when coming from ezpaypal. A warning should be thrown if this field is required.
|