Flash file is not found

Author Message

Bernhard Reiter

Wednesday 02 March 2005 8:04:10 am

Hi,
My problem is the following:
i have an flash class similar to the one in the demo, but then i upload an file i cant find it later. So if i trie to view it just blank white box.
The file seems to get uploaded as it is in var/storage (just has another name).
the url of the file looks something like this: /selby/content/download/95/407/ez.swf

ez version: 3.5.1

Thanks in advance

Łukasz Serwatka

Wednesday 02 March 2005 10:23:15 pm

Hi Bernhard,

Could you show part of your code used to view flash file and the output?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Bernhard Reiter

Thursday 03 March 2005 12:40:17 am

thats the important part of the flash full view template:

    <div class="content-media">
    {let attribute=$node.object.data_map.file}
        <object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
                {section show=$attribute.content.width|gt( 0 )}width="{$attribute.content.width}"{/section} {section show=$attribute.content.height|gt( 0 )}height="{$attribute.content.height}"{/section} id="objectid{$node.object.id}">

        <param name="movie" value={concat("content/download/",$attribute.contentobject_id,"/",$attribute.content.contentobject_attribute_id,"/",$attribute.content.original_filename)|ezurl} />
        <param name="quality" value="{$attribute.content.quality}" />
        <param name="play" value="{section show=$attribute.content.is_autoplay}true{/section}" />
        <param name="loop" value="{section show=$attribute.content.is_loop}true{/section}" />
        <embed src={concat("content/download/",$attribute.contentobject_id,"/",$attribute.content.contentobject_attribute_id,"/",$attribute.content.original_filename)|ezurl}
               quality="{$attribute.content.quality}" pluginspage="{$attribute.content.pluginspage}"
               {section show=$attribute.content.width|gt( 0 )}width="{$attribute.content.width}"{/section} {section show=$attribute.content.height|gt( 0 )}height="{$attribute.content.height}"{/section} play="{section show=$attribute.content.is_autoplay}true{/section}"
               loop="{section show=$attribute.content.is_loop}true{/section}" name="objectid{$node.object.id}">
        </embed>
        </object>
    {/let}
    </div>

and thats the output:

<div class="content-media">

            <object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
                  id="objectid95">

        <param name="movie" value="/selby/content/download/95/407/ez.swf" />
        <param name="quality" value="high" />
        <param name="play" value="" />
        <param name="loop" value="" />
        <embed src="/selby/content/download/95/407/ez.swf"
               quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
                 play=""
               loop="" name="objectid95">
        </embed>
        </object>

        </div>

Łukasz Serwatka

Thursday 03 March 2005 1:09:49 am

This code should work. I hope ;-)

    {let attribute=$node.object.data_map.file}
<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" 
		{section show=$attribute.content.width|gt( 0 )}width="{$attribute.content.width}"{/section} {section show=$attribute.content.height|gt( 0 )}height="{$attribute.content.height}"{/section} id="objectid{$node.object.id}">
  <param name="movie" value={concat("content/download/",$attribute.contentobject_id,"/",$attribute.content.contentobject_attribute_id,"/",$attribute.content.original_filename)|ezurl} />
  <param name="quality" value="{$attribute.content.quality}" />
  <embed src={concat("content/download/",$attribute.contentobject_id,"/",$attribute.content.contentobject_attribute_id,"/",$attribute.content.original_filename)|ezurl} quality="{$attribute.content.quality}" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" 
{section show=$attribute.content.width|gt( 0 )}width="{$attribute.content.width}"{/section} {section show=$attribute.content.height|gt( 0 )}height="{$attribute.content.height}"{/section}></embed>
</object>
    {/let}

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Bernhard Reiter

Thursday 03 March 2005 1:26:12 am

This does not wok either.

Could it be that the path to the flash file is wrong? if i enter it into my browser it says content modulke not found.

Its the first time i work with ezPublish, so please be patient ;-)

Bernhard Reiter

Thursday 03 March 2005 1:29:14 am

Sorry i was wrong the url is wright. i entered it again and a download window poped up.

Bernhard Reiter

Thursday 03 March 2005 1:31:29 am

Ahh now it works.
i just stripped of the filename form the url ($attribute.content.original_filename), and now the movie plays!

Łukasz Serwatka

Thursday 03 March 2005 1:33:28 am

Bernhard, It`s good to see that it works ;-)

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 01:14:45
Script start
Timing: Jan 19 2025 01:14:45
Module start 'layout'
Timing: Jan 19 2025 01:14:45
Module start 'content'
Timing: Jan 19 2025 01:14:46
Module end 'content'
Timing: Jan 19 2025 01:14:46
Script end

Main resources:

Total runtime0.9742 sec
Peak memory usage4,096.0000 KB
Database Queries72

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.1250152.6094
Module start 'layout' 0.00610.0028 741.734439.4141
Module start 'content' 0.00900.9632 781.1484603.5547
Module end 'content' 0.97210.0020 1,384.703120.1875
Script end 0.9741  1,404.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3360160.0002
Check MTime0.00140.1443160.0001
Mysql Total
Database connection0.00050.056310.0005
Mysqli_queries0.913093.7237720.0127
Looping result0.00070.0676700.0000
Template Total0.942896.820.4714
Template load0.00200.201020.0010
Template processing0.940896.579620.4704
Template load and register function0.00020.024610.0002
states
state_id_array0.00080.079410.0008
state_identifier_array0.00090.094020.0005
Override
Cache load0.00170.1711350.0000
Sytem overhead
Fetch class attribute can translate value0.00060.058420.0003
Fetch class attribute name0.00210.218090.0002
XML
Image XML parsing0.00060.066020.0003
class_abstraction
Instantiating content class attribute0.00000.0030110.0000
General
dbfile0.00080.0836180.0000
String conversion0.00000.001040.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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs