Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command powermail:cleanupUnusedUploads 'uploads/tx_powermail/' fails #1188

Open
einpraegsam opened this issue Nov 26, 2024 · 0 comments
Open

Comments

@einpraegsam
Copy link
Collaborator

einpraegsam commented Nov 26, 2024

Errormessage in Scheduler when called from CLI:

Execution failed: 0, Unable to call method "getQueryParams" of non-object "request".

I'm not 100% sure why this message pops up in TYPO3 12.4.22 with powermail 12.5.0 but I just copied code from EXT:lux commands (as part of TYPO3 13) that seems to help:

    public function execute(InputInterface $input, OutputInterface $output): int
    {
        Bootstrap::initializeBackendAuthentication();
        $configurationManager = GeneralUtility::makeInstance(ConfigurationManagerInterface::class);
        $configurationManager->setRequest(
            (new ServerRequest())->withAttribute('applicationType', SystemEnvironmentBuilder::REQUESTTYPE_BE)
        );

        $usedUploads = $this->getUsedUploads();
        ...

See: https://github.com/in2code-de/lux/blob/develop/Classes/Command/ExtbaseCommandTrait.php

Even if I thought this was only relevant for TYPO3 13, it seems also to help here.

Internal issue: https://projekte.in2code.de/issues/68215

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant