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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Indirect modification of overloaded property


Go to End
Reply


11 Posts   2768 Views

Avatar
redactuk

Community Member, 117 Posts

7 November 2010 at 2:26pm

As I don't have any image gallery content - as I removed due to these issues - I deleted remaining image-gallery folder, and went to add a new Image Gallery page... bam up comes that error. Can't access the image gallery page or do anything with it. When I checked is any folders had been created, it had created:

image-gallery
image-gallery/NewImageGalleryPage/DefaultAlbum
new-imagegallerypage

All these set to 755 with User as (?) and Group as (?)

YET if I go to Files & Images I CAN select these folders and drill-down on them!

However these folders display in italics yet my Uploads folder is not. What does a folder name in italics signify?

Avatar
redactuk

Community Member, 117 Posts

7 November 2010 at 2:58pm

Edited: 07/11/2010 3:01pm

Found this post:

http://silverstripe.org/dataobjectmanager-module-forum/show/7010?start=184

So in DataObjectManager.php at line 664 changed:

foreach($this->parent->permissions as $perm) {

to:

$permissions = $this->parent->permissions;
foreach($permissions as $perm) {

And problem resolved!

Seems like this is something that needs fixing as post above reports this issue back in May.

Avatar
CHD

Community Member, 218 Posts

27 May 2011 at 2:01am

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

Go to Top