Join Discord
Powered by
Custom 'Boot Failed' screen ?
# help-with-umbraco
j
Jonathon Cove
07/25/2024, 7:41 AM
I have a client requesting a custom message on the 'Boot Failed' screen which appears on a bad startup. I can't find anything online about this, but I have my fingers crossed for a setting in UmbracoConfig 🤞 . Anyone have any ideas?
https://cdn.discordapp.com/attachments/1265936827240546368/1265936827550797895/image.png?ex=66a3530b&is=66a2018b&hm=3985bf9923d5a757a5fc750123262c6b5a0231b2be9bfc851017228f8e2793b9&
m
Matt Wise
07/25/2024, 7:49 AM
Try adding this html file to your wwwroot folder - config/errors/BootFailed.html
Matt Wise
07/25/2024, 7:50 AM
Looking at the middleware its first attempt is for that followed by one in umbraco/views/errors/BootFailed.html
Matt Wise
07/25/2024, 7:51 AM
Failing that you would probably need to add your on middleware that overrides the bootfailed one you can see hows its wired up and the class via this search -
https://github.com/search?q=repo%3Aumbraco%2FUmbraco-CMS%20BootFailedMiddleware&type=code
j
Jonathon Cove
07/25/2024, 9:38 AM
Thanks Matt! I'll try that.
r
rasmusjp
07/25/2024, 10:50 AM
There's some info about customising error pages in the docs, including the boot failed one
https://our.umbraco.com/Documentation/Tutorials/Custom-Error-Pages/#errors-with-booting-a-project
(I assume you're on v8 given the tag)
51
Views
Previous
Next