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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

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

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


Go to End

2 Posts   1772 Views


Community Member, 13 Posts

14 November 2008 at 4:56am


I'm trying to sort out a ManyManyComplexTableField and i have it working fine if we are dealing with a current record in the database, however; if i wish to make a new record the form breaks and gives me a bad class to singleton error. I have my module set up in the way that the create a module tutorial is set up and fetch my fields for the form from my DataObjects.


FATAL ERROR: singleton() Called without a class
At line 84 in C:\wamp\www\clients\airsphere\sapphire\core\Core.php

user_error(singleton() Called without a class,256)
line 84 of Core.php

line 636 of ComplexTableField.php

line 69 of ManyManyComplexTableField.php

line 35 of HasManyComplexTableField.php

line 15 of ManyManyComplexTableField.php

line 42 of Booking.php

Can someone post me a viable solution as i need this working it's integral to a project!!!



Community Member, 13 Posts

14 November 2008 at 10:08pm

I fixed this,

in manymanycomplextablefield i changed $this->controller->ClassName (as it doesn't exist) to $this->controller->class

hope this helps anyone else