Skip to content
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

ConfigurationManager not initialized correctly #19

Closed
maechler opened this issue Mar 19, 2017 · 2 comments
Closed

ConfigurationManager not initialized correctly #19

maechler opened this issue Mar 19, 2017 · 2 comments
Assignees
Labels

Comments

@maechler
Copy link
Member

The configurationManager should be retrieved from the Extbase Object Manager in order to be correctly initialized.

Replace the following line:

$this->configurationManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManager');

with:

$objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
$this->configurationManager = $objectManager->get('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManager');

A possible error resulting from that issue could be:

Fatal error: Call to a member function getConfiguration() on null in /usr/share/typo3/typo3_src-7.6.16/typo3/sysext/extbase/Classes/Configuration/ConfigurationManager.php on line 128

@maechler maechler self-assigned this Mar 19, 2017
@maechler maechler added the bug label Mar 19, 2017
@macjohnny
Copy link
Member

+1

maechler added a commit that referenced this issue Mar 21, 2017
@maechler
Copy link
Member Author

I fixed this and will include it in the next release coming soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants