Bug #91371

Empty website after upgrade from version 9, cObject TEMPLATE not working

Added by Pascal Oberhaensli 13 days ago. Updated 6 days ago.

Needs Feedback
Should have
Target version:
Start date:
Due date:
% Done:


TYPO3 Version:
PHP Version:
Is Regression:
Sprint Focus:


We upgraded a customer website from version 9 and we were not able to get any content on the website. So the website is empty (just a white page).
We reduced our source to the minimum, still the same behavior. We also re-installed a fresh 10.4.2 with our ts files. Same situation.

Even the most simple code did not work:

page = PAGE
page.10 = TEMPLATE
page.10.template = FILE
page.10.template.file = fileadmin/[template path]/template.html

Result is empty body:

Installation is Typo3 Core only, without any extensions.
No Typo3 errors, no PHP errors.
PHP Version 7.4, 7.3 same behaviour

Only with FLUIDTEMPLATE (page.10 = FLUIDTEMPLATE) the template file is processed.


#1 Updated by Josef Glatz 13 days ago

  • Status changed from New to Needs Feedback

I think the cause is that cObject FILE was removed just by reading your issue.

  1. It was deprecated in TYPO3 9.5 LTS https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.5/Deprecation-85970-FileContentObject.html?highlight=cobject%20file -> #85970
  2. and was finally removed within https://review.typo3.org/c/Packages/TYPO3.CMS/+/59476/ -> #87477

Unfortunatly there is no ExtensionsScanner for TypoScript at the moment.

Also the docs needs to be updated: https://docs.typo3.org/m/typo3/reference-typoscript/10.4/en-us/ContentObjects/Template/Index.html

The easiest way would be to migrate to FLUIDTEMPLATE like it is already suggested at https://docs.typo3.org/m/typo3/reference-typoscript/10.4/en-us/ContentObjects/Template/Index.html in the first tip right after the heading. Alternatively you can implement FILE within your own extension explained like in https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.5/Deprecation-85970-FileContentObject.html?highlight=cobject%20file#migration and looking at the source code of https://review.typo3.org/c/Packages/TYPO3.CMS/+/59476/

#2 Updated by Josef Glatz 12 days ago

Another workaround (tipp by Benjamin Franzke):

use cObject TEXT

page.10 = TEMPLATE
page.10 {
  template = TEXT
  template.value (
<!-- paste your template here; no escaping required; lines MUST NOT start with a closing bracket ")". -->

But as already stated in my last comment: migrate from TEMPLATE to FLUIDTEMPLATE

#3 Updated by Pascal Oberhaensli 12 days ago

Thank you very much for your fast reply, we have been searching for hours. Mainly because there was no error message at all, and also because we create typo3 websites since more than 10 years, so we were used to do it with TEMPLATE and not with FLUIDTEMPLATE.

It would be great to have more of an error handling using an object which was available for many years.

#4 Updated by Pascal Oberhaensli 12 days ago

Documentation Reference https://docs.typo3.org/m/typo3/reference-typoscript/10.4/en-us/ContentObjects/Template/Index.html is not visible that FILE Object is removed. We have been on this page of course to check if the syntax has changed. Only if you click on the File-Object-Link itself you can see it. It would recommend to add a hint to the TEMPLATE documentation.

#5 Updated by Josef Glatz 12 days ago

The Benni "awesome" Mack has created an extension for you! https://extensions.typo3.org/extension/modern_template_building/

use it if you don't want to migrate.

#6 Updated by Josef Glatz 12 days ago

If it's ok I will close this issue?!?!?

#7 Updated by Pascal Oberhaensli 12 days ago

Many Thanks to "awesome" Mack who has created this extension, which we will test very soon.

Still I would like to recommend to change https://docs.typo3.org/m/typo3/reference-typoscript/10.4/en-us/ContentObjects/Template/Index.html in a way that (for others) it is clear that is does not work anymore as expected.

#8 Updated by Pascal Oberhaensli 6 days ago

The Extension works for us, thank you!

Please Update the documentation as written above, can help to save hours of trying for others!

Also available in: Atom PDF