Bug #86617

Trying to get property 'workspace' of non-object when running slug upgrade wizard

Added by Tymoteusz Motylewski 5 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2018-10-10
Due date:
% Done:

100%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
On Location Sprint

Description

Plenty of notices are thrown when running slug upgrade wizard.

PHP Notice: Trying to get property 'workspace' of non-object in /var/www/html/typo3/sysext/backend/Classes/Utility/BackendUtility.php on line 4037
PHP Notice: Trying to get property 'workspace' of non-object in /var/www/html/typo3/sysext/backend/Classes/Utility/BackendUtility.php on line 4290
PHP Notice: Trying to get property 'workspace' of non-object in /var/www/html/typo3/sysext/backend/Classes/Utility/BackendUtility.php on line 4037

Example stack trace:

BackendUtility.php:4290, TYPO3\CMS\Backend\Utility\BackendUtility::getMovePlaceholder()
BackendUtility.php:494, TYPO3\CMS\Backend\Utility\BackendUtility::getPageForRootline()
BackendUtility.php:387, TYPO3\CMS\Backend\Utility\BackendUtility::BEgetRootLine()
SlugHelper.php:545, TYPO3\CMS\Core\DataHandling\SlugHelper->resolveParentPageRecord()
SlugHelper.php:169, TYPO3\CMS\Core\DataHandling\SlugHelper->generate()
PopulatePageSlugs.php:167, TYPO3\CMS\Install\Updates\PopulatePageSlugs->populateSlugs()
PopulatePageSlugs.php:99, TYPO3\CMS\Install\Updates\PopulatePageSlugs->executeUpdate()
UpgradeWizardsService.php:397, TYPO3\CMS\Install\Service\UpgradeWizardsService->executeWizard()
UpgradeController.php:967, TYPO3\CMS\Install\Controller\UpgradeController->upgradeWizardsExecuteAction()
RequestHandler.php:205, TYPO3\CMS\Install\Http\RequestHandler->handle()
Application.php:65, TYPO3\CMS\Install\Http\Application->handle()
AbstractApplication.php:110, TYPO3\CMS\Install\Http\Application->run()
install.php:104, {closure:/var/www/html/typo3/install.php:101-105}()
install.php:105, {main}()

Associated revisions

Revision 61db15e0 (diff)
Added by Anja Leichsenring 5 months ago

[BUGFIX] Avoid PHP warnings in BackendUtility if no BE user is set

BackendUtility no longer tries to resolve the workspace property
of a not set BackendUserAuthentication. This prevents warnings from
being thrown.

Change-Id: I30d739273a0107e70987beadd3649d8b6bb67f60
Resolves: #86617
Releases: master
Reviewed-on: https://review.typo3.org/58752
Reviewed-by: Daniel Goerz <>
Tested-by: Daniel Goerz <>
Tested-by: TYPO3com <>
Reviewed-by: Benni Mack <>
Tested-by: Benni Mack <>

History

#1 Updated by Susanne Moog 5 months ago

  • Sprint Focus set to On Location Sprint

#2 Updated by Gerrit Code Review 5 months ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58752

#3 Updated by Gerrit Code Review 5 months ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58752

#4 Updated by Gerrit Code Review 5 months ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58752

#5 Updated by Gerrit Code Review 5 months ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58752

#6 Updated by Anja Leichsenring 5 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF