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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Eveywhere I have DataObjectManager I get "[Notice] Undefined index: start" on edit


Reply


573 Views

Avatar
otherjohn

Community Member, 125 Posts

15 July 2011 at 5:54am

Edited: 15/07/2011 5:56am

Ok, this is really getting frustrating as I have run into a snowball of problems here.

When I go to edit any record in my admin that is part of DataObjectManger i get the "Undefined index: start" Error.

It occures with anytime I use ImageDataObjectManager or FileDataObjectManager

[Notice] Undefined index: start
GET /admin/EditForm/field/Slides/item/26?SecurityID=3d231736ed526294fb90745d1094452dfbffce7f/edit?ctf[Slides][start]=0&ctf[Slides][per_page]=10&ctf[Slides][showall]=0&ctf[Slides][sort]=SortOrder&ctf[Slides][sort_dir]=&ctf[Slides][search]=&ctf[Slides][filter]=&ctf[Slides][view]=grid&ctf[Slides][imagesize]=100

Line 139 in /home/../public/dataobject_manager/code/DataObjectManager.php
Source

130        $this->sort_dir = trim($dir);
131        }
132        else {
133        $this->sort = $this->sourceSort;
134        $this->sort_dir = "ASC";
135        }
136       }
137
138       if(isset($_REQUEST['ctf'][$this->Name()])) {
139          $this->start = $_REQUEST['ctf'][$this->Name()]['start'];
140          $this->per_page = $_REQUEST['ctf'][$this->Name()]['per_page'];
141          $this->showAll = $_REQUEST['ctf'][$this->Name()]['showall'];
142          $this->search = $_REQUEST['ctf'][$this->Name()]['search'];
143          $this->filter = $_REQUEST['ctf'][$this->Name()]['filter'];         
144          $this->sort = $_REQUEST['ctf'][$this->Name()]['sort'];
145          $this->sort_dir = $_REQUEST['ctf'][$this->Name()]['sort_dir'];

Trace

DataObjectManager->__construct(HomePage,Slides,Slide,Array,getCMSFields_forPopup,,,)
Line 48 of FileDataObjectManager.php
FileDataObjectManager->__construct(HomePage,Slides,Slide,SlideImage,Array,getCMSFields_forPopup,,,)
Line 23 of ImageDataObjectManager.php
ImageDataObjectManager->__construct(HomePage,Slides,Slide,SlideImage,Array,getCMSFields_forPopup)
Line 24 of HomePage.php
HomePage->getCMSFields(CMSMain)
Line 441 of CMSMain.php
CMSMain->getEditForm(1)
Line 1039 of LeftAndMain.php
LeftAndMain->EditForm(SS_HTTPRequest)
Line 193 of Controller.php
Controller->handleAction(SS_HTTPRequest)
Line 143 of RequestHandler.php
RequestHandler->handleRequest(SS_HTTPRequest)
Line 147 of Controller.php
Controller->handleRequest(SS_HTTPRequest)
Line 282 of Director.php
Director::handleRequest(SS_HTTPRequest,Session)
Line 125 of Director.php
Director::direct(/admin/EditForm/field/Slides/item/26)
Line 127 of main.php