Comments (1)
Hallo everybody,
I had the same problem...
I was working with modx revolution 2.2.13 and gallery 1.6.1
The solution was to rewrite part of code in
core/components/gallery/model/gallery/galalbum.class.php
back, like it was in previous version of gallery component.
Start at line 204 and replace next code:
/* if directory doesnt exist, create it */
if (!$mediaSource->createContainer($targetDir,'/')) {
$this->xpdo->log(xPDO::LOG_LEVEL_ERROR,'[Gallery] Could not create directory (possibly already exists?): '.$targetDir);
}
to:
/* if directory doesnt exist, create it */
if (!$this->ensurePathExists()) {
$this->xpdo->log(xPDO::LOG_LEVEL_ERROR,'[Gallery] Could not create directory: '.$targetDir);
return $fileName;
}
if (!$this->isPathWritable()) {
$this->xpdo->log(xPDO::LOG_LEVEL_ERROR,'[Gallery] Could not write to directory: '.$targetDir);
return $fileName;
}
Have a nice day.
from gallery.
Related Issues (20)
- Permissions issue when uploading items to a gallery HOT 5
- web.css not being loaded with plugins
- 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.