Forums / General / Can't get the Media Datatype to work

Can't get the Media Datatype to work

Author Message

Jason Diehl

Tuesday 19 June 2007 4:56:17 am

I downloaded the Media Datatype for 3.8.8 and I am able to successfully upload videos. Although they don't play, at all. Neither from the admin nor from the customer side. The files in question are .wmv files for Windows Media Player

When I pull up the page in question it shows the video object with the controls, but it won't play. When I right click and click on the object and select Error Details I get the following:

Windows Media Player cannot find the file. If you are trying to play, burn, or sync an item that is in your library, the item might point to a file that has been moved, renamed, or deleted.

If I right click and select properties the location is the following:

[...]/content/download/82/308/pptoverview.wmv

Which if I paste directly into the address bar does not work. The file is uploaded I checked relavant directories.

Any Help?

Thanks,
Jason

André R.

Tuesday 19 June 2007 5:08:56 am

Check that the file is actually uploaded to the var directory.

If ( $fileOnServer == false )
It could be upload limit in ez / php / apache or even permission problem;
Else
Post the path it was supposed to have here and I / someone else can try to figure it out;

Fatal Error
XML did not validate on line 10: 'Writing everything in code is fun</joke>'

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

Jason Diehl

Tuesday 19 June 2007 5:13:37 am

I've confirmed that the following file exists only after I upload the wmv file within the admin section:

./var/shop_site/storage/original/video/706af36ab93aa24944611ed990d69d4e.wmv

But it cannot be accessed based off of it's attempt as:

[...]/content/download/82/308/pptoverview.wmv

André R.

Tuesday 19 June 2007 5:32:43 am

If you open the content/download url in you browser, what do you see ?
If this is a ez publish permission problem you should see it there.

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

Jason Diehl

Tuesday 19 June 2007 5:37:49 am

I get a 404 File not Found

André R.

Tuesday 19 June 2007 5:42:12 am

apache or ez error ?

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

Jason Diehl

Tuesday 19 June 2007 5:47:22 am

It's an Apache 404 error

André R.

Tuesday 19 June 2007 5:54:42 am

Haven't had any problems like this myself, so try to enable DebugOutput and DebugRedirection and see where it fails

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

Jason Diehl

Tuesday 19 June 2007 6:01:28 am

I am using a method of removing the index.php reference from the URL. I am using the httpd.conf method though so I don't believe that a mod_rewrite rule could be interfering since there weren't any additional rules to add.

Is there any chance that it is causing an issue?

I don't know anything about the Debug stuff, I just started using eZ Publish.

Jason Diehl

Tuesday 19 June 2007 6:28:02 am

Okay I think I figured it out. It does have to do with the removal of the index.php file in the URI.

If I retry the URL to the movie directly, BUT add a / to the end of the path, it WILL work. So evidently because the path ends with an extension .wmv Apache is trying to pull that up as a file instead of going through index.php. Once I add the ending slash, then it runs it through index.php thinking its just a directory and everything works.

The new problem I have is what do I have to edit to get the template to adjust the src reference so that I can make this adjustment on the actual page?

Thanks,

Jason Diehl

Tuesday 19 June 2007 6:59:33 am

Duh, I removed the wmv reference from my httpd.conf virtual hosts declaration. Everything works fine. Fixing it this way will just require me to put all Media Files into the Media Library before they will play. Good problem to have anyway for organization.

Thanks,

eZ debug

Timing: Jan 18 2025 18:34:41
Script start
Timing: Jan 18 2025 18:34:41
Module start 'content'
Timing: Jan 18 2025 18:34:42
Module end 'content'
Timing: Jan 18 2025 18:34:42
Script end

Main resources:

Total runtime1.0771 sec
Peak memory usage4,096.0000 KB
Database Queries218

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0120 587.7266180.8359
Module start 'content' 0.01210.9340 768.5625631.4453
Module end 'content' 0.94600.1310 1,400.0078344.4688
Script end 1.0770  1,744.4766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.4358210.0002
Check MTime0.00220.2017210.0001
Mysql Total
Database connection0.00090.081110.0009
Mysqli_queries0.988091.72662180.0045
Looping result0.00260.24512160.0000
Template Total1.028995.520.5145
Template load0.00240.218620.0012
Template processing1.026695.309720.5133
Template load and register function0.00020.019410.0002
states
state_id_array0.00160.148210.0016
state_identifier_array0.00110.105020.0006
Override
Cache load0.00200.1830520.0000
Sytem overhead
Fetch class attribute can translate value0.00100.091930.0003
Fetch class attribute name0.00100.0969120.0001
XML
Image XML parsing0.00090.085630.0003
class_abstraction
Instantiating content class attribute0.00000.0028150.0000
General
dbfile0.00330.3102280.0001
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
11content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 35
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs