-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Description
Bug Report
Title: PHP Warning: Undefined global variable $TYPO3_REQUEST in BackendUserAuthentication.php after container migration
After running the upgrade step EXT:container: Migrate "container" sorting via the Install Tool, a PHP warning was triggered:
PHP Warning: Undefined global variable $TYPO3_REQUEST
in vendor/typo3/cms-core/Classes/Authentication/BackendUserAuthentication.php line 1842
TYPO3\CMS\Core\Error\Exception thrown in
vendor/typo3/cms-core/Classes/Error/ErrorHandler.php line 141
Requested URL:
/typo3/install.php?install%5Bcontroller%5D=upgrade&install%5Bcontext%5D=
Steps to Reproduce
- Open the Install Tool (
/typo3/install.php) - Run the upgrade action:
EXT:container: Migrate "container" sorting - Observe the PHP warning in the output or PHP error log.
Expected Behavior
No PHP warning should occur during or after the migration process.
Additional Context
- The warning occurred only when logged in via the Install Tool, not when logged in as a normal backend user.
- After logging into the backend normally, the issue did not occur again.
- It seems
$GLOBALS['TYPO3_REQUEST']is missing or uninitialized in the Install Tool execution context. - Possibly related to code in
BackendUserAuthenticationthat expects$TYPO3_REQUESTto be globally available.
Possible Cause / Suggestion
The Install Tool likely runs in a limited bootstrap context without initializing the global $TYPO3_REQUEST.
A null or fallback check could be added in BackendUserAuthentication before accessing the variable.
System Information
| Component | Version |
|---|---|
| TYPO3 | 13.4.19 |
| EXT:container | 3.1.10 |
| PHP | 8.3.27 |
🏷️ Labels
bug typo3-13 container-extension install-tool
🧾 Notes
This issue only appears in Install Tool context and not in regular backend sessions, suggesting a missing initialization step or dependency during the upgrade routine.
Metadata
Metadata
Assignees
Labels
No labels