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 #1

Updated by Oliver Hader over 11 years ago

  • Target version set to 2222
Actions #2

Updated by Oliver Hader over 11 years ago

  • Project changed from 2269 to TYPO3 Core
Actions #3

Updated by Oliver Hader over 11 years ago

  • Category set to Extension Manager
Actions #4

Updated by Oliver Hader over 11 years ago

  • Target version deleted (2222)
Actions #5

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.

Actions #6

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

Also available in: Atom PDF