I've used this script on multiple sites with no problems, but setup a new site I'm working on and I'm getting errors.
[Notice] Trying to get property of non-object
POST /admin/EditForm/field/GalleryItems/UploadifyForm?SecurityID=cd5e68cc288b37ecdc6847690cae985094084cd1&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_2&ctf[GalleryItems][view]=grid&ctf[GalleryItems][imagesize]=100
& line 418 is the highlighted in red error in FileDataObjectManager.php:
$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;
Using the latest version of everything including SS. Using uploadify.
I can create the imagegallery page type, but when I upload errors, they're all broken. Also, the link to the test album I setup throws a 404 error. The link is domain.com/photos/album/26
Any ideas?