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
If I have some images in album then upload new zip archive with images, old images are being reindexed and renamed (filenames too). Cache is not been cleared so you can see not existing images in album as existing until clear thumb cache.
The text was updated successfully, but these errors were encountered:
I think the problem is that import script unpacks zip file into album directory. I've fixed it this way:
0) create folder called 'zip' in assets/components/gallery/files with access rights 777
create variable for unpack directory in core/components/gallery/model/gallery/import/galzipimport.class.php protected $unpackDir;
set this variable in the beginning of function run() $this->unpackDir = $this->modx->getOption('gallery.files_path').'zip/';
use this variable when iterating over unzipped files foreach (new DirectoryIterator($this->unpackDir) as $dir)
use it for unzipping in function unpack()
$archive->unpack($this->unpackDir)
and it all started working as expected.
If I have some images in album then upload new zip archive with images, old images are being reindexed and renamed (filenames too). Cache is not been cleared so you can see not existing images in album as existing until clear thumb cache.
The text was updated successfully, but these errors were encountered: