Slug generation in record fails since update to 9.5.1
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.
Updated by Chris Müller almost 3 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