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
I have checked that the bug exists in the dev-development branch
Yes
I have checked that there are no already open issues or recently closed issues about this bug
Yes
Describe the bug
When cloning pages from a command line command some flux hook eventually calls RecordService::isBackendOrPreviewContext(), which fails. The method itself calls ApplicationType::fromRequest() with the contents from $GLOBALS['TYPO3_REQUEST'], which is null when called from a command line command, causing it to fail with the message: TypeError: TYPO3\CMS\Core\Http\ApplicationType::fromRequest(): Argument #1 ($request) must be of type Psr\Http\Message\ServerRequestInterface, null given.
I have checked that the bug exists in the
dev-development
branchYes
I have checked that there are no already open issues or recently closed issues about this bug
Yes
Describe the bug
When cloning pages from a command line command some flux hook eventually calls
RecordService::isBackendOrPreviewContext()
, which fails. The method itself callsApplicationType::fromRequest()
with the contents from$GLOBALS['TYPO3_REQUEST']
, which isnull
when called from a command line command, causing it to fail with the message:TypeError: TYPO3\CMS\Core\Http\ApplicationType::fromRequest(): Argument #1 ($request) must be of type Psr\Http\Message\ServerRequestInterface, null given
.Relevant stack trace:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
In previous versions (9.x) of Flux the cloning worked without a problem.
Thanks for your help, it is greatly appreciated!
Cheers,
Ole.
The text was updated successfully, but these errors were encountered: