Comments (5)
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.
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.
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.
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.
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)
- web.css not being loaded with plugins
- Single image uploads do not work, .zip uploads do HOT 1
- GalleryTV Error on I/O modifier:!empty
- &sort=`rand` Random first time only with &limit applied
- Modx 2.3 Compatibility HOT 7
- &limit=''
- Gallery images do not display HOT 2
- Gallery - update an existing Album
- Fuzzy Search
- Upload error on some server configuration
- Add new field for gallery items
- Thumbs issue with modx in subdirectory HOT 1
- Manager login/logout trouble when "anonymous_sessions" = 0 in Modx 2.5.0-pl HOT 2
- album cover - the path is duplicated
- Gallery Snippet undefined offset at line 114
- Gallery media source and normal MODX image tv HOT 1
- [Package Update] Preserved Older Versions getting Huge beause Cache is Included
- Hi everybody, I'm need help - gallery path to subdomain
- Revolution 3.0.0-alpha1: not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gallery.