Problem with images-versioned

Author Message

Nathan Kelly

Tuesday 05 December 2006 1:33:29 am

Hi all,

I'm setting up a forum using ez's built in forums where users "must" be allowed to attach images to forum topics and replies (the site revolves around solving problems by looking at them "visually" so it is an absolute necessity).

I'm using Daniel Beyer's method as described at:
http://ez.no/community/forum/developer/multiplefileupload_extension_discussion/re_multiplefileupload_extension_discussion__5#msg73556
To allow multiple image attachments and for the best part this works perfectly until a user decides to delete an image.

My problem is that using this method whereby I'm not placing images in the content tree any image a user attaches is stored in var/storage/images-versioned.

When I delete images from a topic or post they are removed from said topic or post, however the images still remain in the images-versioned directory. This is a major problem when it comes to disc usage as the client would like users to be able to post very large images (in excess of 3meg). So any redundant images are simply going to chew up valuable disc space very quickly and managing removed images manually is highly impractical due to the fact any user can create or remove images (How will I know which images aren't in use?).

According to this bug report: http://issues.ez.no/2874 a similar issue was fixed but in what version I don't know?

I'm currently running ez 3.7.6

Is there anything I can do to remove images from the images-versioned directory when they are removed from an object, or for that matter should they be stored elsewhere? From my understanding the images-versioned directory is used for temp images, should my images infact be stored in another directory once their parent object is published and if so how can I set this up?

This is an extremely high priority for me as I need to have my otherwise ready forums live within the next few days (or before the end of the month at the absolute latest).

Any help greatly appreciated.

Cheers!

Pardon me while I burst into flames...

Nathan Kelly

Wednesday 06 December 2006 2:15:21 pm

I still cant solve this issue, has anyone got any suggestions at all, maybe there is something I can do to patch the system?

Can I specify where these images are stored? And would it make a difference if I do?

Has anyone else ever had this problem, did you ever solve it?

Any suggestions at all would be appreciated as they might prompt me to think of something I am overlooking.

Cheers!

Pardon me while I burst into flames...

Matthew Carroll

Wednesday 06 December 2006 10:21:13 pm

Actually the bug report only says 'resolved' on the new bug system. The old one just looks like it was closed:

http://72.14.205.104/search?q=cache:www.ez.no/community/bugs/images_remain_in_images_versioned

Afraid I can't help you beyond that - I suggest you upgrade to 3.7.9 and see if the bug remains there - if so, file a report.

Actually, you may want to seriously consider upgrading to 3.8, since the 3.7 branch will no longer be supported once 3.9 is released, and that isn't far off it seems.

Matthew

http://carroll.org.uk

Nathan Kelly

Wednesday 06 December 2006 10:56:16 pm

Thanks for the reply Mat,

I'm a little sketched out about upgrading at the moment as I'm still deep in development and don't want to end up with any new bugs at this stage.

The site is live while in development and we just don't have time to deal with any new issues, but once we get the site near complete (or at least the development side near complete) we plan to backup and upgrade on a separate ip on the same server to make sure things will go as smoothly as possible. This way we can counteract any bugs etc before we do a real upgrade.

Maybe someone from eZ could tell me if there is a fix in a newer version and if it would be possible to patch 3.7.6 as a temporary solution? ;)

Cheers!

Pardon me while I burst into flames...

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:02:19
Script start
Timing: Jan 18 2025 16:02:19
Module start 'layout'
Timing: Jan 18 2025 16:02:19
Module start 'content'
Timing: Jan 18 2025 16:02:20
Module end 'content'
Timing: Jan 18 2025 16:02:20
Script end

Main resources:

Total runtime0.6849 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.9141152.6250
Module start 'layout' 0.00610.0037 740.539139.4453
Module start 'content' 0.00990.6733 779.9844557.9453
Module end 'content' 0.68320.0017 1,337.929716.1641
Script end 0.6849  1,354.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5155160.0002
Check MTime0.00140.2054160.0001
Mysql Total
Database connection0.00100.145510.0010
Mysqli_queries0.625891.3736600.0104
Looping result0.00060.0899580.0000
Template Total0.653395.420.3266
Template load0.00200.298020.0010
Template processing0.651295.075120.3256
Template load and register function0.00010.014410.0001
states
state_id_array0.00080.114910.0008
state_identifier_array0.00090.128420.0004
Override
Cache load0.00170.2553380.0000
Sytem overhead
Fetch class attribute can translate value0.00050.070020.0002
Fetch class attribute name0.00080.119160.0001
XML
Image XML parsing0.00090.127620.0004
class_abstraction
Instantiating content class attribute0.00000.002480.0000
General
dbfile0.00100.1426220.0000
String conversion0.00000.001540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs