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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

********** MOVED TO GITHUB *************


Go to End


7 Posts   6950 Views

Avatar
UncleCheese

Forum Moderator, 4102 Posts

7 March 2011 at 1:26pm

Hi, Folks,

Well, after a lot of persuasion, argumentation, and even some duress, I have capitulated to the forces compelling me to move to GitHub. I will NO LONGER be maintaining the SVN branches of my code. Please use the new Git checkouts:

git://github.com/unclecheese/DataObjectManager.git
git://github.com/unclecheese/ImageGallery.git
git://github.com/unclecheese/EventCalendar.git
git://github.com/unclecheese/Uploadify.git
git://github.com/unclecheese/Postale.git

Avatar
davidm2010

Community Member, 107 Posts

16 March 2011 at 5:07am

Cheese Meister,

Are all of the latest code Releases in GITHub stable on 2.4.5? I am trying to get my servers stable. I have had some problems with Image Gallary and Files and Images. Not sure where the issues are, so I want to make sure I have stable code deployed.

Seems like when I import from an existing file to Image Gallery, the system behaves irratic but I can't pin down the issue. When I click on Files and Images, it throws me to an error page. Before I start troubleshooting, I want to make sure all of the code is at the correct level.

Thanks,

DM

Avatar
davidm2010

Community Member, 107 Posts

16 March 2011 at 7:05am

Edited: 16/03/2011 7:08am

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

Avatar
davidm2010

Community Member, 107 Posts

18 March 2011 at 2:56pm

Looks like this issue only happens in IE8 in the CMS. Is there a way to correct this? I do not have an issue in Firefox.

Avatar
CHD

Community Member, 219 Posts

27 May 2011 at 1:58am

im having a mare with the latest version of image_gallery and ss 2.4.5
it all works fine locally, but as soon as i upload i have problems.

clicking "create image gallery page" does nothing. (emails an error to me saying: Error: Uncaught Exception: Cannot move /var/www/vhosts/cafemusicstudios.com/httpdocs/assets/image-gallery/NewImageGalleryPage-8/ to /var/www/vhosts/cafemusicstudios.com/httpdocs/assets/image-gallery/NewImageGalleryPage-10/
At line 422 in /var/www/vhosts/cafemusicstudios.com/httpdocs/sapphire/filesystem/File.php )
if i refresh, the page appears, but if i try and upload an image it throws up a server error. and emails me a very similar error message to the one above.

looks like permission issues with image_gallery creating directories?
but my whole assets directory is 777.
AND ive even tried manually creating the directories myself and giving them all 777 but it still fails.

any help?!

Avatar
_Vince

Community Member, 165 Posts

8 June 2011 at 9:48pm

Having the same problem as davidm2010, on Firefox

Avatar
BlueO

Community Member, 52 Posts

20 February 2012 at 5:43pm

Hi there,

We're using svn but would like to use your github as a svn external -which is something that github supports I believe (svn access to a github repository) so i've setup the external in tortoisesvn to point to https://github.com/unclecheese/DataObjectManager/trunk and all seems to work ok until the end where it flicks up a error message saying 'repository permanently moved to https://github.com/unclecheese/DataObjectManager/trunk' is it possible to work around this?

cheers

Bernard