Jump to:

5452 Posts in 1673 Topics by 1197 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Image Upload not working with security group

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

Page: 1 2 3 4 5
Go to End
Author Topic: 7045 Views
  • dendeffe
    Avatar
    Community Member
    135 Posts

    Re: Image Upload not working with security group Link to this post

    I'm getting

    parent is null
    [Break on this error] parent.document.getElementById('sitet...gName('a')[0].className += ' contents';\n

    UploadForm (rule 9)

    In the FireBug Console. Don't see any problems in the Net tab.

  • DsX
    Avatar
    Community Member
    178 Posts

    Re: Image Upload not working with security group Link to this post

    Just adding that I have the same problem running 2.3.5
    No problems as admin, but no luck for all cms features. (even declaring them separately)

  • cardinale
    Avatar
    Community Member
    23 Posts

    Re: Image Upload not working with security group Link to this post

    Just adding that I have the same problem running 2.3.6
    No problems on my local MAMP and No problems as admin, but no luck for all other group members.

  • Double-A-Ron
    Avatar
    Community Member
    603 Posts

    Re: Image Upload not working with security group Link to this post

    We are having the exact same issue as of today on 2.3.3.

    We just updated both PHP and Apache today, with a couple of extensions added for each (including mod_security).

    Most definately a server issue based on that.

    I'm going to try disabling some of the changes that were made in hope of finding the culprit.

    A

  • Double-A-Ron
    Avatar
    Community Member
    603 Posts

    Re: Image Upload not working with security group Link to this post

    Hi all,

    I have recompiled with mod_security2 omitted. No change in behavior. I can easily role back to my last configuration, but I'd rather find the issue, so I'm still back tracking.

    Can anyone still having this issue tell me what version of PHP and Apache you are running? We're on PHP 5.2.13 and Apache 2.2.15. This is the major change in the config from what was working a few days ago (PHP 5.2.6 and Apache 2.0.x)

    It be good for the SS team to know about any incompatibility issues.

    Cheers
    Aaron

  • cardinale
    Avatar
    Community Member
    23 Posts

    Re: Image Upload not working with security group Link to this post

    Hello,
    I'm on PHP Version 5.2.12-nmm1 and Apache 2.2 and still the same problem in cms and assets. But I have no problems to upload files in modeladmin.

  • Double-A-Ron
    Avatar
    Community Member
    603 Posts

    Re: Image Upload not working with security group Link to this post

    I've tracked the issue (on my setup anyway).

    PHP open_basedir was the problem for me and there have been issues with this setting in the past (check the forum search). But I think those issues have been largely at the installation stage. So this may only be a case of the environment changing post installation for all of us. I also thought that open_basedir problems were weeded out in 2.1.

    Kinda makes sense tho. Uploaded files are put into the tmp folder during upload, then moved to their desired location when done. This tmp is sometimes out of the root directory, so the move fails because the script does not have access to that dir.

    The fix for this has usually been to make a "tmp" folder in the site root and giving it 777 permissions. I tried this with open_basedir turned on but no luck (probably the first port of call for everyone on shared hosting here). I had to disable open_basedir for now. (I have control over the whole server)

    Will be enabling the other stuff I disabled in tracking this down first, to make sure it's not a compound issue. So if anyone knows a fix to the open_basedir problem, fire away. Leaving it off is not a solution.

    Aaron

  • BamBam
    Avatar
    Community Member
    1 Post

    Re: Image Upload not working with security group Link to this post

    Hi Everyone,

    I can confirm that open_basedir fix this problem. It is the only config option I changed and it is now working.

    7045 Views
Page: 1 2 3 4 5
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.