Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Ecommerce Checkout Error - SilverStripe 2.2.2 - Ecommerce 0.52


Go to End


5 Posts   2790 Views

Avatar
AndyWiltshireNZ

Community Member, 35 Posts

28 May 2008 at 5:59pm

Edited: 28/05/2008 8:29pm

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/

Avatar
AndyWiltshireNZ

Community Member, 35 Posts

30 May 2008 at 3:10pm

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...

Avatar
AndyWiltshireNZ

Community Member, 35 Posts

30 May 2008 at 6:20pm

Edited: 30/05/2008 6:22pm

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...

Avatar
Tim

Community Member, 201 Posts

30 May 2008 at 7:42pm

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.

Avatar
AndyWiltshireNZ

Community Member, 35 Posts

30 May 2008 at 8:23pm

Sounds great, thanks for the headsup Tim.