FluidTYPO3 / flux

TYPO3 extension Flux: Dynamic Fluid FlexForms
https://fluidtypo3.org
148 stars 214 forks source link

ConfigurationManager data empty v12 #2130

Closed steffen-hph closed 10 months ago

steffen-hph commented 10 months ago

When using the ConfigurationManager the "data" array is empty, while flux is active. We tried your approach to switch to the ConfigurationManagerInterface instead and it worked, but this is not an option for extensions like Powermail or News.

Powermail (eap for v12) also uses this, which is why it is currently not possible to send the form.

Sounds like https://github.com/FluidTYPO3/flux/issues/2129 and https://github.com/FluidTYPO3/flux/issues/2126

Not working:

use TYPO3\CMS\Extbase\Configuration\ConfigurationManager;
$configurationManager = GeneralUtility::makeInstance(ConfigurationManager::class);

\TYPO3\CMS\Core\Utility\DebugUtility::debug($configurationManager->getContentObject()->data);

Result: Empty

Working:

use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
$configurationManager = GeneralUtility::makeInstance(ConfigurationManagerInterface::class);

\TYPO3\CMS\Core\Utility\DebugUtility::debug($configurationManager->getContentObject()->data);

Result: The record stuff

TYPO3 12.4.5 Flux: Latest from today (2023-09-04)

Konafets commented 10 months ago

I have the same issue while sending a Powermail formular.

PHP Warning: Undefined array key "pi_flexform" in /Users/user/Sites/example.com/public/typo3conf/ext/powermail/Classes/Domain/Validator/AbstractValidator.php line 147

TYPO3 11.5.30 Flux: 10.0.3 Powermail: 10.7.3

NamelessCoder commented 10 months ago

Duplicate of https://github.com/FluidTYPO3/flux/issues/2126, please follow that issue for status.

sdelcroix commented 10 months ago

@steffen-hph Could you test the last development version and confirm that it fixes your issue ?

steffen-hph commented 10 months ago

@sdelcroix I confirm this fix 👍