Theme and stylesheet loading issues
-
excuse me
on upgrade
info: [2014/2/20] Activating NodeBB Essential Widgets
warn: [plugins/nodebb-plugin-youtube] staticDir is deprecated, use staticDirs instead
warn: [plugins/nodebb-plugin-youtube] staticDir is deprecated, define CSS files with new staticDirs instead.
warn: [plugins/nodebb-plugin-blog-comments] staticDir is deprecated, use staticDirs instead
warn: [plugins/nodebb-widget-essentials] staticDir is deprecated, use staticDirs instead
warn: [plugins/nodebb-widget-essentials] staticDir is deprecated, define CSS files with new staticDirs instead.
warn: [plugins/nodebb-plugin-chat-emote] staticDir is deprecated, use staticDirs instead
warn: [plugins/nodebb-plugin-chat-emote] staticDir is deprecated, define CSS files with new staticDirs instead.
warn: [plugins/nodebb-plugin-sso-github] staticDir is deprecated, use staticDirs instead
warn: [plugins/nodebb-plugin-imgur] staticDir is deprecated, use staticDirs instead
warn: [plugins/nodebb-plugin-sso-google] staticDir is deprecated, use staticDirs instead
warn: [plugins/nodebb-plugin-rss] staticDir is deprecated, use staticDirs instead
warn: [plugins/nodebb-plugin-sso-twitter] staticDir is deprecated, use staticDirs instead
warn: [plugins/nodebb-plugin-emoji-skype] staticDir is deprecated, use staticDirs instead
warn: [plugins/nodebb-plugin-emoji-skype] staticDir is deprecated, define CSS files with new staticDirs instead.
warn: [plugins/nodebb-plugin-cash] staticDir is deprecated, use staticDirs instead
warn: [plugins/nodebb-plugin-cash] staticDir is deprecated, define CSS files with new staticDirs instead.
warn: [plugins/nodebb-plugin-vimeo] staticDir is deprecated, use staticDirs instead
warn: [plugins/nodebb-plugin-vimeo] staticDir is deprecated, define CSS files with new staticDirs instead.
info: Enabling 'trust proxy'
error: [app] Encountered Uncaught Exception: path must be a string
TypeError: path must be a string
at Object.fs.readdir (fs.js:649:11)
at Object.Meta.themes.get (/home/ubuntu/community/src/meta.js:89:7)
at /home/ubuntu/community/src/webserver.js:350:19
at /home/ubuntu/community/node_modules/async/lib/async.js:505:21
at /home/ubuntu/community/node_modules/async/lib/async.js:221:13
at /home/ubuntu/community/node_modules/async/lib/async.js:105:13
at Array.forEach (native)
at _each (/home/ubuntu/community/node_modules/async/lib/async.js:32:24)
at async.each (/home/ubuntu/community/node_modules/async/lib/async.js:104:9)
at _asyncMap (/home/ubuntu/community/node_modules/async/lib/async.js:220:9)
error: [app] Could not restart server. Shutting down.
info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
info: [app] Database connection closed.
info: [app] Goodbye! -
###themePath not a string? or file names not string? possible hidden files .file?
fs.readdir(themePath, function (err, files) {
async.filter(files, function (file, next) {
fs.stat(path.join(themePath, file), function (err, fileStat) {
if (err) {
return next(false);
}next((fileStat.isDirectory() && file.slice(0, 13) === 'nodebb-theme-')); }); }, function (themes) { async.map(themes, function (theme, next) { var config = path.join(themePath, theme, 'theme.json'); if (fs.existsSync(config)) { fs.readFile(config, function (err, file) { if (err) return next(); else { var configObj = JSON.parse(file.toString()); next(err, configObj); } }); } else { next(); } }, function (err, themes) { themes = themes.filter(function (theme) { return (theme !== undefined); }); callback(null, themes); }); }); });
-
It is better to do that from the admin control panel.
But if you don't have access to the ACP.
hget group:gid administrators "1" <- use this value sadd gid:1:members <uid>
replace
<uid>
with your user id.To get the user id use :
hget username:uid <yourusername>