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

Frustrated with Image Gallery - help please


Go to End


6 Posts   2560 Views

Avatar
hotcode

Community Member, 13 Posts

26 June 2011 at 12:23am

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.

Avatar
hotcode

Community Member, 13 Posts

18 July 2011 at 8:55am

Anyone got a solution to this? Thanks

Avatar
dhensby

Community Member, 253 Posts

18 July 2011 at 9:15am

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

Avatar
hotcode

Community Member, 13 Posts

18 July 2011 at 9:26am

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.

Avatar
stevanovich

Community Member, 63 Posts

26 August 2011 at 3:15am

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

Avatar
Stephen

Community Member, 4 Posts

26 October 2012 at 11:43am

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.