Webshop

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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 11:01:53
Script start
Timing: Jan 18 2025 11:01:53
Module start 'layout'
Timing: Jan 18 2025 11:01:53
Module start 'content'
Timing: Jan 18 2025 11:01:54
Module end 'content'
Timing: Jan 18 2025 11:01:54
Script end

Main resources:

Total runtime0.6921 sec
Peak memory usage4,096.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.7813152.6094
Module start 'layout' 0.00610.0034 740.390639.3828
Module start 'content' 0.00950.6811 779.7734644.0313
Module end 'content' 0.69060.0015 1,423.804716.2188
Script end 0.6921  1,440.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4728160.0002
Check MTime0.00130.1865160.0001
Mysql Total
Database connection0.00110.160810.0011
Mysqli_queries0.621189.7433700.0089
Looping result0.00060.0931680.0000
Template Total0.657995.120.3289
Template load0.00190.277420.0010
Template processing0.655994.770820.3280
Template load and register function0.00020.033810.0002
states
state_id_array0.00130.188410.0013
state_identifier_array0.00230.334020.0012
Override
Cache load0.00160.2332360.0000
Sytem overhead
Fetch class attribute can translate value0.00050.069740.0001
Fetch class attribute name0.00200.285580.0002
XML
Image XML parsing0.00450.648340.0011
class_abstraction
Instantiating content class attribute0.00000.0031100.0000
General
dbfile0.00380.5495220.0002
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs