-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Error with Content Blocks on TYPO3 Version 13 #751
Comments
Hi @stattmal I have this on roadmap for new major version of our extension, but for I have to wait for final API in core to start adapting it for ext:headless |
but feel free @stattmal to send PR |
howto get headless running with TYPO3 13? |
I still get this with TYPO3 v13.4.0 and headless 4.5.0. In JSON, I only have content: "Oops, an error occurred! Request: d6adf10b3e734", And in logfile warnings: Exception: PHP Warning: Trying to access array offset on null in /var/www/html/app/vendor/friendsoftypo3/headless/Classes/ContentObject/JsonContentContentObject.php line 186, in file /var/www/html/app/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php:141 |
Hi @carsten-wilhelm most probably, with release |
Any plans for supporting the content block extension? |
@cehret Im using content blocks without any issues. I got into one recently but I got it fixed for now. Here was my solution: #801 I also got a Typoscript generator, which generates the Typoscript file for the config.yaml using a command. |
I disabled colPos grouping. Good news: error has disappeared. Bad news: I know why - the content block I created is not part of JSON, instead I only see a "null" value. This is the root cause of the initial error, since there is no colPos in null (obviously) and grouping just fails. Not sure if I did something wrong with the content block or why it is not appearing in JSON at all. |
Hi @carsten-wilhelm because, it is not fault of ext:headless per se, but contentblocks. They are not designed to work with headless out-of-box, they are designed for working with fluid templates, and also have different philosophy and approach to handle certain things. AFAIK, contentblocks try to avoid TypoScript as much as possible, in contrast we depend on it, because our implementation is based on TypoScripts' content objects. To work with ext:headless we need layer to handle of content blocks in headless context. I see that, we have two possible ways to handle it (I have some PoCs, but not finished) one is fix TypoScript generation, second is to create extra data processing of content blocks for headless (but it is not perfect also) |
Hi @twoldanski But: I am not the first one to encounter that and found an extension that seems to provide the data processing. At least in my minimal prrof of concept, it works as expected. |
@carsten-wilhelm Exactly, content blocks are not designed to support headless approach, we need to add support. |
Describe the bug
Trying the TYPO3 Headless API on a new TYPO3 version 13, including the new TYPO3 CMS Content Blocks extension, results in an error when requesting the JSON response.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A JSON response with the newly added content based on the content blocks.
Screenshots

TYPO3 version and TYPO3 Headless version
Additional context
We have been using your headless plugin for a while and would love to have support for TYPO3 version 13 when requesting new content blocks.
The text was updated successfully, but these errors were encountered: