Here is what I received upon loading the image gallery and adding an Album.
[Notice] Trying to get property of non-object
POST /silverstripe/admin/EditForm/field/GalleryItems/UploadifyForm?SecurityID=b788f4e069297ade645acfda4b0e88e36fec4450&ctf[GalleryItems][start]=0&ctf[GalleryItems][per_page]=10&ctf[GalleryItems][showall]=0&ctf[GalleryItems][sort]=SortOrder&ctf[GalleryItems][sort_dir]=&ctf[GalleryItems][search]=&ctf[GalleryItems][filter]=AlbumID_10&ctf[GalleryItems][view]=grid&ctf[GalleryItems][imagesize]=100
Line 418 in C:\Inetpub\wwwroot\silverstripe\dataobject_manager\code\FileDataObjectManager.php
Source
409 $file_class = $this->fileClassName;
410 $do_class = $this->sourceClass();
411 $idxfield = $this->fileFieldName."ID";
412 $fff = $this->fileFieldName;
413 $dataobject_ids = array();
414 if($this->hasDataObject) {
415 foreach($data['UploadedFiles'] as $id) {
416 if($file = DataObject::get_by_id("File", (int) $id)) {
417 $upload_folder = $form->Fields()->fieldByName('UploadedFiles')->uploadFolder;
418 $folder_id = Folder::findOrMake($upload_folder)->ID;
419 if($file->ParentID != $folder_id) {
420 $new_file_path = $this->uploadFolder.'/'.$file->Name;
421 copy($file->getFullPath(), BASE_PATH.'/'.ASSETS_DIR.'/'.$new_file_path);
422 $clone = new $file_class();
423 $clone->Filename = $new_file_path;
424 $clone->ParentID = $folder_id;
Trace
•FileDataObjectManager->saveUploadifyForm(Array,ImageGalleryManager_Popup,SS_HTTPRequest)
Line 329 of Form.php
•Form->httpSubmission(SS_HTTPRequest)
Line 143 of RequestHandler.php
•RequestHandler->handleRequest(SS_HTTPRequest)
Line 161 of RequestHandler.php
•RequestHandler->handleRequest(SS_HTTPRequest)
Line 161 of RequestHandler.php
•RequestHandler->handleRequest(SS_HTTPRequest)
Line 161 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/GalleryItems/UploadifyForm)
Line 127 of main.php