TYPO3 Forge: Issueshttp://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692023-09-05T09:38:24ZTYPO3 Forge
Redmine TYPO3 Core - Bug #101848 (Resolved): PHP 8 warning in EXT:Backend\FrontendBackendUserAuthenticati...http://forge.typo3.org/issues/1018482023-09-05T09:38:24ZChristian Toffolo
<p><a class="external" href="https://github.com/TYPO3/typo3/blob/d8c1b99a34aa4d27922a66822e5c114fc5f52e12/typo3/sysext/backend/Classes/FrontendBackendUserAuthentication.php#L181">https://github.com/TYPO3/typo3/blob/d8c1b99a34aa4d27922a66822e5c114fc5f52e12/typo3/sysext/backend/Classes/FrontendBackendUserAuthentication.php#L181</a><br /><pre>
if (!$conf['onlyCurrentPid'] || $pid == $GLOBALS['TSFE']->id) {
</pre><br />should be<br /><pre>
if (!($conf['onlyCurrentPid'] ?? false) || $pid == $GLOBALS['TSFE']->id) {
</pre></p> TYPO3 Core - Bug #101847 (Resolved): PHP 8 warning in EXT:Backend\FrontendBackendUserAuthenticati...http://forge.typo3.org/issues/1018472023-09-05T09:32:39ZChristian Toffolo
<p><a class="external" href="https://github.com/TYPO3/typo3/blob/d8c1b99a34aa4d27922a66822e5c114fc5f52e12/typo3/sysext/backend/Classes/FrontendBackendUserAuthentication.php#L111">https://github.com/TYPO3/typo3/blob/d8c1b99a34aa4d27922a66822e5c114fc5f52e12/typo3/sysext/backend/Classes/FrontendBackendUserAuthentication.php#L111</a><br /><pre>
} elseif ($GLOBALS['TCA'][$table]['ctrl']['languageField']) {
</pre><br />should be<br /><pre>
} elseif ($GLOBALS['TCA'][$table]['ctrl']['languageField'] ?? false) {
</pre></p> TYPO3 Core - Bug #101602 (Resolved): PHP 8 warning in ContentObjectRenderer::editIconshttp://forge.typo3.org/issues/1016022023-08-06T10:09:26ZChristian Toffolo
<p><a class="external" href="https://github.com/TYPO3/typo3/blob/879ef42aaa4e63447a3cda37b033fd25dc6f0116/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php#L6687C9-L6687C12">https://github.com/TYPO3/typo3/blob/879ef42aaa4e63447a3cda37b033fd25dc6f0116/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php#L6687C9-L6687C12</a><br /><code>$editUid = $dataArray['_LOCALIZED_UID'] ?: $currentRecordUID;</code><br />should be<br /><code>$editUid = $dataArray['_LOCALIZED_UID'] ?? $currentRecordUID;</code></p> TYPO3 Core - Bug #101319 (Closed): Impossible to not display controls in videohttp://forge.typo3.org/issues/1013192023-07-11T13:46:57ZChristian Toffolo
<p>The simplest way to not display controls in HTML5 video it to not add the "controls" attribute at all to the video element.</p>
<p>\TYPO3\CMS\Core\Resource\Rendering\VideoTagRenderer renders the "controls" attribute in any case, making it harder to not display controls.</p> TYPO3 Core - Feature #101161 (New): New access right: Show if not logged inhttp://forge.typo3.org/issues/1011612023-06-23T10:37:11ZChristian Toffolo
<p>Use case: I want to hide a page only from users in a specific user group (e.g. SpecialUsers). So the page should still be visible if a user is not logged in.</p>
<p>AFAIK, at the moment, there's no way to do this in TYPO3.</p>
I think the best solution to this problem is to implement a new default access right: "Show if not logged in" <br />This way I can put all users who are not SpecialUsers in a group "No SpecialUsers".<br />Then I will set the access right to the page as:
<ul>
<li>"Show if not logged in" </li>
<li>"No SpecialUsers"</li>
</ul>
<p>This way the page will be visible if a user is not logged in and if a user is in the "No SpecialUsers" group (i.e.: users not in the "SpecialUsers" group).</p>
<p>Another solution could be to split the access right field in two:<br />- Visible to<br />- Hidden to<br />But that is probably too complicated.</p> TYPO3 Core - Bug #100063 (New): l10n_display=hideDiff not working for pi_flexformhttp://forge.typo3.org/issues/1000632023-03-02T13:17:17ZChristian Toffolo
Setting pi_flexform:
<ul>
<li>l10n_display = hideDiff</li>
<li>l10n_mode = exclude</li>
</ul>
<p>still displays the pi_flexform fields.</p> TYPO3 Core - Bug #99819 (New): Missing page tree in direct link to CEhttp://forge.typo3.org/issues/998192023-02-04T08:37:59ZChristian Toffolo
<p>Browsing a direct links to specific content elements or refreshing while editing a CE doesn't display the page tree.</p>
<p>Reproduce:<br />1. edit a record<br />2. refresh the browser tab</p>
<p>Result: <br />The edit form is displayed with module icons on the left but it misses the page tree.</p> TYPO3 Core - Bug #99444 (New): Core: Exception handler (WEB: FE): Error, code #0, file TypoScript...http://forge.typo3.org/issues/994442023-01-02T09:44:20ZChristian Toffolo
<p>Generated by Googlebot visiting a translated page that is a shortcut to another page like:<br /><a class="external" href="http://domain.ext/es/soporte/">http://domain.ext/es/soporte/</a><br />that is a shortcut to page with uid=3</p>
<p>PHP error log:<br />Mon, 02 Jan 2023 08:38:14 +0100 [WARNING] request="31bc2c162961e" component="TYPO3.CMS.Core.Error.ErrorHandler": Core: Error handler (FE): PHP Warning: Undefined array key "uid" in typo3/sysext/core/Classes/Domain/Repository/PageRepository.php line 1101<br />Mon, 02 Jan 2023 08:38:14 +0100 [WARNING] request="31bc2c162961e" component="TYPO3.CMS.Core.Error.ErrorHandler": Core: Error handler (FE): PHP Warning: Undefined array key "uid" in typo3/sysext/core/Classes/Domain/Repository/PageRepository.php line 1112<br />Mon, 02 Jan 2023 08:38:14 +0100 [CRITICAL] request="31bc2c162961e" component="TYPO3.CMS.Core.Error.ProductionExceptionHandler": Core: Exception handler (WEB: FE): Error, code #0, file typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php, line 2099: Attempt to assign property "rootLine" on null - {"mode":"WEB","application_mode":"FE","exception_class":"Error","exception_code":0,"file":"typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php","line":2099,"message":"Attempt to assign property \"rootLine\" on null","request_url":"https://domain.ext/es/soporte/","exception":null}</p> TYPO3 Core - Bug #99180 (Closed): Cropped jquery minicolors panelhttp://forge.typo3.org/issues/991802022-11-24T12:39:19ZChristian Toffolo
<p>The minicolors panel is cropped if its tab panel is too low (eg. IRRE element with few field).<br /><img src="http://forge.typo3.org/attachments/download/37223/ponpygbm.png" alt="" loading="lazy" /></p> TYPO3 Core - Feature #98952 (Closed): Use wildcard in TCEMAIN.clearCacheCmd = cacheTag:taghttp://forge.typo3.org/issues/989522022-10-29T09:27:36ZChristian Toffolo
<p>EXT:news suggests to use <code>TCEMAIN.clearCacheCmd = cacheTag:tx_news</code> to clear all caches of pages on which the news plugins are used.<br />To achieve this <a href="https://github.com/georgringer/news/blob/da7e5c2bce8e096c1fe8152ef11c96cee4aa8d7c/Classes/Controller/NewsController.php#L107" class="external">EXT:news adds cache tag 'tx_news'</a> on news controller init.</p>
<p>If TYPO3 allowed to use wildcards in <code>TCEMAIN.clearCacheCmd = cacheTag:tag</code>, the same result could be achieved with an hypotetic code like:<br /><code>TCEMAIN.clearCacheCmd = cacheTag:tx_news*</code></p>
<p>Obviously, this can be useful in other cases and for other extensions.</p> TYPO3 Core - Bug #81024 (Closed): getFilenameFromMainDir() triggers PHP Warnings open_basedirhttp://forge.typo3.org/issues/810242017-04-26T16:21:55ZChristian Toffolo
<p>Method<br /><pre>\TYPO3\CMS\Core\Resource\ResourceCompressor::getFilenameFromMainDir()</pre><br />triggers warnings<br /><pre>core: Core: Error handler (BE): PHP Warning: is_file(): open_basedir restriction in effect. File(/var/www/website/htdocs/../typo3conf/ext/extension/Resources/Public/file) is not within the allowed path(s):</pre><br />when the BE is browsed.</p>
<p>This happens because "is_file($absolutePath)" checks outside the website root in the case of a passed file that has a relative path that begins with "../typo3conf/extension..." and open_basedir doesn't allow it.</p>
<p>Me and Markus Klein talked about the problem and decided to use the PHP error control operator @ to suppress the warnings because other solutions could break the code in other cases.</p> TYPO3 Core - Bug #80807 (Closed): Upgrade Wizard / Execute database migrations on single rows / E...http://forge.typo3.org/issues/808072017-04-11T15:28:36ZChristian Toffolo
<p>When I run "Upgrade Wizard / Execute database migrations on single rows" I get this error<br />"The RecordLinkHandler expects identifier and uid as $parameter configuration"</p>
<p>I debugged and found that the upgrade wizard calls $linkService->resolve($link) that returns<br /><pre>
$linkParts = [
type = "record",
url = [
identifier = "tx_ianshop",
table = "tx_ianshop_domain_model_product",
uid = "2",
]
]</pre><br />with $link="record:tx_ianshop:tx_ianshop_domain_model_product:2"</p>
<p>then calls $linkService->asString($linkParts)<br />that calls \TYPO3\CMS\Core\LinkHandling\RecordLinkHandler::asString<br />that expect an array like<br /><pre>
$parameters = [
identifier = "tx_ianshop",
uid = "2",
]
</pre><br />instead it receives the array $parameters = $linkParts.</p> TYPO3 Core - Bug #72965 (Closed): f:uri.image doesn't really crop the imagehttp://forge.typo3.org/issues/729652016-01-27T13:48:40ZChristian Toffolo
<p>{f:uri.image(image: file, width: 100c, height: 100c)}<br />should create a 100x100px crop of the central portion of the image.<br />Instead it wrongly creates a 100x100px version of the whole image distorted to look square.<br />See attached image.</p> TYPO3 Core - Feature #66681 (Closed): CategoryRegistry: add options to set l10n_mode and l10n_dis...http://forge.typo3.org/issues/666812015-04-30T13:00:59ZChristian Toffolo
<p>Class <strong>CategoryRegistry</strong> is missing options to set <strong>l10n_mode</strong> and <strong>l10n_display</strong></p>
<p>Simply adding:<pre>
if (isset($options['l10n_mode'])) {
$columns[$fieldName]['l10n_mode'] = $options['l10n_mode'];
}
if (isset($options['l10n_display'])) {
$columns[$fieldName]['l10n_display'] = $options['l10n_display'];
}</pre></p>
<p>to the method <strong>addTcaColumn</strong> of this class should add this small but useful feature.</p> TYPO3 Core - Bug #61361 (Closed): Fluid template path fallback doesn't work in TypoScript object ...http://forge.typo3.org/issues/613612014-09-05T09:30:02ZChristian Toffolo
<p>It looks like that the useful fallback feature of Fluid is implemented only in class TemplateView and not in class StandaloneView.</p>
<p>So a Typoscript like this doesn't work:</p>
<pre>
page {
10 = FLUIDTEMPLATE
10 {
partialRootPath >
partialRootPaths {
10 = EXT:bootstrap_package/Resources/Private/Partials/Page/
20 = EXT:my_extension/Resources/Private/Partials/Page/
}
}
</pre>
<p>and produce a FE error:<br />Partial root path "typo3conf/ext/bootstrap_package/Resources/Private/Templates/Page/Partials" does not exist</p>
<p>IMHO, since this feature has been implemented in 6.2, it must be available also for TypoScript object FLUIDTEMPLATE and in TYPO3 6.2</p>