Git Product home page Git Product logo

Comments (5)

jpdevries avatar jpdevries commented on July 29, 2024

Hm, This sounds like an issue related to your environment. Whatever user php is running as needs read/write to assets/*.

JP DeVries
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Thursday, March 13, 2014 at 12:22 AM, simonp98 wrote:

I have an issue that I am struggling to solve. This may not be a bug with Gallery itself, but I am all out of ideas so am turning here for help.
I am developing locally on OSX Lion (10.7.5) using Zend Server CE with PHP 5.3.9
In order for Gallery to create a directory for a gallery I need to set permissions on my site root directory to 777. If I don't then not directory is created in assets/gallery with the following error.
(ERROR @ /assets/components/gallery/connector.php) [Gallery] Could not create directory (possibly already exists?): assets/gallery/3/
The directory doesn't exist. Its just that the call to createContainer() from galalbum.class.php is returning false as it tests the site root directory for read/write permissions rather than the assets or gallery directory. My thoughts are that I have an erroneous setting somewhere, but cannot find it. I am using the default system settings for Gallery.
Any help would be appreciated. Thanks in advance


Reply to this email directly or view it on GitHub (#279).

from gallery.

simonp98 avatar simonp98 commented on July 29, 2024

Thanks for the quick response. I'm a bit naive where detailed permissions are involved. PHP runs as daemon on my machine. assets is set to 777, is owned by me (as are most directories including the root of the dev site). I did change the ownership of the root directory and assets to daemon and it made no difference?

from gallery.

jpdevries avatar jpdevries commented on July 29, 2024

If MODX is running correctly, I'd take a look what the permissions are of the core/cache files it creates. 777 shouldn't hurt you locally, but certainty don't want to have to do that in an actual environment.
We use MODX Cloud to help tests things like this and try and reproduce issues. let me know if you'd like access to a Manager to try and reproduce this issue.

from gallery.

simonp98 avatar simonp98 commented on July 29, 2024

Yes your right. I've just compared the cache premissions and changed owner/group on the root to daemon/staff, set permissions to 755 and everything appears to work. Thank you very much for your help.

from gallery.

lithiumlab avatar lithiumlab commented on July 29, 2024

I'm getting this warning in the console every time a file gets uploaded.

[Gallery] Could not create directory (possibly already exists?): assets/gallery/5/

The files are being uploaded correctly, folder created and thumbs generated.
But this error keeps coming.

I'm using windows server 2008 r2
How do i make sure what is the user being used by the php process?

from gallery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.