Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Ecommerce Checkout Error - SilverStripe 2.2.2 - Ecommerce 0.52

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 2368 Views
  • AndyWiltshireNZ
    Avatar
    Community Member
    35 Posts

    Ecommerce Checkout Error - SilverStripe 2.2.2 - Ecommerce 0.52 Link to this post

    I am receiving the following error when purchasing a product and proceeding to the checkout, filling in the details, selecting (any one of the payment options) and selecting continue...

    Fatal error: Call to a member function validate() on a non-object in /var/www/vhosts/andy.net.nz/httpdocs/cms/sapphire/forms/CompositeField.php on line 213


    Thanks in advance for a fix.

    Andy

    Site is viewable here: http://www.andy.net.nz/cms/

  • AndyWiltshireNZ
    Avatar
    Community Member
    35 Posts

    Re: Ecommerce Checkout Error - SilverStripe 2.2.2 - Ecommerce 0.52 Link to this post

    I am very interested to know if anyone actually has SilverStripe running without any errors with the Gallery, Forum, Blog and Ecommerce Modules. If so, what versions of each are you running and what is your server setup?

    I really really want to use SilverStripe, but I've never had so many troubles with any CMS...

  • AndyWiltshireNZ
    Avatar
    Community Member
    35 Posts

    Re: Ecommerce Checkout Error - SilverStripe 2.2.2 - Ecommerce 0.52 Link to this post

    I have the following error in the header of the CHECKOUT page in DEV mode:

    FATAL ERROR: DataObjectSet::__construct: Passed item #0 is not an object or associative array, can't be properly iterated on in templates
    At line 88 in /var/www/vhosts/andy.net.nz/httpdocs/cms/sapphire/core/model/DataObjectSet.php

    user_error(DataObjectSet::__construct: Passed item #0 is not an object or associative array, can't be properly iterated on in templates,512)
    line 88 of DataObjectSet.php

    DataObjectSet->__construct(Array)
    line 39 of CompositeField.php

    CompositeField->__construct()
    line 135 of Payment.php

    Payment::combined_form_fields($15.00 USD,15)
    line 118 of OrderForm.php

    OrderForm->__construct(CheckoutPage_Controller,OrderForm)
    line 253 of CheckoutPage.php

    CheckoutPage_Controller->OrderForm()

    call_user_func_array(Array,Array)
    line 404 of ViewableData.php

    ViewableData->XML_val(OrderForm,,1)
    line 284 of .cache.var.www.vhosts.andy.net.nz.httpdocs.cms.ecommerce.templates.Layout.CheckoutPage.ss

    include(/tmp/silverstripe-cache-var-www-vhosts-andy.net.nz-httpdocs-cms/.cache.var.www.vhosts.andy.net.nz.httpdocs.cms.ecommerce.templates.Layout.CheckoutPage.ss)
    line 197 of SSViewer.php

    SSViewer->process(CheckoutPage_Controller)
    line 189 of SSViewer.php

    SSViewer->process(CheckoutPage_Controller)
    line 296 of Controller.php

    Controller->defaultAction(index,Array)
    line 267 of Controller.php

    Controller->run(Array)
    line 22 of ModelAsController.php

    ModelAsController->run(Array)
    line 104 of Director.php

    Director::direct(/checkout)
    line 158 of main.php
    Context
    Debug (Debug::showError() in line 180 of Debug.php)

    * items =
    o 0 =

    * itemsArr =
    o 0 =

    * item =

    * i =

    0

    This forum needs to be fixed so that it wraps the code box content...

  • Tim
    Avatar
    Core Development Team
    201 Posts

    Re: Ecommerce Checkout Error - SilverStripe 2.2.2 - Ecommerce 0.52 Link to this post

    With the e-commerce module I would surest holding off looking at this in too much detail just yet. There will be a new version released shortly (within the next week or so) which contains a number of significant improvements and bug fixes.

  • AndyWiltshireNZ
    Avatar
    Community Member
    35 Posts

    Re: Ecommerce Checkout Error - SilverStripe 2.2.2 - Ecommerce 0.52 Link to this post

    Sounds great, thanks for the headsup Tim.

    2368 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.