Task #39211
Better Error-Message if Original Images are moved
| Status: | Closed | Start date: | 2012-07-24 | |
|---|---|---|---|---|
| Priority: | Must have | Due date: | ||
| Assignee: | Michael Knoll | % Done: | 0% |
|
| Category: | - | |||
| Target version: | YAG 1.5.1 | |||
| Votes: | 0 |
Description
ATM only a brief error message is thrown, if an original file has been moved or deleted, e.g. when imported from an existing dir in fileadmin. We need a better error message, telling the user, which image is required and where it is searched, so that he can replace it.
Alternative solution: copy "image not found" image to required destination and use this as placeholder.
Anyway: Better error handling is required, as yag is no longer usable, if this problem occurs.
History
Updated by Michael Knoll 10 months ago
- Target version changed from YAG 2.0 to YAG 1.5.1
Updated by Michael Knoll 10 months ago
Way to reproduce error:
1. Create Gallery, Album, upload some images
2. Go to yag origs folder (fileadmin/yag)
3. Move or remove directory for album just created
4. The following error message occurs:
#1300205628: No result image was created. ResultImagePath: /var/www/kunden/pt_list_dev.centos.localhost/
Remind that if you delete an image, the "image-not-found" thumb is displayed correctly - so this error only occurs, if the whole directory cannot be found any more.
Updated by Michael Knoll 10 months ago
- Status changed from Accepted to Closed
Fixed in version 1.5.1
Problem was, that only if image was missing, the image-not-found image was created for missing file. When directory itself had been deleted, the creation of resolution files broke due to missing directory. Now missing directory itself is created and later in there the image-not-found images are copied for missing orig files like we did before, if file was missing.
You have the chance of repairing stuff by copying orig images back into missing directory with image IDs as file names.