Bug #59544
closedCTYPE=media php fatal error with fixed width or height
100%
Description
I use TYPO3 6.2.3;
- 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 - I insert three files (.ogv, .webm, .mp4)
- 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/
Updated by Markus Klein over 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?
Updated by Martina Greiner over 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.
Updated by Karsten Nowak (undkonsorten) over 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
Updated by Karsten Nowak (undkonsorten) over 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.
Updated by Alexander Opitz over 10 years ago
- Category set to Frontend
- Status changed from Needs Feedback to New
Updated by Tofu Tofu over 10 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.
Updated by Markus Klein over 10 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)
Updated by Gerrit Code Review about 10 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
Updated by Goran Medakovic about 10 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
Updated by Gerrit Code Review about 10 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
Updated by Gerrit Code Review about 10 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
Updated by Gerrit Code Review about 10 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
Updated by Gerrit Code Review about 10 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
Updated by Gerrit Code Review about 10 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
Updated by Gerrit Code Review about 10 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
Updated by Gerrit Code Review about 10 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
Updated by Goran Medakovic about 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 357c5dcb31664f7512dd9f5f5eec717553adb6ad.