Forums / General / Warning in ezimagealiashandler.php
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
Friday 23 July 2010 5:42:29 am
<serialized name="ifd0" data="a:12:{s:4:"Make";s:5:"Canon";s:5:"Model";s:21:"Canon DIGITAL IXUS 40";s:11:"XResolution";s:5:"180/1";s:11:"YResolution";s:5:"180/1";s:14:"ResolutionUnit";i:2;s:8:"DateTime";s:19:"2008:11:07 21:17:35";s:10:"WhitePoint";a:2:{i:0;s:9:"0/1000000";i:1;s:9:"0/1000000";}s:21:"PrimaryChromaticities";a:6:{i:0;s:9:"0/1000000";i:1;s:9:"0/1000000";i:2;s:9:"0/1000000";i:3;s:9:"0/1000000";i:4;s:9:"0/1000000";i:5;s:9:"0/1000000";}s:17:"YCbCrCoefficients";a:3:{i:0;s:9:"0/1000000";i:1;s:9:"0/1000000";i:2;s:9:"0/1000000";}s:16:"YCbCrPositioning";i:1;s:19:"ReferenceBlackWhite";a:6:{i:0;s:9:"0/1000000";i:1;s:9:"0/1000000";i:2;s:9:"0/1000000";i:3;s:9:"0/1000000";i:4;s:9:"0/1000000";i:5;s:9:"0/1000000";}s:16:"Exif_IFD_Pointer";i:358;}"/><serialized name="exif" data="a:31:{s:12:"ExposureTime";s:13:"16667/1000000";s:7:"FNumber";s:15:"4000000/1000000";s:15:"ExposureProgram";i:0;s:15:"ISOSpeedRatings";a:2:{i:0;i:752;i:1;i:0;}s:11:"ExifVersion";s:4:"0220";s:16:"DateTimeOriginal";s:19:"2008:11:07 21:17:35";s:17:"DateTimeDigitized";s:19:"2008:11:07 21:17:35";s:22:"CompressedBitsPerPixel";s:15:"5000000/1000000";s:17:"ShutterSpeedValue";s:15:"5906250/1000000";s:13:"ApertureValue";s:15:"4000000/1000000";s:15:"BrightnessValue";s:9:"0/1000000";s:17:"ExposureBiasValue";s:9:"0/1000000";s:16:"MaxApertureValue";s:15:"4000000/1000000";s:15:"SubjectDistance";s:9:"0/1000000";s:12:"MeteringMode";i:5;s:11:"LightSource";i:0;s:5:"Flash";i:25;s:11:"FocalLength";s:16:"12120000/1000000";s:9:"MakerNote";s:1155:""/>
Hope this makes sense... I am using 4.01.
Cheers,
Tuesday 03 August 2010 4:59:03 am
Anyone Please???