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

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 30 2025 16:38:14
Script start
Timing: Jan 30 2025 16:38:14
Module start 'layout'
Timing: Jan 30 2025 16:38:14
Module start 'content'
Timing: Jan 30 2025 16:38:15
Module end 'content'
Timing: Jan 30 2025 16:38:15
Script end

Main resources:

Total runtime1.1884 sec
Peak memory usage8,192.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.1328151.2109
Module start 'layout' 0.00580.0045 739.3438220.6875
Module start 'content' 0.01031.1773 960.03134,461.4531
Module end 'content' 1.18760.0008 5,421.484415.8438
Script end 1.1884  5,437.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2995160.0002
Check MTime0.00130.1120160.0001
Mysql Total
Database connection0.00060.046910.0006
Mysqli_queries1.102492.7643600.0184
Looping result0.00060.0478580.0000
Template Total1.125294.720.5626
Template load0.00200.166720.0010
Template processing1.123294.517020.5616
Template load and register function0.00140.115610.0014
states
state_id_array0.00430.366010.0043
state_identifier_array0.00210.180720.0011
Override
Cache load0.00160.1386190.0001
Sytem overhead
Fetch class attribute can translate value0.00190.159420.0009
Fetch class attribute name0.00230.190150.0005
XML
Image XML parsing0.00210.180120.0011
class_abstraction
Instantiating content class attribute0.00000.000850.0000
General
dbfile0.00470.3927170.0003
String conversion0.00000.000740.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
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