eep
Posts
-
URIError: URI malformed -
URIError: URI malformedI fixed it by added a encodeURIComponent() method:
var topic_url = tid + (req.params.slug ? '/' + req.params.slug : '');
to
var topic_url = tid + (req.params.slug ? '/' + encodeURIComponent(req.params.slug) : '');
-
URIError: URI malformedplatform: win7
browser: IE9when I using NodeBB with my local lanuage (chinese),I'm trying to write some posts,when the title is some chinese characters, It will cause an URI error in IE9.Such as "%E6%B5%8B%E8%AF%95" which mean "Test".
decodeURIComponent('%E6%B5%8B%E8%AF%95') => 测试
so when using IE9 I can't open any posts which title has chinese character.
-
Uncaught Exception: Cannot call method 'replace' of undefinedwarn: Invalid meta tag.[object Object]
{ property: 'keywords', content: '' }
warn: Invalid meta tag.[object Object]
{ name: 'description', content: '' }with the code:
console.log(tag)```
-
Uncaught Exception: Cannot call method 'replace' of undefinedwhen I installed in my local vagrant, I got the error.
error: [app] Encountered Uncaught Exception: Cannot call method 'replace' of undefined
TypeError: Cannot call method 'replace' of undefined
at /vagrant/NodeBB/src/webserver.js:151:31
at Array.map (native)
at /vagrant/NodeBB/src/webserver.js:150:77
at Object.Plugins.fireHook (/vagrant/NodeBB/src/plugins.js:339:5)
at Function.app.build_header (/vagrant/NodeBB/src/webserver.js:103:11)
at async.waterfall.topic_url (/vagrant/NodeBB/src/webserver.js:639:10)
at fn (/vagrant/NodeBB/node_modules/async/lib/async.js:582:34)
at Object._onImmediate (/vagrant/NodeBB/node_modules/async/lib/async.js:498:34)
at processImmediate [as _immediateCallback] (timers.js:330:15)
info: [app] Restarting...
info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
info: [app] Database connection closed.
info: [app] Goodbye!
info: NodeBB v0.3.2 Copyright (C) 2013 DesignCreatePlay Inc.
info: This program comes with ABSOLUTELY NO WARRANTY.
info: This is free software, and you are welcome to redistribute it under certain conditions.
info:
info: Time: Thu Feb 27 2014 05:17:55 GMT+0000 (UTC)
info: Initializing NodeBB v0.3.2
info: * using configuration stored in: /vagrant/NodeBB/config.json
info: * using redis store at 127.0.0.1:6379
info: * using themes stored in: /vagrant/NodeBB/node_modules
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-theme-lavender] staticDir is deprecated, use staticDirs instead
info: NodeBB attempting to listen on: 0.0.0.0:8080
info: NodeBB Ready