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

Deal with bad theme config more gracefully. #4220

Merged
merged 3 commits into from
Jan 30, 2025

Conversation

demiankatz
Copy link
Member

@sturkel89 noticed that, following the removal of the bootstrap3 themes, putting an invalid theme value in config.ini resulted in a blank white screen in browser due to an uncaught exception. Investigating that revealed an orphaned bootprint3 reference in the code. I updated that and added some logic to attempt to display the error page if an exception is thrown during theme initialization. This doesn't result in full valid HTML, but it should be better than a blank white screen for troubleshooting purposes.

@demiankatz demiankatz added this to the 11.0 milestone Jan 29, 2025
@demiankatz demiankatz requested a review from EreMaijala January 29, 2025 20:51
Copy link
Contributor

@EreMaijala EreMaijala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Just a minor nitpick...

module/VuFind/src/VuFind/Bootstrapper.php Outdated Show resolved Hide resolved
@demiankatz demiankatz requested a review from EreMaijala January 30, 2025 11:39
@demiankatz demiankatz merged commit c480b43 into vufind-org:dev Jan 30, 2025
6 checks passed
@demiankatz demiankatz deleted the more-graceful-bad-theme branch January 30, 2025 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants