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
If the theme is missing, admin crashes #981
Comments
There shouldn't be any UI to handle this - but it should attempt to fallback to a default theme. |
@JohnONolan Agreed that a UI isn't needed to handle this, but the admin shouldn't die when the theme is missing. All that needs to happen is not crash and allow the user to go pick their new theme or even just hit save where it would go back to the default theme. Should Ghost still run on the frontend without the theme falling back to the default? or throw the error that the theme wasn't found? Then what to do if the default theme isn't there? |
I have to double check, but as far as I know the fallback if the activeTheme is not found is to capser. If no theme is found the application doesn't start. It is currently not possible to start without a valid theme. Making this possible would require some investigation. I think that starting without a theme would make sense if there is a way to upload themes using the GUI. |
In addition to the original post, the admin UI also crashes if a plugin theme has capital letters in it's folder name. Note that the theme is still detected by Ghost and allows you to choose it, which makes this a particularly annoying bug. |
This happen to me as well, I changed the casing of the active theme and admin crashed. |
@BiosElement / @matsilva: On which OS are you? It works fine for me on Linux/Mac. |
@pmgarman Everything works for me on current master (deleted theme, restarted Ghost, backend works and allows me to select new theme). Can you re-evaluate the issue? Otherwise I would vote for closing this as fixed/worksforme. |
@halfdan I'm running Linux. It does appear to have been fixed and in-fact does not crash and works fine with Caps. I believe this has been fixed at some point. |
@halfdan Mac OS X Maverick. |
Attempt to reproduce** |
I can no longer reproduce this, unless partials are involved. Leaving it open until @Gotvich's #1606 is merged. |
This seems to be resolved now. |
I downloaded casper theme, added some js files and then uploaded again. My instance is in Heroku, i think the dyno just deleted the files and now ghost cannot find it. I am getting: 500 The currently active them I cannot access the admin in order to change it. What can I do? UPDATE I was able to access the admin using: https://*/ghost/1/, then just activated previous theme. |
@alcance you saved my ass. |
(On the latest nightly)
If you remove or rename a theme's directory and then restart Ghost everything is blank. Template issues like this should probably not crash the backend, letting the user go in and pick a new theme.
http://c.pmgr.mn/AgWF
Terminal Output
The text was updated successfully, but these errors were encountered: