Forums / General / Warning in ezimagealiashandler.php

Warning in ezimagealiashandler.php

Author Message

John Smith

Friday 23 July 2010 3:45:19 am

I am getting the following warning message in the debug:

unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 241 of 730 bytes in /var/www/XXXXX/XXXX/XXX/XXXX/kernel/classes/datatypes/ezimage/ezimagealiashandler.php on line 1035

The code I checked is:

else if ( $childName == 'serialized' )
{
    $name = $child->getAttribute( 'name' );
    $data = $child->getAttribute( 'data' );
    $imageInformation[$name] = unserialize( $data );
}

After I changed the code to the following it disappeared......

else if ( $childName == 'serialized' )
{
    $name = $child->getAttribute( 'name' );
    $data = $child->getAttribute( 'data' );
    $imageInformation[$name] = @unserialize( $data );
}

Have anybody else noticed the same????

André R.

Friday 23 July 2010 4:45:10 am

There seesm to be something in $data that is not unserializable, might be something in your image EXIF data that causes this. could you post content of $data or at least content around offset ~241 in it?

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

John Smith

Friday 23 July 2010 5:42:29 am

<serialized name="ifd0" data="a:12:{s:4:&quot;Make&quot;;s:5:&quot;Canon&quot;;s:5:&quot;Model&quot;;s:21:&quot;Canon DIGITAL IXUS 40&quot;;s:11:&quot;XResolution&quot;;s:5:&quot;180/1&quot;;s:11:&quot;YResolution&quot;;s:5:&quot;180/1&quot;;s:14:&quot;ResolutionUnit&quot;;i:2;s:8:&quot;DateTime&quot;;s:19:&quot;2008:11:07 21:17:35&quot;;s:10:&quot;WhitePoint&quot;;a:2:{i:0;s:9:&quot;0/1000000&quot;;i:1;s:9:&quot;0/1000000&quot;;}s:21:&quot;PrimaryChromaticities&quot;;a:6:{i:0;s:9:&quot;0/1000000&quot;;i:1;s:9:&quot;0/1000000&quot;;i:2;s:9:&quot;0/1000000&quot;;i:3;s:9:&quot;0/1000000&quot;;i:4;s:9:&quot;0/1000000&quot;;i:5;s:9:&quot;0/1000000&quot;;}s:17:&quot;YCbCrCoefficients&quot;;a:3:{i:0;s:9:&quot;0/1000000&quot;;i:1;s:9:&quot;0/1000000&quot;;i:2;s:9:&quot;0/1000000&quot;;}s:16:&quot;YCbCrPositioning&quot;;i:1;s:19:&quot;ReferenceBlackWhite&quot;;a:6:{i:0;s:9:&quot;0/1000000&quot;;i:1;s:9:&quot;0/1000000&quot;;i:2;s:9:&quot;0/1000000&quot;;i:3;s:9:&quot;0/1000000&quot;;i:4;s:9:&quot;0/1000000&quot;;i:5;s:9:&quot;0/1000000&quot;;}s:16:&quot;Exif_IFD_Pointer&quot;;i:358;}"/><serialized name="exif" data="a:31:{s:12:&quot;ExposureTime&quot;;s:13:&quot;16667/1000000&quot;;s:7:&quot;FNumber&quot;;s:15:&quot;4000000/1000000&quot;;s:15:&quot;ExposureProgram&quot;;i:0;s:15:&quot;ISOSpeedRatings&quot;;a:2:{i:0;i:752;i:1;i:0;}s:11:&quot;ExifVersion&quot;;s:4:&quot;0220&quot;;s:16:&quot;DateTimeOriginal&quot;;s:19:&quot;2008:11:07 21:17:35&quot;;s:17:&quot;DateTimeDigitized&quot;;s:19:&quot;2008:11:07 21:17:35&quot;;s:22:&quot;CompressedBitsPerPixel&quot;;s:15:&quot;5000000/1000000&quot;;s:17:&quot;ShutterSpeedValue&quot;;s:15:&quot;5906250/1000000&quot;;s:13:&quot;ApertureValue&quot;;s:15:&quot;4000000/1000000&quot;;s:15:&quot;BrightnessValue&quot;;s:9:&quot;0/1000000&quot;;s:17:&quot;ExposureBiasValue&quot;;s:9:&quot;0/1000000&quot;;s:16:&quot;MaxApertureValue&quot;;s:15:&quot;4000000/1000000&quot;;s:15:&quot;SubjectDistance&quot;;s:9:&quot;0/1000000&quot;;s:12:&quot;MeteringMode&quot;;i:5;s:11:&quot;LightSource&quot;;i:0;s:5:&quot;Flash&quot;;i:25;s:11:&quot;FocalLength&quot;;s:16:&quot;12120000/1000000&quot;;s:9:&quot;MakerNote&quot;;s:1155:&quot;"/>

Hope this makes sense... I am using 4.01.

Cheers,

John Smith

Tuesday 03 August 2010 4:59:03 am

Anyone Please???

eZ debug

Timing: Jan 18 2025 10:27:57
Script start
Timing: Jan 18 2025 10:27:58
Module start 'content'
Timing: Jan 18 2025 10:27:58
Module end 'content'
Timing: Jan 18 2025 10:27:58
Script end

Main resources:

Total runtime0.5758 sec
Peak memory usage4,096.0000 KB
Database Queries61

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0088 587.7109180.8359
Module start 'content' 0.00880.5642 768.5469559.0703
Module end 'content' 0.57300.0028 1,327.617246.1016
Script end 0.5758  1,373.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5721140.0002
Check MTime0.00130.2341140.0001
Mysql Total
Database connection0.00180.318310.0018
Mysqli_queries0.532292.4184610.0087
Looping result0.00060.1092590.0000
Template Total0.545394.720.2726
Template load0.00240.414020.0012
Template processing0.542994.276220.2714
Template load and register function0.00020.029710.0002
states
state_id_array0.00100.181510.0010
state_identifier_array0.00070.126420.0004
Override
Cache load0.00190.3344190.0001
Sytem overhead
Fetch class attribute can translate value0.00050.093320.0003
Fetch class attribute name0.00110.185750.0002
XML
Image XML parsing0.00080.136020.0004
class_abstraction
Instantiating content class attribute0.00000.001950.0000
General
dbfile0.00090.1545190.0000
String conversion0.00000.001430.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs