Improve TYPO3 Exception 1436717322 or restore original text and improve this?
sypets opened this issue · 2 comments
https://docs.typo3.org/typo3cms/exceptions/main/en-us/Exceptions/1436717322.html
This exception text provides misleading information:
- .env is of no use if dotenv-connector is not used
- environment variables can also be defined elsewhere (e.g. in Webserver configuration)
- BASE_DOMAIN is of no use unless BASE_DOMAIN is the variable which has been defined. Any other variable name can be used, see https://docs.typo3.org/c/typo3/cms-core/11.5/en-us/Changelog/9.5/Feature-86409-AllowUsageOfEnvironmentVariablesInSiteConfiguration.html
- this is a solution for only one possible error.
- deleting typo3temp/Cache is not useful if Composer is used (the suggestion with .env implies that it is)
Also, I noticed the original text contained more context which had been removed, see: https://github.com/TYPO3-Documentation/TYPO3CMS-Exceptions/blame/d23df932963463949139656542de5f17a212d712/Documentation/Exceptions/1436717322.rst
The context might have been helpful here, it shows that it is a very specific suggestion for one specific usecase.
dotenv-connector is not the only one. One can also use symfony/dotenv or vlucas/phpdotenv. But I agree, this should be made more clear.
Additionally, it is config.yaml, not config.xml.
Concerning the deleted comment:
I suppose that backslashes in any URL are certainly a bad idea in general.
Nevertheless it leads to the config.yaml as source of a problem.