TYPO3 Forge: Issueshttp://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692021-11-04T22:59:09ZTYPO3 Forge
Redmine TYPO3 Core - Bug #95877 (Closed): missing index "install_path" with composer 2.0http://forge.typo3.org/issues/958772021-11-04T22:59:09ZMarco Huber
<p>composer 2.0 doesn't set "install_path" in vendor/composer/installed.php like composer 2.1 does. This missing array index leads to a PHP notice in typo3/sysext/core/Classes/Core/Environment.php line 137 and because of some strange server configuration this breaks TYPO3 completly.</p>
<pre><code class="shell syntaxhl" data-language="shell"><span class="nv">$ </span>vendor/bin/typo3cms cache:flush
PHP Notice: Undefined index: install_path <span class="k">in</span> /custompath/private/typo3/sysext/core/Classes/Core/Environment.php on line 137
</code></pre> TYPO3 Core - Bug #90761 (Closed): Fluid select viewhelper not added to __trustedProperties if mul...http://forge.typo3.org/issues/907612020-03-14T14:47:43ZMarco Huber
<p>The registerFieldNameForFormTokenGeneration is not called, if the viewhelper has multiple="true" but has no options. Then the field is not added to the hidden "__trustedProperties" field. But when the form is submitted, the select field is in the sent array with an empty string as value and then the extbase data mapper throws the exception 1297759968.</p>
<p>See: <a class="external" href="https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/fluid/Classes/ViewHelpers/Form/SelectViewHelper.php#L153">https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/fluid/Classes/ViewHelpers/Form/SelectViewHelper.php#L153</a></p> TYPO3 Core - Bug #79711 (Closed): The CE File Links (fluid_styled_content) tries to create thumbs...http://forge.typo3.org/issues/797112017-02-09T15:40:01ZMarco Huber
<p>In typo3/sysext/fluid_styled_content/Resources/Private/Templates/Uploads.html line 13 the if condition is true even for non-image files, because the f:uri.image returns an url. But then the f:media viewhelper can't handle this files and returns an <img> tag with an invalid src.</p>
<p>To reproduce:<br />Insert the content element File Links on a page, assign some non-image files (docx, xlsx, ...) and select "Filename and thumbnail (if possible)" in the field "Display file/icon/thumbnail".<br />For this files the generated <img> tag looks like this: <img src="path/to/my.docx" /></p>
<p>As a quick workaround I wrote a little viewhelper to check, if the file extension is in $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'], and used this viewhelper in the if condition:</p>
<pre>
<?php
namespace Vendor\MyTheme\ViewHelpers;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
/**
* Checks if the file extension is in $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
*/
class IsImageViewHelper extends AbstractViewHelper
{
/**
* Checks if the file extension is in $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
*
* @param \TYPO3\CMS\Core\Resource\ResourceInterface $resource Either give this resource
* @return boolean
*/
public function render($resource)
{
return GeneralUtility::inList($GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'], $resource->getExtension());
}
}
</pre>
<pre>
<f:if condition="{data.uploads_type} == 2">
<f:if condition="{vendor:isImage(resource:file)}">
<f:then>
<a href="{file.publicUrl}"{f:if(condition:data.target,then:' target="{data.target}"')}>
<f:media file="{file}" width="150" alt="{file.properties.alternative}" />
</a>
</f:then>
</pre>
<p>But perhaps there is a better solution?</p> TYPO3 Core - Bug #79566 (Closed): No login possible if cookie name is longer than 32 charshttp://forge.typo3.org/issues/795662017-01-31T11:28:32ZMarco Huber
<p>Because the cookie name is stored in the database be_sessions.ses_name (or fe_sessions.ses_name) and the field has a limit of 32 chars, the login does not work if the cookie name (set via $GLOBALS['TYPO3_CONF_VARS']['SYS|BE|FE']['cookieName']) is longer.</p> TYPO3 Core - Bug #79037 (Closed): In the BE the select icons' titles are not shownhttp://forge.typo3.org/issues/790372016-12-19T17:48:05ZMarco Huber
<p>Because only the a tag but not the image tag has a title attribute, in some browsers the title is not shown on mouseover.</p> TYPO3 Core - Bug #79012 (Closed): TYPO3 default language content shownhttp://forge.typo3.org/issues/790122016-12-16T11:26:45ZMarco Huber
<p>If a database field can be NULL, the default language content is shown even if there shouldn't be a fallback.</p>
<p><a class="external" href="http://stackoverflow.com/questions/41181974/typo3-default-language-content-shown">http://stackoverflow.com/questions/41181974/typo3-default-language-content-shown</a></p> TYPO3 Core - Bug #77577 (Closed): Source collection images don't get resized if file = GIFBUILDERhttp://forge.typo3.org/issues/775772016-08-22T13:43:59ZMarco Huber
<p>If you use a GIFBUILDER object as file resource in an IMAGE object, the images in the source collection don't get resized.</p>
<pre>
10 = IMAGE
10 {
file = GIFBUILDER
file {
XY = 400,350
...
}
sourceCollection {
small.width = 320
small.mediaQuery = (min-width: 260px)
medium.width = 400
medium.mediaQuery = (min-width: 360px)
}
}
</pre> TYPO3 Core - Bug #77098 (Closed): versionNumberInFilename = '1' not working with the demo .htacce...http://forge.typo3.org/issues/770982016-07-14T17:38:03ZMarco Huber
<p>If you use an Apache 2.2 and the demo .htaccess the RewriteRule to resolve the verionNumberInFilename doesn't work. It seems like this is a bug in Apache 2.2 and/or mod_rewrite which appends the absolute path to the file when it rewrites the path. Or perhaps I misunderstood the Apache documentation ;-). In the browser you simply get a 404 for the CSS/Javascript file.</p>
<p>To solve this problem, you could set a "RewriteBase = /" in your .htaccess. Then it works for every file, which is not in the "/typo3" folder. But if you enable debugging for the backend, the CSS and Javascript files from the "/typo3" folder can not be found because of the .htaccess in the "/typo3" folder. You have to set a "RewriteBase = /typo3/" in the .htaccess file in the "/typo3" folder.</p>
<p>Or you have to modify the .htaccess RewriteRule in the root folder from<br /><pre>
RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L]
</pre><br />to<br /><pre>
RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ %{ENV:CWD}$1.$3 [L]
</pre></p>
<p>This bug doesn't happen with Apache 2.4, but i find no requirement for a specific Apache version on <a class="external" href="https://github.com/TYPO3/TYPO3.CMS/blob/master/INSTALL.md">https://github.com/TYPO3/TYPO3.CMS/blob/master/INSTALL.md</a>.</p>
<p>This bug appears in TYPO3 6.2 and 7.6. And I think (but have not tested it) it appears in 8.x, too.</p> TYPO3 Core - Bug #76029 (Rejected): Regex in ExtensionManagementUtility::executePositionedStringI...http://forge.typo3.org/issues/760292016-05-03T14:29:05ZMarco Huber
<pre>
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', 'myfield', '', 'after:description');
</pre>
<p>The field "description" is part of the palette "metatags" so $positionName in ExtensionManagementUtility::executePositionedStringInsertion() is "--palette--;;metatags". This is modified to "--palette--;[^;]*;metatags" and then escaped with "preg_quote($positionName, '/')". And then the preg_replace doesn't work.</p>
<p>$positionName should be first quoted and then extended.</p>
<p>This was intruduced in <a class="external" href="https://forge.typo3.org/issues/75830">https://forge.typo3.org/issues/75830</a>.</p> TYPO3 Core - Bug #75254 (Closed): Wrong page TSconfig in link wizard after positioned inserthttp://forge.typo3.org/issues/752542016-03-24T12:13:37ZMarco Huber
<p>If you insert a content element (or a page) at a concrete position f.e. after content element 15 the value in $row['pid'] is -15.</p>
<p>This pid is also handed over to the link wizard popup. But with this "pid" the TSconfig can not be loaded.</p>
<p>Because this is the second place I find this issue, I'm afraid that we have a bigger problem here.</p> TYPO3 Core - Bug #75020 (Closed): "Save and view" button shows root page for pages of type "Short...http://forge.typo3.org/issues/750202016-03-11T15:22:16ZMarco Huber
<p>If you edit the page properties of a page with the doktype "Shortcut" or "Link to External URL" and then klick on "Save and view" the rootpage is shown and not the current page or the current page's target.</p>
<p>If you click on "Show" in context menu in the page tree the current page or the current page's target is shown.</p> TYPO3 Core - Bug #73896 (Closed): Old constraints in ext_emconf.php after extension update with a...http://forge.typo3.org/issues/738962016-03-02T19:55:20ZMarco Huber
<p>In a clean TYPO3 installation on a server with an activated opcode cache install an extension, f.e. static_info_tables. Then change the dependencies in the extensions ext_emconf.php. Then install the extension again by uploading the .t3x file in the extension manager.<br />The dependencies in the ext_emconf.php will not be updated.</p>
<p>This happens also, if you want to update an extension with the extension manager.</p>
<p>This happens only, if the extension gets installed/updated with a .t3x file. If you upload the .zip version in the extension manager, everything works fine.</p>
<p>In the .t3x file is no dependency information (and the other constraints, too) stored. So `\TYPO3\CMS\Extensionmanager\Utility\EmConfUtility::includeEmConf()` is called, to get the missing informations. But the `include` in this function gets the old ext_emconf.php from the opcode cache.</p>
<p>One solution would be, to call `\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Service\OpcodeCacheService::class)->clearAllActive($path);`. But I have the feeling, that everything gets really slow then.<br />Another solution would be, to get the missing information from the table tx_extensionmanager_domain_model_extension or from the array $extensionData['FILES'].</p>
<p>I've found this issue in TYPO3 6.2 and 7.6, and I think it is still present in master.</p>
<p>What do you think would be the best solution?</p> TYPO3 Core - Bug #72751 (Closed): RTE: no TSconfig loaded on positioned inserthttp://forge.typo3.org/issues/727512016-01-15T21:16:37ZMarco Huber
<p>If you insert a content element (or a page) with a RTE field at a concrete position f.e. after content element 15 the value in $row['pid'] is -15.</p>
<p>But with this "pid" the TSconfig can not be loaded.</p> TYPO3 Core - Bug #72171 (Closed): Since the authMode_enforce strict is set editors can't edit con...http://forge.typo3.org/issues/721712015-12-11T11:56:21ZMarco Huber
<p>Since the authMode_enforce strict is set editors can't edit content elements if the list_type is 0. But 0 is the default value.</p>
<p>So we have to change typo3/sysext/frontend/ext_tables.sql and perhaps also offer a migration script which updates the database?</p>
<p>This was introduced in:<br /><a class="external" href="https://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff/3276f07f39dcaa12458a67469b0c256bf77e89ed">https://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff/3276f07f39dcaa12458a67469b0c256bf77e89ed</a><br /><a class="external" href="https://review.typo3.org/#/c/45165/">https://review.typo3.org/#/c/45165/</a><br /><a class="external" href="https://forge.typo3.org/issues/32209">https://forge.typo3.org/issues/32209</a></p> TYPO3 Core - Bug #25888 (Closed): TCA Tree readOnly not workinghttp://forge.typo3.org/issues/258882011-04-11T15:09:49ZMarco Huber
<p>The TCA Tree isn't disabled if $PA['fieldConf']['config']['readOnly'] is true.</p>