Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RenderPreProcessorHook TYPO3 v11 Error in Case of a compile css error #67

Open
ako-3004 opened this issue Jan 17, 2023 · 0 comments
Open

Comments

@ako-3004
Copy link

Hi Sven, I just found out that the part

if(!GeneralUtility::getApplicationContext()->isProduction()) {
       DebugUtility::debug($ex->getMessage());
}

at line 194 in RenderPreProcessorHook is not compatible with TYPO3 v11
I think you can replace by \TYPO3\CMS\Core\Core\Environment::getContext() != 'Production' according to https://docs.typo3.org/c/typo3/cms-core/11.1/en-us/Changelog/10.2/Deprecation-89631-UseEnvironmentAPIToFetchApplicationContext.html

To trigger this error, just remove write access to CSS output directory, for example

best regards,
Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant