Bug #86849
closedSlug generation in record fails since update to 9.5.1
0%
Description
Given is a record in an own extension with a slug field.
The TCA configuration is as follows:
'path_segment' => [
'label' => 'Path segment',
'exclude' => true,
'config' => [
'type' => 'slug',
'generatorOptions' => [
'fields' => ['title'],
'fieldSeparator' => '/',
'prefixParentPageSlug' => false,
],
'fallbackCharacter' => '-',
'eval' => 'uniqueInPid',
],
],
Clicking on the button for recalculating the slug throws an exception (see attachment).
The same exception occurs when saving the record. So it's not possible anymore to save a record!
I am using a multi-lingual single-page tree (I don't know if this is relevant).
I can reproduce the error in the news extension.
It seems to me that this is a regression related to the fix for bug #86195.
Files
Updated by Joerg Kummer almost 6 years ago
- Related to Bug #86821: Slug generator doesn't work for custom records anymore in 9.5.1 added
Updated by Joerg Kummer almost 6 years ago
@Chris, there came a bugfix https://forge.typo3.org/issues/86809.
Could you try to load dev version (TYPO3 9.5.2-dev) and test, if its solve the issue for you?
Updated by Joerg Kummer almost 6 years ago
- Related to Bug #86809: Resolve strict type assertion in RecordStateFactory added
Updated by Chris Müller almost 6 years ago
After applying the patch from https://forge.typo3.org/projects/typo3cms-core/repository/revisions/3f182270333509171c3029cdf1969b8a559417bc I got still an error.
Argument 2 passed to TYPO3\CMS\Core\DataHandling\SlugHelper::buildSlugForUniqueInPid() must be an instance of TYPO3\CMS\Core\DataHandling\Model\RecordState, instance of TYPO3\CMS\Core\DataHandling\Model\RecordStateFactory given, called in /var/www/html/public/typo3/sysext/core/Classes/DataHandling/DataHandler.php on line 2006