Server Crash on plugin/search: TypeError: Cannot call method 'toLowerCase' of undefined
When I got to the plugin page and type "ldap" in the search box, the server crashed:
[2014-06-27 12:50:53.351] [INFO] ueberDB - Flushed 1 values
[2014-06-27 12:51:19.631] [ERROR] console - TypeError: Cannot call method 'toLowerCase' of undefined
at /home/etherpad/etherpad-lite/src/static/js/pluginfw/installer.js:87:108
at /home/etherpad/etherpad-lite/src/static/js/pluginfw/installer.js:66:20
at withNpm (/home/etherpad/etherpad-lite/src/static/js/pluginfw/installer.js:7:26)
at Object.exports.getAvailablePlugins (/home/etherpad/etherpad-lite/src/static/js/pluginfw/installer.js:63:3)
at Object.exports.search (/home/etherpad/etherpad-lite/src/static/js/pluginfw/installer.js:79:11)
at Socket.
I can confirm this using the latest git version and the latest version of node.js
Even listing the plugins cause this error:
[2014-07-01 13:48:38.775] [ERROR] console - RangeError: Invalid array length
at /var/www/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/get.js:97:15
at Array.forEach (native)
at /var/www/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/get.js:96:26
at cb (/var/www/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/request.js:57:9)
at RegClient.<anonymous> (/var/www/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/request.js:133:16)
at cb (/var/www/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/request.js:158:9)
at RegClient.<anonymous> (/var/www/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/request.js:312:12)
at Request._callback (/var/www/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/request.js:238:65)
at Request.self.callback (/var/www/etherpad-lite/src/node_modules/npm/node_modules/request/request.js:123:22)
at Request.emit (events.js:98:17)
Maybe related?
my error:
.com"},"repository":{"type":"git","url":"git://github.com/oJshua/servitude-conne
ct.git"},"time":{"modified":"2012-03-14T06:44:16.314Z"},"versions":{"0.0.2":"lat
est"},"keywords":["javascript","css","connect","middleware","sugar"]},"servlet":
{"name":"servlet","description":"Single thread, multiple host node application s
erver","dist-tags":{"latest":"0.0.7"},"maintainers":[{"name":"dschwen","email":"
[email protected]"}],"author":{"name":"Daniel Schwen","email":"[email protected]"},"re
pository":{"type":"git","url":"https://github.com/dschwen/node-servlet.git"},"ti
me":{"modified":"2013-11-11T18:45:23.579Z"},"versions":{"0.0.7":"latest"},"keywo
rds":["server","watch","multiple","reload"]},"servlr":{"name":"servlr","descript
ion":"Tiny HTTP server for development. Does livereload and opens in the browser
.","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"kavanagh","email":"ltk
[email protected]"}],"readmeFilename":"README.md","homepage":"https://github.com
/kavanagh/servlr","keywords":["livereload","HTTP Server"],"repository":{"type":"
git","url":"https://github.com/kavanagh/servlr"},"author":{"name":"Luke Kavanagh
","email":"[email protected]"},"bugs":{"url"
at Object.parse (native)
at RegClient.<anonymous> (F:\liming\app\etherpad-lite-develop\etherpad-lite-
develop\node_modules\ep_etherpad-lite\node_modules\npm\node_modules\npm-registry
-client\lib\request.js:266:23)
at Request._callback (F:\liming\app\etherpad-lite-develop\etherpad-lite-deve
lop\node_modules\ep_etherpad-lite\node_modules\npm\node_modules\npm-registry-cli
ent\lib\request.js:238:65)
at Request.self.callback (F:\liming\app\etherpad-lite-develop\etherpad-lite-
develop\node_modules\ep_etherpad-lite\node_modules\npm\node_modules\request\requ
est.js:123:22)
at Request.EventEmitter.emit (events.js:98:17)
at Request.<anonymous> (F:\liming\app\etherpad-lite-develop\etherpad-lite-de
velop\node_modules\ep_etherpad-lite\node_modules\npm\node_modules\request\reques
t.js:893:14)
at Request.EventEmitter.emit (events.js:117:20)
at IncomingMessage.<anonymous> (F:\liming\app\etherpad-lite-develop\etherpad
-lite-develop\node_modules\ep_etherpad-lite\node_modules\npm\node_modules\reques
t\request.js:844:12)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:910:16
npm ERR! registry error parsing json
npm WARN Building the local index for the first time, please be patient
npm WARN Building the local index for the first time, please be patient
npm WARN Building the local index for the first time, please be patient
FATAL ERROR: JS Allocation failed - process out of memory
Closing this in favor of https://github.com/ether/etherpad-lite/issues/2217