Skip to content

[Bug] PasswordValidator crashes if pi_flexform is NULL (TYPO3 13) #689

Closed

Description

@PgDavitec

Version: femanager 13.2.1
TYPO3: 13.x

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.

Activity

  1. sbusemann commented on Feb 16, 2026

    @sbusemann
    Contributor

    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.

  2. PgDavitec commented on Feb 19, 2026

    @PgDavitec
    Author

    @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.

  3. removed this from the _under investigation milestone on Feb 20, 2026
  4. sbusemann commented on Feb 20, 2026

    @sbusemann
    Contributor

    We are reworking the configuration handling in general

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions