You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] PasswordValidator crashes if pi_flexform is NULL (TYPO3 13) #689
When using the plugin femanager_invitation, the corresponding content element does not contain a FlexForm configuration. Therefore, the database field pi_flexform is NULL.
When submitting the form, the following error occurs:
TypeError:
TYPO3\CMS\Core\Utility\GeneralUtility::xml2array():
Argument #1 ($string) must be of type string, null given
The exception is triggered in:
femanager/Classes/Domain/Validator/PasswordValidator.php (line 94) $flexFormValues = GeneralUtility::xml2array($this->cObj->data['pi_flexform']);
Cause
$this->cObj->data['pi_flexform'] is NULL if the content element has no FlexForm configuration.
In TYPO3 13, GeneralUtility::xml2array() strictly requires a string, so passing NULL results in a TypeError.
Sorry, I found out that the core was my fault. I removed the whole pi_flexform field.
So maybe as little improvement hint:
The line GeneralUtility::xml2array($this->cObj->data['pi_flexform']) can´t handle the default value of a field that is not mandatory for implementation.
Activity
sbusemann commentedon Feb 16, 2026
If you create a new page and add an invite plugin to the page - add no data to the plugin, the data xml is created and the plugin works.
The invite plugin does not support usage without a real plugin element.
PgDavitec commentedon Feb 19, 2026
@sbusemann
Sorry, I found out that the core was my fault. I removed the whole pi_flexform field.
So maybe as little improvement hint:
The line GeneralUtility::xml2array($this->cObj->data['pi_flexform']) can´t handle the default value of a field that is not mandatory for implementation.
sbusemann commentedon Feb 20, 2026
We are reworking the configuration handling in general