Project

General

Profile

Actions

Bug #42691

closed

Fatal-Error in Extconf-Userfunction by getCurrentConfiguration

Added by move:elevator no-lastname-given about 12 years ago. Updated almost 11 years ago.

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #41929: Exception on submitting extension-configuration with type=userClosed2012-10-12

Actions
Actions

Also available in: Atom PDF