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???