Issue Bug Closed

#93820$contentObject = $this->configurationManager->getContentObject(); is deprecated

Martin Weymayer 03/26/21, 09:36 updated 11/14/21, 16:14

Description

Since TYPO3 9.5.25 in following was added in FormRuntime.php:

$contentObject = $this->configurationManager->getContentObject();

This occures error:
Core: Exception handler (WEB): Uncaught TYPO3 Exception: Call to a member function getContentObject() on null | Error thrown in file /var/www/vhosts/secon.users.aboliton.at/httpdocs/typo3_src-9.5.26/typo3/sysext/form/Classes/Domain/Runtime/FormRuntime.php in line 549.

But this seems deprecatet https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/8.0/Deprecation-68748-DeprecateAbstractContentObjectgetContentObject.html

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.