Deprecation: #78193 - ExtensionManagementUtility::extRelPath()

See forge#78193


The method ExtensionManagementUtility::extRelPath() for resolving paths relative to the current script has been marked as deprecated.


Calling ExtensionManagementUtility::extRelPath() will trigger a deprecation log entry.

Affected Installations

Any TYPO3 instance with extensions or third-party scripts resolving paths with the method above.


Use alternatives for resolving paths. There are the following methods available:

  • ExtensionManagementUtility::extPath() - to resolve the full path of an extension

  • ExtensionManagementUtility::siteRelPath() - to resolve the location of an extension relative to PATH_site

  • GeneralUtility::getFileAbsFileName() - to resolve a file/path prefixed with EXT:myext

  • PathUtility::getAbsoluteWebPath() - used for output a file location (previously resolved with GeneralUtility::getFileAbsFileName()) that is absolutely prefixed for the web folder