question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

If the theme is missing, admin crashes

See original GitHub issue

(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

ERROR: The currently active theme GhostBacker is missing.


ERROR: The currently active theme GhostBacker is missing.
ErrorPage
Ghost caught a processing error in the middleware layer.

Error: The currently active theme GhostBacker is missing.
    at Object.errors.throwError (/home/pmgarman/ghost/core/server/errorHandling.js:26:19)
    at Object.errors.logAndThrowError (/home/pmgarman/ghost/core/server/errorHandling.js:69:14)
    at Object.manageAdminAndTheme [as handle] (/home/pmgarman/ghost/core/server.js:214:24)
    at next (/home/pmgarman/ghost/node_modules/express/node_modules/connect/lib/proto.js:190:15)
    at next (/home/pmgarman/ghost/node_modules/express/node_modules/connect/lib/proto.js:165:78)
    at next (/home/pmgarman/ghost/node_modules/express/node_modules/connect/lib/proto.js:165:78)
    at next (/home/pmgarman/ghost/node_modules/express/node_modules/connect/lib/proto.js:165:78)
    at Object.favicon [as handle] (/home/pmgarman/ghost/node_modules/express/node_modules/connect/lib/middleware/favicon.js:77:7)
    at next (/home/pmgarman/ghost/node_modules/express/node_modules/connect/lib/proto.js:190:15)
    at Object.logger (/home/pmgarman/ghost/node_modules/express/node_modules/connect/lib/middleware/logger.js:156:5) 


ERROR: Theme error template not found
Add an error.hbs template to the theme for customised errors.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
alcancecommented, Jun 2, 2017

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 casper-2 is missing.

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.

0reactions
Stonocommented, Jul 6, 2017

@alcance you saved my ass.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Admin crashes when trying to edit page after theme update to ...
I can edit the page content in the Cornerstone editor with no problem, but if I want to open the normal wordpress page...
Read more >
Every time I “Update” or “Publish” a page the WP admin crashes
Every time I try to publish a new page the admin page crashes and takes me to… ... There were no problems with...
Read more >
My wordpress admin page is crashing | WordPress.com Forums
Hi, My wordpress admin page keeps crashing when I try to login and make changes to ... If the log-in information is lost...
Read more >
Wordpress theme crashed, and wp-admin not working - php ...
Go to this folder /home3/feelthespiri/public_html/pgscleaning.co.uk/wp-content/plugins/meta-box/ and rename meta-box and acces your admin ...
Read more >
Crash in one user account, but no crash in admin account
I am able, however, to access these apps thru my admin account without any problem. My error when I attempt to open Word...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found