Forums / General / Webshop

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.

eZ debug

Timing: Jan 18 2025 04:19:53
Script start
Timing: Jan 18 2025 04:19:53
Module start 'content'
Timing: Jan 18 2025 04:19:54
Module end 'content'
Timing: Jan 18 2025 04:19:54
Script end

Main resources:

Total runtime0.8021 sec
Peak memory usage4,096.0000 KB
Database Queries207

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 587.5156180.8594
Module start 'content' 0.00680.6806 768.3750649.0859
Module end 'content' 0.68740.1146 1,417.4609337.0938
Script end 0.8020  1,754.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.5277210.0002
Check MTime0.00170.2116210.0001
Mysql Total
Database connection0.00070.089410.0007
Mysqli_queries0.721789.98562070.0035
Looping result0.00190.24072050.0000
Template Total0.771596.220.3857
Template load0.00200.255320.0010
Template processing0.769495.929020.3847
Template load and register function0.00010.016310.0001
states
state_id_array0.00130.167310.0013
state_identifier_array0.00080.101820.0004
Override
Cache load0.00180.2196360.0000
Sytem overhead
Fetch class attribute can translate value0.00220.273950.0004
Fetch class attribute name0.00110.135280.0001
XML
Image XML parsing0.00170.213650.0003
class_abstraction
Instantiating content class attribute0.00000.0021100.0000
General
dbfile0.00280.3490330.0001
String conversion0.00000.001330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs