TYPO3 Exception 1225709595

Note

Below, the TYPO3 community may have provided additional information or solutions for this exception. However, these may or may not apply to your particular case. If you can provide more information, you should come back here and add your experience and solution steps to this issue once you have resolved it.

General TYPO3 troubleshooting tips can be found in the section "Troubleshooting" of the menu, and live support is available in the TYPO3 Slack channel #typo3-cms. (See How to get your TYPO3 Slack account.)

To add your experience, click "Edit on GitHub" above and follow the "Edit on GitHub" workflow. Also check out our tip on Coding Style and reST.

The Fluid template files "" could not be loaded

Exception message:

#1225709595: The Fluid template files "" could not be loaded.
TYPO3Fluid\Fluid\View\Exception\InvalidTemplateResourceException
thrown in file

/var/www/site/htdocs/typo3_src/vendor/typo3fluid/fluid/src/View/TemplatePaths.php
in line 730.

TYPO3 10+

This solution might work for most user of TYPO3 6+, though only tested with version 10.

Solution 1

If you're using a standalone view, be sure to set the controller context. You can then adjust it to your taste if you want to. But at least set it for the view to work properly. Including your controller context will also cure most of your standalone view problems. The controller context already exists in your controller in the $this->controllerContext class field (others call it class property). All you have to do is include it in the $standaloneView->setControllerContext() method like this:

$standaloneView = GeneralUtility::makeInstance(StandaloneView::class);

$standaloneView->setControllerContext($this->controllerContext);

$standaloneView->setTemplatePathAndFilename('EXT:myextension/Resources/Private/Templates/'
. $this->template);

$standaloneView->assignMultiple($this->settings);

Solution 2

If you are running your view away from the Controllers, then make sure to fill in fillDefaultsByPackageName with your extension key:

$standaloneView = GeneralUtility::makeInstance(StandaloneView::class);

$standaloneView->getTemplatePaths()->fillDefaultsByPackageName('myextension');

$standaloneView->setTemplatePathAndFilename('EXT:myextention/Resources/Private/Templates/'
. $this->template); ...

Older versions

#1225709595: The template files ".../typo3conf/ext/blsvsa2013/Resources/Private/Partials/Model/Template.html" could not be loaded.

  • check if the template file exist.

  • If you set the format of our view manually in the controller like this: $this->request->setFormat('xml'); extbase is still looking for a file called youraction.html even if it eventually uses youraction.xml so you need to create both files, the html file can be empty. I think this is a bug and filled a bug report; https://forge.typo3.org/issues/46657