Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Source
- 1442
- 1443 if(!$remoteClass) {
- 1444 throw new Exception("Unknown $type component '$component' on class '$this->class'");
- 1445 }
- 1446
- 1447 if($fieldPos = strpos($remoteClass, '.')) {
- 1448 return substr($remoteClass, $fieldPos + 1) . 'ID';
- 1449 }
- 1450
- 1451 $remoteRelations = array_flip(Config::inst()->get($remoteClass, 'has_one'));
- 1452
- 1453 // look for remote has_one joins on this class or any parent classes
- 1454 foreach(array_reverse(ClassInfo::ancestry($this)) as $class) {
- 1455 if(array_key_exists($class, $remoteRelations)) return $remoteRelations[$class] . 'ID';
- 1456 }
- 1457
- Trace
- array_flip()
- DataObject.php:1451
- DataObject->getRemoteJoinField(Departments,has_many)
- DataObject.php:1362
- DataObject->getComponents(Departments)
- call_user_func_array(Array,Array)
- Object.php:661
- Object->__call(Departments,Array)
- StaffPage.php:18
- StaffPage->Departments()
- StaffPage.php:18
- StaffPage->getCMSFields()
- LeftAndMain.php:1025
- LeftAndMain->getEditForm(55)
- CMSMain.php:588
- CMSMain->getEditForm()
- LeftAndMain.php:1004
- LeftAndMain->EditForm()
- ViewableData.php:366
- ViewableData->obj(EditForm,,,1)
- ViewableData.php:443
- ViewableData->XML_val(EditForm,,1)
- call_user_func_array(Array,Array)
- SSViewer.php:144
- SSViewer_Scope->__call(XML_val,Array)
- SSViewer.php:490
- SSViewer_DataPresenter->__call(XML_val,Array)
- .cache.cms.templates.Includes.CMSMain_Content.ss:94
- SSViewer_DataPresenter->XML_val(EditForm,,1)
- .cache.cms.templates.Includes.CMSMain_Content.ss:94
- include(C:\Windows\Temp\silverstripe-cacheC--wamp-www\.cache.cms.templates.Includes.CMSMain_Content.ss)
- SSViewer.php:838
- SSViewer->includeGeneratedTemplate(C:\Windows\TEMP/silverstripe-cacheC--wamp-www/.cache.cms.templates.Includes.CMSMain_Content.ss,CMSPageEditController,,Array)
- SSViewer.php:910
- SSViewer->process(CMSPageEditController,)
- ViewableData.php:335
- ViewableData->renderWith(Array)
- LeftAndMain.php:612
- LeftAndMain->Content()
- ViewableData.php:366
- ViewableData->obj(Content,,,1)
- ViewableData.php:443
- ViewableData->XML_val(Content,,1)
- call_user_func_array(Array,Array)
- SSViewer.php:144
- SSViewer_Scope->__call(XML_val,Array)
- SSViewer.php:490
- SSViewer_DataPresenter->__call(XML_val,Array)
- .cache.framework.admin.templates.LeftAndMain.ss:36
- SSViewer_DataPresenter->XML_val(Content,,1)
- .cache.framework.admin.templates.LeftAndMain.ss:36
- include(C:\Windows\Temp\silverstripe-cacheC--wamp-www\.cache.framework.admin.templates.LeftAndMain.ss)
- SSViewer.php:838
- SSViewer->includeGeneratedTemplate(C:\Windows\TEMP/silverstripe-cacheC--wamp-www/.cache.framework.admin.templates.LeftAndMain.ss,CMSPageEditController,,Array)
- SSViewer.php:910
- SSViewer->process(CMSPageEditController,)
- ViewableData.php:335
- ViewableData->renderWith(SSViewer)
- LeftAndMain.php:487
- {closure}()
- call_user_func(Closure)
- PjaxResponseNegotiator.php:75
- PjaxResponseNegotiator->respond(SS_HTTPRequest)
- LeftAndMain.php:464
- LeftAndMain->show(SS_HTTPRequest)
- Controller.php:205
- Controller->handleAction(SS_HTTPRequest)
- RequestHandler.php:184
- RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
- Controller.php:153
- Controller->handleRequest(SS_HTTPRequest,DataModel)
- LeftAndMain.php:357
- LeftAndMain->handleRequest(SS_HTTPRequest,DataModel)
- AdminRootController.php:89
- AdminRootController->handleRequest(SS_HTTPRequest,DataModel)
- Director.php:296
- Director::handleRequest(SS_HTTPRequest,Session,DataModel)
- Director.php:119
- Director::direct(/admin/pages/edit/show/55,DataModel)
- main.php:126
- [Warning] array_key_exists() expects parameter 2 to be array, null given
- GET /admin/pages/edit/show/55
- Line 1455 in C:\wamp\www\framework\model\DataObject.php
- Source
- 1446
- 1447 if($fieldPos = strpos($remoteClass, '.')) {
- 1448 return substr($remoteClass, $fieldPos + 1) . 'ID';
- 1449 }
- 1450
- 1451 $remoteRelations = array_flip(Config::inst()->get($remoteClass, 'has_one'));
- 1452
- 1453 // look for remote has_one joins on this class or any parent classes
- 1454 foreach(array_reverse(ClassInfo::ancestry($this)) as $class) {
- 1455 if(array_key_exists($class, $remoteRelations)) return $remoteRelations[$class] . 'ID';
- 1456 }
- 1457
- 1458 return 'ParentID';
- 1459 }
- 1460
- 1461 /**
- Trace
- array_key_exists(StaffPage,)
- DataObject.php:1455
- DataObject->getRemoteJoinField(Departments,has_many)
- DataObject.php:1362
- DataObject->getComponents(Departments)
- call_user_func_array(Array,Array)
- Object.php:661
- Object->__call(Departments,Array)
- StaffPage.php:18
- StaffPage->Departments()
- StaffPage.php:18
- StaffPage->getCMSFields()
- LeftAndMain.php:1025
- LeftAndMain->getEditForm(55)
- CMSMain.php:588
- CMSMain->getEditForm()
- LeftAndMain.php:1004
- LeftAndMain->EditForm()
- ViewableData.php:366
- ViewableData->obj(EditForm,,,1)
- ViewableData.php:443
- ViewableData->XML_val(EditForm,,1)
- call_user_func_array(Array,Array)
- SSViewer.php:144
- SSViewer_Scope->__call(XML_val,Array)
- SSViewer.php:490
- SSViewer_DataPresenter->__call(XML_val,Array)
- .cache.cms.templates.Includes.CMSMain_Content.ss:94
- SSViewer_DataPresenter->XML_val(EditForm,,1)
- .cache.cms.templates.Includes.CMSMain_Content.ss:94
- include(C:\Windows\Temp\silverstripe-cacheC--wamp-www\.cache.cms.templates.Includes.CMSMain_Content.ss)
- SSViewer.php:838
- SSViewer->includeGeneratedTemplate(C:\Windows\TEMP/silverstripe-cacheC--wamp-www/.cache.cms.templates.Includes.CMSMain_Content.ss,CMSPageEditController,,Array)
- SSViewer.php:910
- SSViewer->process(CMSPageEditController,)
- ViewableData.php:335
- ViewableData->renderWith(Array)
- LeftAndMain.php:612
- LeftAndMain->Content()
- ViewableData.php:366
- ViewableData->obj(Content,,,1)
- ViewableData.php:443
- ViewableData->XML_val(Content,,1)
- call_user_func_array(Array,Array)
- SSViewer.php:144
- SSViewer_Scope->__call(XML_val,Array)
- SSViewer.php:490
- SSViewer_DataPresenter->__call(XML_val,Array)
- .cache.framework.admin.templates.LeftAndMain.ss:36
- SSViewer_DataPresenter->XML_val(Content,,1)
- .cache.framework.admin.templates.LeftAndMain.ss:36
- include(C:\Windows\Temp\silverstripe-cacheC--wamp-www\.cache.framework.admin.templates.LeftAndMain.ss)
- SSViewer.php:838
- SSViewer->includeGeneratedTemplate(C:\Windows\TEMP/silverstripe-cacheC--wamp-www/.cache.framework.admin.templates.LeftAndMain.ss,CMSPageEditController,,Array)
- SSViewer.php:910
- SSViewer->process(CMSPageEditController,)
- ViewableData.php:335
- ViewableData->renderWith(SSViewer)
- LeftAndMain.php:487
- {closure}()
- call_user_func(Closure)
- PjaxResponseNegotiator.php:75
- PjaxResponseNegotiator->respond(SS_HTTPRequest)
- LeftAndMain.php:464
- LeftAndMain->show(SS_HTTPRequest)
- Controller.php:205
- Controller->handleAction(SS_HTTPRequest)
- RequestHandler.php:184
- RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
- Controller.php:153
- Controller->handleRequest(SS_HTTPRequest,DataModel)
- LeftAndMain.php:357
- LeftAndMain->handleRequest(SS_HTTPRequest,DataModel)
- AdminRootController.php:89
- AdminRootController->handleRequest(SS_HTTPRequest,DataModel)
- Director.php:296
- Director::handleRequest(SS_HTTPRequest,Session,DataModel)
- Director.php:119
- Director::direct(/admin/pages/edit/show/55,DataModel)
- main.php:126
- [Warning] array_key_exists() expects parameter 2 to be array, null given
- GET /admin/pages/edit/show/55
- Line 1455 in C:\wamp\www\framework\model\DataObject.php
- Source
- 1446
- 1447 if($fieldPos = strpos($remoteClass, '.')) {
- 1448 return substr($remoteClass, $fieldPos + 1) . 'ID';
- 1449 }
- 1450
- 1451 $remoteRelations = array_flip(Config::inst()->get($remoteClass, 'has_one'));
- 1452
- 1453 // look for remote has_one joins on this class or any parent classes
- 1454 foreach(array_reverse(ClassInfo::ancestry($this)) as $class) {
- 1455 if(array_key_exists($class, $remoteRelations)) return $remoteRelations[$class] . 'ID';
- 1456 }
- 1457
- 1458 return 'ParentID';
- 1459 }
- 1460
- 1461 /**
- Trace
- array_key_exists(Page,)
- DataObject.php:1455
- DataObject->getRemoteJoinField(Departments,has_many)
- DataObject.php:1362
- DataObject->getComponents(Departments)
- call_user_func_array(Array,Array)
- Object.php:661
- Object->__call(Departments,Array)
- StaffPage.php:18
- StaffPage->Departments()
- StaffPage.php:18
- StaffPage->getCMSFields()
- LeftAndMain.php:1025
- LeftAndMain->getEditForm(55)
- CMSMain.php:588
- CMSMain->getEditForm()
- LeftAndMain.php:1004
- LeftAndMain->EditForm()
- ViewableData.php:366
- ViewableData->obj(EditForm,,,1)
- ViewableData.php:443
- ViewableData->XML_val(EditForm,,1)
- call_user_func_array(Array,Array)
- SSViewer.php:144
- SSViewer_Scope->__call(XML_val,Array)
- SSViewer.php:490
- SSViewer_DataPresenter->__call(XML_val,Array)
- .cache.cms.templates.Includes.CMSMain_Content.ss:94
- SSViewer_DataPresenter->XML_val(EditForm,,1)
- .cache.cms.templates.Includes.CMSMain_Content.ss:94
- include(C:\Windows\Temp\silverstripe-cacheC--wamp-www\.cache.cms.templates.Includes.CMSMain_Content.ss)
- SSViewer.php:838
- SSViewer->includeGeneratedTemplate(C:\Windows\TEMP/silverstripe-cacheC--wamp-www/.cache.cms.templates.Includes.CMSMain_Content.ss,CMSPageEditController,,Array)
- SSViewer.php:910
- SSViewer->process(CMSPageEditController,)
- ViewableData.php:335
- ViewableData->renderWith(Array)
- LeftAndMain.php:612
- LeftAndMain->Content()
- ViewableData.php:366
- ViewableData->obj(Content,,,1)
- ViewableData.php:443
- ViewableData->XML_val(Content,,1)
- call_user_func_array(Array,Array)
- SSViewer.php:144
- SSViewer_Scope->__call(XML_val,Array)
- SSViewer.php:490
- SSViewer_DataPresenter->__call(XML_val,Array)
- .cache.framework.admin.templates.LeftAndMain.ss:36
- SSViewer_DataPresenter->XML_val(Content,,1)
- .cache.framework.admin.templates.LeftAndMain.ss:36
- include(C:\Windows\Temp\silverstripe-cacheC--wamp-www\.cache.framework.admin.templates.LeftAndMain.ss)
- SSViewer.php:838
- SSViewer->includeGeneratedTemplate(C:\Windows\TEMP/silverstripe-cacheC--wamp-www/.cache.framework.admin.templates.LeftAndMain.ss,CMSPageEditController,,Array)
- SSViewer.php:910
- SSViewer->process(CMSPageEditController,)
- ViewableData.php:335
- ViewableData->renderWith(SSViewer)
- LeftAndMain.php:487
- {closure}()
- call_user_func(Closure)
- PjaxResponseNegotiator.php:75
- PjaxResponseNegotiator->respond(SS_HTTPRequest)
- LeftAndMain.php:464
- LeftAndMain->show(SS_HTTPRequest)
- Controller.php:205
- Controller->handleAction(SS_HTTPRequest)
- RequestHandler.php:184
- RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
- Controller.php:153
- Controller->handleRequest(SS_HTTPRequest,DataModel)
- LeftAndMain.php:357
- LeftAndMain->handleRequest(SS_HTTPRequest,DataModel)
- AdminRootController.php:89
- AdminRootController->handleRequest(SS_HTTPRequest,DataModel)
- Director.php:296
- Director::handleRequest(SS_HTTPRequest,Session,DataModel)
- Director.php:119
- Director::direct(/admin/pages/edit/show/55,DataModel)
- main.php:126
- [Warning] array_key_exists() expects parameter 2 to be array, null given
- GET /admin/pages/edit/show/55
- Line 1455 in C:\wamp\www\framework\model\DataObject.php
- Source
- 1446
- 1447 if($fieldPos = strpos($remoteClass, '.')) {
- 1448 return substr($remoteClass, $fieldPos + 1) . 'ID';
- 1449 }
- 1450
- 1451 $remoteRelations = array_flip(Config::inst()->get($remoteClass, 'has_one'));
- 1452
- 1453 // look for remote has_one joins on this class or any parent classes
- 1454 foreach(array_reverse(ClassInfo::ancestry($this)) as $class) {
- 1455 if(array_key_exists($class, $remoteRelations)) return $remoteRelations[$class] . 'ID';
- 1456 }
- 1457
- 1458 return 'ParentID';
- 1459 }
- 1460
- 1461 /**
- Trace
- array_key_exists(SiteTree,)
- DataObject.php:1455
- DataObject->getRemoteJoinField(Departments,has_many)
- DataObject.php:1362
- DataObject->getComponents(Departments)
- call_user_func_array(Array,Array)
- Object.php:661
- Object->__call(Departments,Array)
- StaffPage.php:18
- StaffPage->Departments()
- StaffPage.php:18
- StaffPage->getCMSFields()
- LeftAndMain.php:1025
- LeftAndMain->getEditForm(55)
- CMSMain.php:588
- CMSMain->getEditForm()
- LeftAndMain.php:1004
- LeftAndMain->EditForm()
- ViewableData.php:366
- ViewableData->obj(EditForm,,,1)
- ViewableData.php:443
- ViewableData->XML_val(EditForm,,1)
- call_user_func_array(Array,Array)
- SSViewer.php:144
- SSViewer_Scope->__call(XML_val,Array)
- SSViewer.php:490
- SSViewer_DataPresenter->__call(XML_val,Array)
- .cache.cms.templates.Includes.CMSMain_Content.ss:94
- SSViewer_DataPresenter->XML_val(EditForm,,1)
- .cache.cms.templates.Includes.CMSMain_Content.ss:94
- include(C:\Windows\Temp\silverstripe-cacheC--wamp-www\.cache.cms.templates.Includes.CMSMain_Content.ss)
- SSViewer.php:838
- SSViewer->includeGeneratedTemplate(C:\Windows\TEMP/silverstripe-cacheC--wamp-www/.cache.cms.templates.Includes.CMSMain_Content.ss,CMSPageEditController,,Array)
- SSViewer.php:910
- SSViewer->process(CMSPageEditController,)
- ViewableData.php:335
- ViewableData->renderWith(Array)
- LeftAndMain.php:612
- LeftAndMain->Content()
- ViewableData.php:366
- ViewableData->obj(Content,,,1)
- ViewableData.php:443
- ViewableData->XML_val(Content,,1)
- call_user_func_array(Array,Array)
- SSViewer.php:144
- SSViewer_Scope->__call(XML_val,Array)
- SSViewer.php:490
- SSViewer_DataPresenter->__call(XML_val,Array)
- .cache.framework.admin.templates.LeftAndMain.ss:36
- SSViewer_DataPresenter->XML_val(Content,,1)
- .cache.framework.admin.templates.LeftAndMain.ss:36
- include(C:\Windows\Temp\silverstripe-cacheC--wamp-www\.cache.framework.admin.templates.LeftAndMain.ss)
- SSViewer.php:838
- SSViewer->includeGeneratedTemplate(C:\Windows\TEMP/silverstripe-cacheC--wamp-www/.cache.framework.admin.templates.LeftAndMain.ss,CMSPageEditController,,Array)
- SSViewer.php:910
- SSViewer->process(CMSPageEditController,)
- ViewableData.php:335
- ViewableData->renderWith(SSViewer)
- LeftAndMain.php:487
- {closure}()
- call_user_func(Closure)
- PjaxResponseNegotiator.php:75
- PjaxResponseNegotiator->respond(SS_HTTPRequest)
- LeftAndMain.php:464
- LeftAndMain->show(SS_HTTPRequest)
- Controller.php:205
- Controller->handleAction(SS_HTTPRequest)
- RequestHandler.php:184
- RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
- Controller.php:153
- Controller->handleRequest(SS_HTTPRequest,DataModel)
- LeftAndMain.php:357
- LeftAndMain->handleRequest(SS_HTTPRequest,DataModel)
- AdminRootController.php:89
- AdminRootController->handleRequest(SS_HTTPRequest,DataModel)
- Director.php:296
- Director::handleRequest(SS_HTTPRequest,Session,DataModel)
- Director.php:119
- Director::direct(/admin/pages/edit/show/55,DataModel)
- main.php:126
- [Warning] array_key_exists() expects parameter 2 to be array, null given
- GET /admin/pages/edit/show/55
- Line 1455 in C:\wamp\www\framework\model\DataObject.php
- Source
- 1446
- 1447 if($fieldPos = strpos($remoteClass, '.')) {
- 1448 return substr($remoteClass, $fieldPos + 1) . 'ID';
- 1449 }
- 1450
- 1451 $remoteRelations = array_flip(Config::inst()->get($remoteClass, 'has_one'));
- 1452
- 1453 //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement