Conversation
Tasks: * Fix issue with type in backend preview
|
I'm not a maintainer, but IMHO it's better to check whether the record actually comes from if ($event->getTable() !== 'tt_content') {
return;
}This is what official documentation recommends - see the event listener example here: https://docs.typo3.org/m/typo3/reference-coreapi/12.4/en-us/ApiOverview/Events/Events/Backend/PageContentPreviewRenderingEvent.html |
|
@chesio Thank you for the feedback. I agree that adding this makes sense. However, even after checking it, I still see an error. |
|
Hi @sivaprasad1988 , when exactly do you see the error?, how can i reproduce this? (i will add the table check, as suggestet) |
|
B13\Container\Tca\Registry::isContainerElement(): Argument #1 ($cType) must be of type string, null given, called in /var/www/typo3/releases/1.0.81/vendor/b13/container/Classes/Listener/PageContentPreviewRendering.php on line 33 (0). @achimfritz this is what I get |
Tasks: * Check whether the record actually comes from tt_content table Resolves: b13#591
|
@achimfritz I added the check |
|
ok, but when do you get this? (because i get this never?) (in my db definition the column CType is not nullable?) |
|
|
|
ok, then it looks like an issue with content blocks for me. |

Tasks: