Forums / Developer / Image upload bug - ezimage datatype code mess?

Image upload bug - ezimage datatype code mess?

Author Message

Denitsa M.

Tuesday 17 November 2009 8:54:42 am

Hi,

in most recent testing and debug we found that the latest stable base version for 4.1 with changes into ezimage datatype codes is causing images not to be uploaded/viewed correctly in public or adm site. The removed code in storeObjectAttribute() method in ezimagetype script created a bug here and no images can be uploaded correctly and under the correct path in storage unless we put back this piece of code (without reverting the other changes in script). The latest code caused OE, ezmultiupload and common publish of images not to function properly( returning "Original alias not found, other aliases cannot be created without it" error ), and the images uploaded were placed not under storage/images, but under storage/images-versioned and because of it - not considered published.

Is this a real bug, or has something to do with settings, or anything else ..? Another fix besides putting back the old code into storeObjectAttribute() method?

Thanks

Deni

Iguana IT - http://www.iguanait.com

Francisca Hernández

Thursday 19 November 2009 2:46:26 am

Hi,

The problem came with this change http://lists.ez.no/pipermail/sdk-svn/2009-October/018413.html in 4.1 and 4.2. this only happens when you upload images from OE (last stable version). We can see that upload calls storeObjectAttribute() not fetchObjectAttributeHTTPInput()

Does anyone have the same problem? we want to rule out a bug so that we keep looking into the error in any of our modifications or settings

We have been looking for this problem for days, any help will be really appreciated.

Thanks in advance.

Francisca

Iguana IT, SL - http://www.iguanait.com

Mads Ovesen

Thursday 29 April 2010 6:52:42 am

Hi,

Im experiencing this problem in 4.3, and I can see the storeObjectAttribute function for the image datatype is empty. Why is it empty? Is it a bug, and are there any fixes for it? I have tried to copy the contents of this function from v 4.1, and then it vorks correctly, so it seems to me, that it is a bug.

mvh Mads

/m

eZ debug

Timing: Jan 17 2025 23:49:07
Script start
Timing: Jan 17 2025 23:49:07
Module start 'content'
Timing: Jan 17 2025 23:49:07
Module end 'content'
Timing: Jan 17 2025 23:49:08
Script end

Main resources:

Total runtime0.8008 sec
Peak memory usage4,096.0000 KB
Database Queries196

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 588.9766180.8125
Module start 'content' 0.00670.6861 769.7891568.4531
Module end 'content' 0.69280.1080 1,338.2422332.8984
Script end 0.8008  1,671.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4283210.0002
Check MTime0.00130.1612210.0001
Mysql Total
Database connection0.00160.194210.0016
Mysqli_queries0.738892.25711960.0038
Looping result0.00170.21381940.0000
Template Total0.778397.220.3891
Template load0.00180.230020.0009
Template processing0.776496.945220.3882
Template load and register function0.00010.015810.0001
states
state_id_array0.00070.093410.0007
state_identifier_array0.00060.077020.0003
Override
Cache load0.00150.1877200.0001
Sytem overhead
Fetch class attribute can translate value0.00130.162240.0003
Fetch class attribute name0.00270.336440.0007
XML
Image XML parsing0.00380.473740.0009
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00430.5308270.0002
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs