Silverstripe Version: 3.7.3
Question:
Hello, we have this error occuring and wondering whether anyone can assist in resolving
" [User Error] Uncaught TypeError: Argument 3 passed to GridField::__construct() must implement interface SS_List or be null, bool given"
Line 93 in /data/www//framework/forms/gridfield/GridField.php*
This is all in core code, and no modifications to that structure have been made. Im not sure when this began occurring, but hasn’t been any recent changes to the code.
Removing the mods to the CMS Fields doesn’t have any impact on the error.
public function getCMSFields() {
$fields = parent::getCMSFields();
// Modifications
}
Trace
* **GridField->__construct(Filled,Filled,,GridFieldConfig_RelationEditor)**
* **ReflectionClass->newInstanceArgs(Array)**
InjectionCreator.php:17
* **InjectionCreator->create(GridField,Array)**
Injector.php:560
* **Injector->instantiate(Array,,prototype)**
Injector.php:869
* **Injector->get(GridField,,Array)**
Injector.php:907
* **Injector->createWithArgs(GridField,Array)**
Object.php:142
* **SS_Object::create(GridField,Filled,Filled,,GridFieldConfig_RelationEditor)**
FormScaffolder.php:167
* **FormScaffolder->getFieldList()**
DataObject.php:2368
* **DataObject->scaffoldFormFields(Array)**
DataObject.php:2407
* **DataObject->getCMSFields()**
MemberYachtJob.php:174
* **MemberYachtJob->getCMSFields()**
GridFieldDetailForm.php:398
* **GridFieldDetailForm_ItemRequest->ItemEditForm(GridField,SS_HTTPRequest)**
GridFieldDetailForm.php:304
* **GridFieldDetailForm_ItemRequest->edit(SS_HTTPRequest)**
RequestHandler.php:296
* **RequestHandler->handleAction(SS_HTTPRequest,edit)**
RequestHandler.php:208
* **RequestHandler->handleRequest(SS_HTTPRequest,DataModel)**
GridFieldDetailForm.php:102
* **GridFieldDetailForm->handleItem(GridField,SS_HTTPRequest)**
GridField.php:995
* **GridField->handleRequest(SS_HTTPRequest,DataModel)**
RequestHandler.php:230
* **RequestHandler->handleRequest(SS_HTTPRequest,DataModel)**
RequestHandler.php:230
* **RequestHandler->handleRequest(SS_HTTPRequest,DataModel)**
Any tips on disabling the Silverstripe error handling so I can dump values and locate where the error is originating, would be useful aswell.