Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Frustrated with Image Gallery - help please

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: 1237 Views
  • hotcode
    Avatar
    Community Member
    13 Posts

    Frustrated with Image Gallery - help please Link to this post

    Hi All

    I have tested so many variations of this problem I'm having with different SS versions, older and current versions of DOM, Image Gallery and Uploadify and can't seem to find a solution.

    When my site is set in live mode and I create an image gallery page, the new page does not show until I refresh the admin area. Once refreshed, I updated the page name, made sure there was an album and tried to save the page. I get an error saving content and this error emailed to me:

    Error: Uncaught Exception: Cannot move /home/****/public_html/assets/image-gallery/New-ImageGalleryPage-2/ to /home/****/public_html/assets/image-gallery/test/
    At line 403 in /home/****/public_html/sapphire/filesystem/File.php

    My assets folder and directories under it are set to 777. The New-ImageGalleryPage-2 folder was set to 755 by default, which happens with all new gallery folders. I can update this to 777 and it sometimes works after refreshing but my clients generally don't have ftp access so cannot do this themselves.

    However, when I set the website to be in dev mode (in mysite/_config.php) I have no errors at all. I created a new page and it's permissions also set to 755 by default, but I can update the page name, add albums and photos with no issues.

    I have used SS versions: 2.4.1, 2.4.4, 2.4.5
    And DOM, Image Gallery and Uploadify verisons: r404, r504, r538. Generally they are all the same release.
    I've also tried these in Firefox 3.x, 4.x and Chrome (I hate IE) - what browser I use makes no difference to the error.

    If anyone can help me it would be greatly appreciated. Happy to test further stuff as well to find a solution.

  • hotcode
    Avatar
    Community Member
    13 Posts

    Re: Frustrated with Image Gallery - help please Link to this post

    Anyone got a solution to this? Thanks

  • Pigeon
    Avatar
    Community Member
    243 Posts

    Re: Frustrated with Image Gallery - help please Link to this post

    I've never heard of anything like this. I'd ask your hosting provider and also check it meets all the requirements of SS.

  • hotcode
    Avatar
    Community Member
    13 Posts

    Re: Frustrated with Image Gallery - help please Link to this post

    I run my own server with over 30 SS sites on it, and never had a problem with the image gallery until I upgraded to using 2.4.x, the sites still on 2.3.x still work perfectly fine.

    I have a hack workaround for the meantime, just would like a better answer.

  • stevanovich
    Avatar
    Community Member
    59 Posts

    Re: Frustrated with Image Gallery - help please Link to this post

    I am having a similar issue did you find the answer to this problem.

  • Stephen
    Avatar
    Community Member
    4 Posts

    Re: Frustrated with Image Gallery - help please Link to this post

    I know this is a stale post but we've just been having similar issues with image gallery (in SS 2.4).

    Solution 1 - upgrade to latest DataObjectManager (which fixed a few other occasional glitches too)

    Odd work-aroundable issue - when adding already uploaded images with "Choose existing", pick the files, import, it comes up with the sub-folder name as a file to include. If you continue on you'll get nasty errors about trying to treat folders as files.
    But the work-around is to Detach it before continuing then everything is fine.

    1237 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.