TYPO3 12.4.20 maintenance release published

Tue. 10th September, 2024

The version 12.4.20 of the TYPO3 Enterprise Content Management System has just been released.


This is a companion discussion topic for the original entry at https://typo3.org/article/typo3-12420-maintenance-release-published

Dear TYPO3 Team,
I have a serious problem updating TYPO 3 12.4.19 to TYPO3 12.4.20 (no Composer). I have installed a custom EXT, that uses StandardContentPreviewRenderer. In 12.4.19 the extension worked fine without any problems. After update the little minor release I get an error:

Expected to find class “XXX\Festicker\Backend\Preview\ContentPreviewRenderer” in file “/usr/www/users/XXX.test/typo3conf/ext/fh_sticker/Classes/Backend/Preview/ContentPreviewRenderer.php” while importing services from resource “…/Classes/*”, but it was not found! Check the namespace prefix used with the resource.

In the release notes there is no annotation about changes on Classes or methodes. Maybe there are changes that are not documented?

This is my Class-File:

<?php

declare(strict_types=1);

namespace XXX\Festicker\Backend\Preview;

use TYPO3\CMS\Backend\Preview\StandardContentPreviewRenderer;
use TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem;

class ContentPreviewRenderer extends \TYPO3\CMS\Backend\Preview\StandardContentPreviewRenderer
{
    public function renderPageModulePreviewContent(GridColumnItem $item): string
    {
        $record = $item->getRecord();
        if (trim($record['counter_value'] ?? '') !== '') {
            return $this->linkEditContent(nl2br(htmlentities($record['counter_value'])), $record) . '<br />';
        }
        return parent::renderPageModulePreviewContent($item);
    }
}

?>

Thanks for help. I tried a lot, but couldn’t come a step further.