Bug #60826
Fatal Error when Flux is installed
0%
Description
When Flux is installed, an fatal error occures while submitting a comment:
Fatal error: Call to a member function getTypoScriptSetup() on a non-object in /html/typo3_src-6.1.10/typo3/sysext/extbase/Classes/Configuration/ConfigurationManager.php on line 146
Used setup:
TYPO3 CMS 6.1.0
pwComments 2.1.0
Flux: Fluid FlexForms 7.0.0
I don't know if it is a problem in flux oder pw_comments, yet. But at least I think it should be documented here for others who run into trouble with this constellation.
Updated by Armin Vieweg over 6 years ago
Do you have a trace of this call? This meight be helpful. Thanks
Updated by Armin Vieweg over 6 years ago
Btw. I've checked this line, with TYPO3 6.1.10 sources:
Line 146 does not contain executable code, so I am wondering a little bit.
Updated by hwt3 no-lastname-given over 6 years ago
Thanks a lot for this quick support!!!
Mentally focus in searching the bug, I didn't notify the replies.
Yes, I discovered this line too, an was also wondering. But I found a solution:
I added
/** * @var Tx_Extbase_Configuration_ConfigurationManagerInterface */ protected $configurationManager = NULL; /** * Injects the configurationManager * * @param Tx_Extbase_Configuration_ConfigurationManagerInterface $configurationManager * @return void */ public function injectConfigurationManager(Tx_Extbase_Configuration_ConfigurationManagerInterface $configurationManager) { $this->configurationManager = $configurationManager; }
and changed
protected function getExtensionSettings() { $configurationManager = t3lib_div::makeInstance('Tx_Extbase_Configuration_ConfigurationManager'); $fullTyposcript = $configurationManager->getConfiguration( Tx_Extbase_Configuration_ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT ); return $fullTyposcript['plugin.']['tx_pwcomments' . '.']['settings.']; }
to
protected function getExtensionSettings() { //$fullTyposcript = $configurationManager->getConfiguration( $fullTyposcript = $this->configurationManager->getConfiguration( Tx_Extbase_Configuration_ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT ); return $fullTyposcript['plugin.']['tx_pwcomments' . '.']['settings.']; }
in the Model 'Tx_PwComments_Domain_Model_Comment'.
With this it works fine.
Best regards!
Updated by Charles Brunet over 6 years ago
Faced the same problem, with TYPO3 6.2.
I think the problem is that
$configurationManager = t3lib_div::makeInstance('Tx_Extbase_Configuration_ConfigurationManager');
should be
$objectManager = t3lib_div::makeInstance('Tx_Extbase_Object_ObjectManager'); $configurationManager = $objectManager->get('Tx_Extbase_Configuration_ConfigurationManagerInterface');
instead.
Updated by Katja Lampela about 6 years ago
Charles Brunet wrote:
Faced the same problem, with TYPO3 6.2.
I think the problem is that
[...]
should be
[...]
instead.
I have this problem also with 6.2.6. In which file did you make this change Charles?
Updated by Marco Antonioli about 6 years ago
Charles Brunet wrote:
Faced the same problem, with TYPO3 6.2.
I think the problem is that
[...]
should be
[...]
instead.
This works for my installation TYPO3 6.2.7 , pwcomments 2.1.0 and flux 7.2.0. Thanks
Updated by Armin Vieweg about 6 years ago
- Status changed from New to Accepted
- Assignee set to Armin Vieweg
I'll fix it soon.
Thanks Charles for the patch!
Updated by Armin Vieweg over 5 years ago
- Status changed from Accepted to Resolved
Published in 3.0.0