How to disable/enable themes from cli
-
I recently installed nodebb-theme-quickstart through npm and I, by mistake, selected this theme in admin panel to be my current theme without changing package.json, theme.json, plugin.json files. I then started my nodebb.
I receive a blank screen in my browser also my admin section is blank,..I then, renamed the theme from quickstart to something else. also changed all instances of that word in the following files:
package.json
plugin.json
theme.json
as mentioned in https://github.com/NodeBB/nodebb-theme-quickstart , I then again started my nodebb, but I still see blank screen in my browser, I then checked the log, it shows following error6/4 10:51 [17398] - error: Error: [[error:theme-not-found]]
at /home/humanbot/PhpstormProjects/nodebb/src/meta/themes.js:142:21
at /home/humanbot/PhpstormProjects/nodebb/node_modules/async/lib/async.js:726:13
at /home/humanbot/PhpstormProjects/nodebb/node_modules/async/lib/async.js:52:16
at done (/home/humanbot/PhpstormProjects/nodebb/node_modules/async/lib/async.js:246:17)
at /home/humanbot/PhpstormProjects/nodebb/node_modules/async/lib/async.js:44:16
at /home/humanbot/PhpstormProjects/nodebb/node_modules/async/lib/async.js:723:17
at /home/humanbot/PhpstormProjects/nodebb/node_modules/async/lib/async.js:167:37
at /home/humanbot/PhpstormProjects/nodebb/src/meta/themes.js:62:6
at /home/humanbot/PhpstormProjects/nodebb/node_modules/async/lib/async.js:52:16
at /home/humanbot/PhpstormProjects/nodebb/node_modules/async/lib/async.js:361:13
at /home/humanbot/PhpstormProjects/nodebb/node_modules/async/lib/async.js:52:16
at done (/home/humanbot/PhpstormProjects/nodebb/node_modules/async/lib/async.js:246:17)
at /home/humanbot/PhpstormProjects/nodebb/node_modules/async/lib/async.js:44:16
at /home/humanbot/PhpstormProjects/nodebb/node_modules/async/lib/async.js:358:17
at /home/humanbot/PhpstormProjects/nodebb/src/meta/themes.js:55:7
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
[cluster] Child Process (17398) has exited (code: 0, signal: null)I still see white screen, I then did some googling and tried finding if I can disable the theme from cli and found this topic https://community.nodebb.org/topic/1270/disable-plugin-from-cli where it mentions that we can reset the plugin.
So I did ./nodebb reset -p nodebb-theme-quickstart and it shows me the message like this ,
6/4 10:55 [17461] - info: [reset] Pluginnodebb-theme-quickstart
disabledBut still I have not luck, I still see the white screen, Is there any way to revert back my default theme??? Or, is there any way to fix my error which I acquired by selecting the quickstart as my current theme without changing any details initially.
**note: I have now changed the details of quickstart theme but I still see the blank screen. How can I fix this?
-
@mkarmocha
./nodebb reset -t
will reset the theme to be the default theme... Persona -
@mkarmocha if you are using the latest stable release then you can also use
./nodebb reset -t theme-name
to switch to a specified theme