Skip to content

Exception when importing with impexp over CLI and powermail is in use #1391

Description

@einpraegsam

We just used TYPO3 14 with powermail 14.0.0 and https://packagist.org/packages/typo3/cms-impexp.
There is a small tree with some powermail forms and plugins.

Export without problems:

/vendor/bin/typo3 impexp:export --pid=31 --levels=999 --table=_ALL --include-related=_ALL --save-files-outside-export-file --type=xml -- pid31-export

But import fails:

./vendor/bin/typo3 impexp:import -v -- fileadmin/user_upload/_temp_/importexport/pid31-export.xml 134004

With:

PHP Warning: Undefined global variable $TYPO3_REQUEST in /app/app/vendor/in2code/powermail/Classes/Hook/CreateMarker.php line 72

Local workarround is to temporarely change:

# \In2code\Powermail\Hook\CreateMarker::initialize:72
$this->data = [];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions