Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » ********** MOVED TO GITHUB *************

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 2917 Views
  • UncleCheese
    Avatar
    4085 Posts

    ********** MOVED TO GITHUB ************* Link to this post

    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

  • davidm2010
    Avatar
    Community Member
    107 Posts

    Re: ********** MOVED TO GITHUB ************* Link to this post

    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

  • davidm2010
    Avatar
    Community Member
    107 Posts

    Re: ********** MOVED TO GITHUB ************* Link to this post

    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

  • davidm2010
    Avatar
    Community Member
    107 Posts

    Re: ********** MOVED TO GITHUB ************* Link to this post

    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.

  • CHD
    Avatar
    Community Member
    218 Posts

    Re: ********** MOVED TO GITHUB ************* Link to this post

    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?!

  • _Vince
    Avatar
    Community Member
    161 Posts

    Re: ********** MOVED TO GITHUB ************* Link to this post

    Having the same problem as davidm2010, on Firefox

  • BlueO
    Avatar
    Community Member
    52 Posts

    Re: ********** MOVED TO GITHUB ************* Link to this post

    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

    2917 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.