SWF file not always loading properly

Author Message

Michal Slocinski

Saturday 29 December 2007 12:58:00 pm

Hi,

My problem is that SWF files added as eZ publish objects sometimes do not load on the web page. Sometimes means in ~30% cases. I can see it in firebug extension to Firefox that only 52 of 82 kB of the file is downloaded which prevents flash player from playing it. Funny thing is that I couldn't replicate this issue with IE, it seems like only Firefox is affected. But on the other hand - there is plenty of other pages with Flash objects and I didn't notice similar problem before.

So it's pretty likely that it's not eZ publish problem but some strange mixture of Firefox + eZ publish + Apache.

I'm using default Flash class which renders itself like this:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
width="125" height="415">

<param name="movie" value="/index.php/en/content/download/75/292/logo.swf" />
<param name="quality" value="high" />
<param name="play" value="true" />
<param name="loop" value="true" />
<embed src="/index.php/en/content/download/75/292/logo.swf"
type="application/x-shockwave-flash"
quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
width="125" height="415" play="true"
loop="true" >
</embed>
</object>

Maybe you had similar experiences or some hints where to look at?

Michal

Michal Slocinski

Monday 31 December 2007 6:24:47 am

for curious - problem solved itself by restarting the browser :-) I wonder why I didn't get this idea earlier

but - what it means is that currently browsers are more like operating systems and you need to reboot every some time :-]

Piotrek Karaƛ

Monday 31 December 2007 6:35:30 am

I'd expect a browser to be consistent in its behavior, and so HTTP server. As long as I understand your problem, I would check if the browser's cache isn't trying to serve a file that it had not fully downloaded, but that's just a guess. That's why clearing the cache or restarting the browser might have helped.

But as you say, doesn't seem to be eZ related...

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

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 19 2025 03:43:07
Script start
Timing: Jan 19 2025 03:43:07
Module start 'layout'
Timing: Jan 19 2025 03:43:07
Module start 'content'
Timing: Jan 19 2025 03:43:07
Module end 'content'
Timing: Jan 19 2025 03:43:07
Script end

Main resources:

Total runtime0.6892 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 589.1563152.6250
Module start 'layout' 0.00850.0043 741.781339.4609
Module start 'content' 0.01280.6749 781.2422536.8203
Module end 'content' 0.68770.0015 1,318.062512.1563
Script end 0.6892  1,330.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4668160.0002
Check MTime0.00130.1922160.0001
Mysql Total
Database connection0.00100.151210.0010
Mysqli_queries0.636092.2772570.0112
Looping result0.00060.0909550.0000
Template Total0.653794.920.3269
Template load0.00200.283920.0010
Template processing0.651794.565220.3259
Template load and register function0.00050.079210.0005
states
state_id_array0.00080.121610.0008
state_identifier_array0.00120.167620.0006
Override
Cache load0.00160.2376300.0001
Sytem overhead
Fetch class attribute can translate value0.00050.073320.0003
Fetch class attribute name0.00250.362440.0006
XML
Image XML parsing0.00070.101720.0004
class_abstraction
Instantiating content class attribute0.00000.001740.0000
General
dbfile0.00080.1152170.0000
String conversion0.00000.001540.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs