Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Indirect modification of overloaded property

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2
Go to End
Author Topic: 2330 Views
  • redactuk
    Avatar
    Community Member
    115 Posts

    Re: Indirect modification of overloaded property Link to this post

    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?

  • redactuk
    Avatar
    Community Member
    115 Posts

    Re: Indirect modification of overloaded property Link to this post

    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.

  • CHD
    Avatar
    Community Member
    217 Posts

    Re: Indirect modification of overloaded property 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?!

    2330 Views
Page: 1 2
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.