-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUGFIX] Fix issue with type #592
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: