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?