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