I installed the gallery2-latest.zip downloaded on Jan 7 at 16:35 EST. The installation went fine, album and sub-album creation was without a hitch. I added some photos "from a website" and that worked fine.
The problems started when I used the "upload from server" option. I added the server path to the admin configuration and then used the server upload option.
After a few seconds or more, I was faced with the following error:
===
Error (ERROR_PLATFORM_FAILURE)
in modules/core/classes/GalleryDataItem.class at line 176 (gallerystatus::error)
in modules/core/classes/GalleryPhotoItem.class at line 123 (gallerydataitem::create)
in modules/core/classes/GalleryItemHelper.class at line 450 (galleryphotoitem::create)
in modules/core/ItemAddChildren.inc at line 134 (galleryitemhelper::additemtoalbum)
in main.php at line 146 (itemaddchildrencontroller::handlerequest)
in main.php at line 24
===
I then tried to browse the gallery which was previously working fine. I can no longer browse the album I was importing to as the following error occurs when I try:
===
Error (ERROR_TOOLKIT_FAILURE)
in modules/imagemagick/classes/ImageMagickToolkit.class at line 260 (gallerystatus::error)
in modules/imagemagick/classes/ImageMagickToolkit.class at line 120 (imagemagicktoolkit::_transformimage)
in modules/core/classes/GalleryDerivative.class at line 522 (imagemagicktoolkit::performoperation)
in modules/core/classes/GalleryDerivativeImage.class at line 169 (galleryderivative::rebuildcache)
in modules/core/classes/GalleryDerivativeHelper.class at line 561 (galleryderivativeimage::rebuildcache)
in modules/core/classes/GalleryDerivativeHelper.class at line 495 (galleryderivativehelper::rebuildcache)
in layouts/matrix/layout.inc at line 276 (galleryderivativehelper::rebuildcacheifnotcurrent)
in layouts/matrix/layout.inc at line 124 (matrixlayout::_loadalbumtemplate)
in modules/core/ShowItem.inc at line 98 (matrixlayout::loadtemplate)
in modules/core/classes/GalleryView.class at line 205 (showitemview::loadtemplate)
in main.php at line 259 (showitemview::doloadtemplate)
in main.php at line 24
===
What happened and what can I delete or modify to restore it to a working state?
Posts: 16
I got the album working again by deleting the item from the data directory and deleting all the mysql data associated with the item's g_id.
At least you know the error exists. I'll try the import from server option again in a different album and see if the error occurs again.
Posts: 16
Update: It appears that this blow up was caused by the data path's drive becoming full (no space left).
After deleting everything and reinstalling G2 with a data path of larger size, uploading from a server directory now works flawlessly.
However, G2 should be more informational (e.g. a better error message) when the destination or temp drive becomes full. G2 should also have some method of recovery, regeneration or deletion of records pertaining to the missing data when space is made available again.
Posts: 7994
I agree that we should make our error messages better. However, I don't think that there is a good, platform neutral way for us to detect when you're out of disk space. Also, I suspect that G2 would have recovered nicely if you had given it more disk space before deleting everything. It is certainly designed to be somewhat robust in the face of that situation.
I don't easily have a way to reproduce that situation, but if anybody else would like to try it out (let G2 run out of disk space in the middle of an upload, then give it more disk space and see if it recovers) please let me know.
Posts: 7
i had this same problem as well. users were using the zip module to compress and download 2000+ images and they would not auto delete from the server. I removed the cart/zip modules thereafter.