Project

General

Profile

Actions

Bug #59544

closed

CTYPE=media php fatal error with fixed width or height

Added by Riccardo De Contardi almost 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2014-06-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I use TYPO3 6.2.3;

  1. I insert a Content element, type=MEDIA on a page, with the following:
    Media Type: Video
    HTML5 / accessible rendering: YES
    Render Type: auto
    Additional Parameters: none
  2. I insert three files (.ogv, .webm, .mp4)
  3. If I insert a width or an height, The page is white and it throws the following PHP error:
PHP Fatal error:  Cannot use string offset as an array in /usr/share/typo3-src/typo3_src-6.2.3/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php on line 1173, referer: http://typo3.test.62/
Actions #1

Updated by Markus Klein almost 10 years ago

  • Status changed from New to Needs Feedback

I tested this with mp4 and webm on current master and it worked flawlessly. Did you change any other settings?

Actions #2

Updated by Martina Greiner almost 10 years ago

I have the same fatal error when using HTML5 Video and add any parameter. In my case, the width and height fields are empty.

Actions #3

Updated by Karsten Nowak (undkonsorten) almost 10 years ago

The same here when i delete the empty "audio description for videos" field in "HTML5 Additions".
Using width and height settings is not the problem here.

TYPO3 6.2.2

Actions #4

Updated by Karsten Nowak (undkonsorten) almost 10 years ago

I located the following behavior:

  • make new content element media and don't touch the "audio description for videos" or "Additional Parameters". Everything is fine.
  • edit this content element add a new empty "audio description for videos" or "Additional Parameters" and save. Problem with video in chrome but FF and opera all is working fine.
  • edit this content element again and delete the empty "audio description for videos" or "Additional Parameters". Fatal Error like above is showing in frontend.

When content element has one time a "audio description for videos" or "Additional Parameters" added the at least one empty param is needed.
Width and height is every time set.

Actions #5

Updated by Alexander Opitz almost 10 years ago

  • Category set to Frontend
  • Status changed from Needs Feedback to New
Actions #6

Updated by Tofu Tofu over 9 years ago

I realized when i first choose "HTML5/accessible rendering" and set a video in the HTML5 tab and after that when i delete the video in the HTML5 tab and disable "HTML5/accessible rendering" there is still an empty flexform in the database.

with HTML5:
<sheet index="sVideoAccessible">
<language index="lDEF">
<field index="mmCaption">
<value index="vDEF"></value>
</field>
<field index="mmSources">
<el index="el">
<section index="1">
<itemType index="mmSourcesContainer">
<el>
<field index="mmSource">
<value index="vDEF">file:45</value>
</field>
</el>
</itemType>
<itemType index="_TOGGLE">0</itemType>
</section>
</el>
</field>
</language>
</sheet>

after HTML5 deaktivating:
<sheet index="sVideoAccessible">
<language index="lDEF">
<field index="mmCaption">
<value index="vDEF"></value>
</field>
<field index="mmSources">
<el index="el">
</el>
</field>
</language>
</sheet>

Maybee thats the problem.

If i remove the empty and unused flexform entries for the HTML5 configuration "<sheet index="sVideoAccessible">" the error disapear.

Actions #7

Updated by Markus Klein over 9 years ago

I'm still not able to reproduce the problem.

Can somebody please post a complete stack trace?
(enable the Development Preset in the Install Tool, to get the full stack trace)

Actions #8

Updated by Gerrit Code Review over 9 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33191

Actions #9

Updated by Goran Medakovic over 9 years ago

It's quite easy to reproduce it, just add some dynamic properties / save / edit / remove them .. After that rendering of media is broken.
Here is a stack trace : http://pastebin.com/raw.php?i=gMNBevtM
I've also provided a patch @ http://review.typo3.org/33191

Actions #10

Updated by Gerrit Code Review over 9 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33191

Actions #11

Updated by Gerrit Code Review over 9 years ago

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33208

Actions #12

Updated by Gerrit Code Review over 9 years ago

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33209

Actions #13

Updated by Gerrit Code Review over 9 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33191

Actions #14

Updated by Gerrit Code Review over 9 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33191

Actions #15

Updated by Gerrit Code Review over 9 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33191

Actions #16

Updated by Gerrit Code Review over 9 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33212

Actions #17

Updated by Goran Medakovic over 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #18

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF