jansmolders86 / mediacenterjs

A HTML/CSS/Javascript (NodeJS) based Media center
http://mediacenterjs.com
1.29k stars 245 forks source link

stuck on "loading, Please wait..." when accessing music #101

Closed arnaudbey closed 10 years ago

arnaudbey commented 10 years ago

and got this error :

Database error: Error: Error: near line 1: no such table: albums

/home/arnaud/htdocs/node_modules/mediacenterjs/apps/music/music-functions.js:118
            if (typeof rows !== 'undefined' && rows.length > 0){
                                                   ^
TypeError: Cannot read property 'length' of null
    at EventEmitter.<anonymous> (/home/arnaud/htdocs/node_modules/mediacenterjs/apps/music/music-functions.js:118:52)
    at Socket.onerror (/home/arnaud/htdocs/node_modules/mediacenterjs/node_modules/dblite/build/dblite.node.js:225:16)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Socket.<anonymous> (_stream_readable.js:745:14)
    at Socket.EventEmitter.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:407:10)
    at emitReadable (_stream_readable.js:403:5)
    at readableAddChunk (_stream_readable.js:165:9)
    at Socket.Readable.push (_stream_readable.js:127:10)
    at Pipe.onread (net.js:528:21)
Child process exited

I don't have this when I wanna access to movies. I'm on Crunchbang (debian wheezy)

jansmolders86 commented 10 years ago

This looks like the same issue as #91 Could you please confirm you have the latest version of MCJS?

arnaudbey commented 10 years ago

It's ok with a git installation (on the c427d5faab commit) I got this error with an install through npm (installed this morning)

jansmolders86 commented 10 years ago

Aah I understand. I need to push a new version to NPM for the latest version to be used. The fix was not yet pushed to NPM so you got an older version. Sorry for the mixup!

arnaudbey commented 10 years ago

no problem, happens ;)