Problems with images and movies

Author Message

Pedro Lemos

Friday 02 May 2003 3:40:00 am

I got ez3 running on MacOSX Server 10.2.5, Apache 1.3.27, php 4.3.1, GD and ImageMagick 5 and all seems fine except that on the demo site/gallery when I click on the images to view an enlarged version I get "Unavailable - The object is not available." (I can upload images and see the thumbnail). Any clues what's going on?

Also I've created a movie class but when I try to preview (in the content/admin interface) the browser complains about not having the plug-in for mime type html/text.

Help appreciated.
Thank you.

Marco Zinn

Saturday 03 May 2003 2:17:26 am

About the MIME-Types (your second problem):
You need to configure Apache to send the correct MIME-Type with the media files. I don't know, if this MIME-Handling is done by ezPublish (didn't try yet). If it is NOT, Apache needs to do this and decide by the extension.
It should check the File extension (like .mpg) and send a MIME-Type, that your browser understands.
As your browser says, that it receives html/text, the MIME-Type is not correct. html/text probbly is the default MIME-Type of your apache.
I guess, you use a Mac Browser. Can you use a windows browser, for testing purposes? I guess, the win browser are more tolerant and use the extension to "guess" the MIME-Type.

Marco
http://www.hyperroad-design.com

Pedro Lemos

Sunday 04 May 2003 10:58:02 am

Marco,
Thanks for the reply. The mime types on Apache are correctly set and are working with other sites on the same machine, but in any case I'll double check.

I will also try with a Win browser and see how it goes.
-----
Mime types are OK. It's the template that's generating the wrong code. Fixed that and works.

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 18 2025 15:56:05
Script start
Timing: Jan 18 2025 15:56:05
Module start 'layout'
Timing: Jan 18 2025 15:56:05
Module start 'content'
Timing: Jan 18 2025 15:56:06
Module end 'content'
Timing: Jan 18 2025 15:56:06
Script end

Main resources:

Total runtime0.8329 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.0045 589.4609152.6406
Module start 'layout' 0.00450.0026 742.101639.4766
Module start 'content' 0.00710.8242 781.5781534.4297
Module end 'content' 0.83120.0016 1,316.007812.1484
Script end 0.8328  1,328.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3636160.0002
Check MTime0.00130.1612160.0001
Mysql Total
Database connection0.00060.076710.0006
Mysqli_queries0.783994.1215570.0138
Looping result0.00050.0602550.0000
Template Total0.803596.520.4018
Template load0.00210.255620.0011
Template processing0.801496.219420.4007
Template load and register function0.00020.025910.0002
states
state_id_array0.00080.091410.0008
state_identifier_array0.00150.182820.0008
Override
Cache load0.00180.2140200.0001
Sytem overhead
Fetch class attribute can translate value0.00100.120220.0005
Fetch class attribute name0.00140.163640.0003
XML
Image XML parsing0.00060.068520.0003
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00160.1965160.0001
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
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
4content/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: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs