Project

General

Profile

Actions

Bug #86849

closed

Slug generation in record fails since update to 9.5.1

Added by Chris Müller over 5 years ago. Updated over 5 years ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2018-11-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

typo3_8aacc053fe.log (14.9 KB) typo3_8aacc053fe.log Exception Stack Trace Chris Müller, 2018-11-05 09:53

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #86821: Slug generator doesn't work for custom records anymore in 9.5.1Closed2018-11-01

Actions
Related to TYPO3 Core - Bug #86809: Resolve strict type assertion in RecordStateFactoryClosed2018-10-31

Actions
Actions #1

Updated by Joerg Kummer over 5 years ago

  • Related to Bug #86821: Slug generator doesn't work for custom records anymore in 9.5.1 added
Actions #2

Updated by Joerg Kummer over 5 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?

Actions #3

Updated by Joerg Kummer over 5 years ago

  • Related to Bug #86809: Resolve strict type assertion in RecordStateFactory added
Actions #4

Updated by Georg Ringer over 5 years ago

  • Status changed from New to Rejected

closed as duplicate

Actions #5

Updated by Chris Müller over 5 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

Actions

Also available in: Atom PDF