Actions
Bug #42691
closedFatal-Error in Extconf-Userfunction by getCurrentConfiguration
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extension Manager
Target version:
-
Start date:
2012-11-05
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
I want to get my extconf in a postinstall-hook. In advance i'm unsure if this is a bug or just the wrong strategy to get extconf.
My call in ext_conf_template.txt
type=user[EXT:my_ext/Classes/Install/PostInstallHook.php:&Vendor\MyExt\Install\PostInstallHook->setup];
This works and load the "setup"-method. That lines ...
$configurationUtility = new \TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility(); $configuration = $configurationUtility->getCurrentConfiguration('my_ext');
in the method make the fatal error ...
Fatal error: Call to a member function createArrayFromConstants() on a non-object in /var/source_libs/typo3_src-6.0.0-dev/typo3/sysext/extensionmanager/Classes/Utility/ConfigurationUtility.php on line 97
Please let me know if you need something more.
Updated by Oliver Hader over 11 years ago
- Project changed from 2269 to TYPO3 Core
Updated by Wouter Wolters over 11 years ago
- Status changed from New to Needs Feedback
You need the objectManager from extbase to create the object and not use "new" here.
Updated by Alexander Opitz almost 11 years ago
- Status changed from Needs Feedback to Closed
- Is Regression set to No
No feedback within the last 90 days => closing this ticket.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.
Actions