Project

General

Profile

Actions

Bug #87503

closed

Epic #83968: PSR-11 Initiative

ErrorPageController relies on an available PackageManager

Added by Benjamin Franzke over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
System/Bootstrap/Configuration
Start date:
2019-01-21
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When the ProductionExceptionHandler is used and an exception occures before the PackageManager has been initialized, the method ExtensionManagementUtility::extPath() can not be used, as it relies on the PackageManager to retrieve a packages path.
As ErrorPageController needs to be able to handle exception during early bootstrap it should bypass ExtensionManagementUtility/PackageManager to be always able to retrieve paths for required core extensions like core and backend.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #87175: activating SEO or Redirects core extension breaks the systemClosed2018-12-16

Actions
Actions #1

Updated by Benjamin Franzke over 5 years ago

  • Related to Bug #87175: activating SEO or Redirects core extension breaks the system added
Actions #2

Updated by Gerrit Code Review over 5 years 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/59507

Actions #3

Updated by Gerrit Code Review over 5 years ago

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

Actions #4

Updated by Benjamin Franzke over 5 years ago

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

Updated by Ronald Wopereis about 5 years ago

I get the error when a syntax error occurs in typo3conf/PackageStates.php

After adding couple of lines i could see that packageManager is EMPTY for key 'core'

Debug:
/usr/share/typo3/typo3_src-9.5.3/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php
added three lines at beginning of public static function extPath($key, $script = '')

if (empty(static::$packageManager)) {
throw new \BadFunctionCallException('TYPO3 Fatal Error: packageManager is EMPTY for key '.$key, 1234567890);
}
Actions #6

Updated by Benni Mack almost 5 years ago

  • Status changed from Resolved to Closed
Actions #7

Updated by Benjamin Franzke almost 5 years ago

  • Parent task set to #83968
Actions

Also available in: Atom PDF