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
Hi Nicole,
when invoking DataHandler via CLI (e.g. while importing with l10nmgr or something alike) the content_defender DataHandler Hook (\IchHabRecht\ContentDefender\Hooks\DatamapDataHandlerHook::processDatamap_beforeStart()) is called.
Inside the method isRecordAllowedByRestriction() the \TYPO3\CMS\Backend\Form\FormDataCompiler is called:
Due to the lack of a Request object, we run into the following lines of the compile() method:
if (!$result['request'] instanceof ServerRequestInterface) {
// @deprecated since v12: Throw a \RuntimeException in v13 instead.
trigger_error(
'When using FormDataCompiler, the current ServerRequestInterface object must be provided.',
E_USER_DEPRECATED
);
$result['request'] = $GLOBALS['TYPO3_REQUEST'];
}
Since there is no ServerRequestInterface in $result, we get a deprecation warning and since $GLOBALS['TYPO3_REQUEST'] is not set, we get a PHP warning on top.
This might be an issue in core, after all.
Anyway, thanks for your great extension.
Cheers
Daniel
The text was updated successfully, but these errors were encountered:
Hi Nicole,
when invoking DataHandler via CLI (e.g. while importing with l10nmgr or something alike) the content_defender DataHandler Hook (
\IchHabRecht\ContentDefender\Hooks\DatamapDataHandlerHook::processDatamap_beforeStart()
) is called.Inside the method
isRecordAllowedByRestriction()
the\TYPO3\CMS\Backend\Form\FormDataCompiler
is called:Due to the lack of a Request object, we run into the following lines of the
compile()
method:This has been introduced with https://review.typo3.org/c/Packages/TYPO3.CMS/+/78609
Since there is no
ServerRequestInterface
in$result
, we get a deprecation warning and since$GLOBALS['TYPO3_REQUEST']
is not set, we get a PHP warning on top.This might be an issue in core, after all.
Anyway, thanks for your great extension.
Cheers
Daniel
The text was updated successfully, but these errors were encountered: