Bug #34690
closedmedia element does not work when BE with SSL
0%
Description
Dear TYPO3 Community,
When setting lockSSL to have the BE-Login with the secure protocol, the media content element does not include the necessary JS files as they are included like:
//add SWFobject js-file
$GLOBALS['TSFE']->getPageRenderer()->addJsFile(TYPO3_mainDir . 'contrib/flashmedia/swfobject/swfobject.js');
( file: class.tslib_content_shockwaveflashobject.php line: 60 )
$prefix is defined as:
$prefix = '';
if ($GLOBALS['TSFE']->baseUrl) {
$prefix = $GLOBALS['TSFE']->baseUrl;
}
if ($GLOBALS['TSFE']->absRefPrefix) {
$prefix = $GLOBALS['TSFE']->absRefPrefix;
}
( file: class.tslib_content_shockwaveflashobject.php line: 45 )
With lockSSL, the typo3/ folder is only accessible via https:// protocol, so the URL-request from the extension with http:// results in an ERR 500.
(discovered in TYPO3 version 4.5.5)
Updated by Manuel Kammermann over 12 years ago
this works for me with lockSSL = 2 ...
//add SWFobject js-file
if(intval($GLOBALS['TYPO3_CONF_VARS']['BE']['lockSSL']) > 0){ // didn't check whether correct for all the values of lockSSL
// get baseUrl for absolute path and replace http with https
$prefix = str_replace('http://','https://',$prefix);
// set together absolute path
$jslib = $prefix.TYPO3_mainDir.'contrib/flashmedia/swfobject/swfobject.js';
} else {
$jslib = TYPO3_mainDir . 'contrib/flashmedia/swfobject/swfobject.js';
}
$GLOBALS['TSFE']->getPageRenderer()->addJsFile($jslib);
Updated by Steffen Müller over 12 years ago
It works for me with latest TYPO3 4.5.12.
Updated by Oliver Hader over 12 years ago
- Status changed from New to Needs Feedback
Are you using an .htaccess file to only allow HTTPS requests to your typo3/ folder?
Updated by Alexander Opitz almost 11 years ago
- Status changed from Needs Feedback to Closed
No feedback for over 90 days.