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.

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

[Notice] Undefined index ERROR in OrderForm


Go to End


3 Posts   2698 Views

Avatar
bubaphex

Community Member, 12 Posts

20 August 2009 at 1:04pm

Hi all,

I'm getting the following error:

[Notice] Undefined index:
POST /mysite/checkout/OrderForm

Line 157 in C:\xampp\htdocs\mysite\sapphire\core\ClassInfo.php
Source

148 /**
149 * @todo Improve documentation
150 */
151 static function ancestry($class, $onlyWithTables = false) {
152 global $_ALL_CLASSES;
153
154 if(is_object($class)) $class = $class->class;
155 else if(!is_string($class)) user_error("Bad class value " . var_export($class, true) . " passed to ClassInfo::ancestry()", E_USER_WARNING);
156
157 $items = $_ALL_CLASSES['parents'][$class];
158 $items[$class] = $class;
159 if($onlyWithTables) foreach($items as $item) {
160 if(!DataObject::has_own_table($item)) unset($items[$item]);
161 }
162 return $items;
163 }

Trace

Catchable fatal error: Method Order_Item::__toString() must return a string value in C:\xampp\htdocs\mysite\sapphire\dev\Debug.php on line 559

Does any one know of a fix?

Avatar
Funktion

Community Member, 10 Posts

6 September 2009 at 6:46pm

I and others have the same issue...

Avatar
runnerman

Community Member, 24 Posts

14 September 2009 at 5:22am

Edited: 14/09/2009 5:29am

What version of SS and ecommerce are you using?

Ecommerce version 0.5.2 isn't compatible with the latest versions of silverstripe. I'd suggest upgrading to the latest versions of SS, ecommerce and payment and that should help. The latest versions are:

SS: Version 2.3.3
Ecommerce: 0.6 beta 1
Payment: 0.1

Let me know how you get on.