You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Single image uploads do not work, I get an entry in the database tables but no file and no folder is created in assets/components/gallery/files/
If I upload a zip, the directories will be created, images will get placed in the directories and now multi-upload will work, but single image uploads still do not.
Also uploading a cover will create the gallery directory.
Modx 2.2.12, centos 5
The text was updated successfully, but these errors were encountered:
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;
}
Single image uploads do not work, I get an entry in the database tables but no file and no folder is created in assets/components/gallery/files/
If I upload a zip, the directories will be created, images will get placed in the directories and now multi-upload will work, but single image uploads still do not.
Also uploading a cover will create the gallery directory.
Modx 2.2.12, centos 5
The text was updated successfully, but these errors were encountered: