Seems to be doing it for every file I try. I'll export my data and re-install.
Stackoverload
Posts
-
Error: Invalid format: 0 -
Error: Invalid format: 0I'm uploading a .png, or well... trying to haha.
-
Error: Invalid format: 05f3473142e017918c32286466187e73ceefe0d7e
-
Error: Invalid format: 0I was attemping to upload a file for my profile picture (in my profile page)
and I had a fatal error throw:26/2 13:41 [5564] - error: Error: Invalid format: 0 at getBytesPerComponent (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\exif.js:38:10) at readExifTag (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\exif.js:45:23) at readIFDSection (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\exif.js:88:9) at Object.module.exports.parseTags (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\exif.js:130:3) at C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\parser.js:143:29 at Object.module.exports.parseSections (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\jpeg.js:21:4) at Object.Parser.parse (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\parser.js:140:8) at exifRotate (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\index.js:269:42) at Jimp.parseBitmap (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\index.js:250:13) at C:\Users\Jacob\Desktop\Forum\node_modules\jimp\index.js:169:29 at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3) Error: Invalid format: 0 at getBytesPerComponent (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\exif.js:38:10) at readExifTag (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\exif.js:45:23) at readIFDSection (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\exif.js:88:9) at Object.module.exports.parseTags (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\exif.js:130:3) at C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\parser.js:143:29 at Object.module.exports.parseSections (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\jpeg.js:21:4) at Object.Parser.parse (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\parser.js:140:8) at exifRotate (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\index.js:269:42) at Jimp.parseBitmap (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\index.js:250:13) at C:\Users\Jacob\Desktop\Forum\node_modules\jimp\index.js:169:29 at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3) 26/2 13:41 [5564] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. 26/2 13:41 [5564] - info: [app] Database connection closed. 26/2 13:41 [5564] - info: [app] Web server closed to connections. 26/2 13:41 [5564] - info: [app] Shutdown complete.
NOTE, this was after running
git pull
for the latest fix on uploading default profile pictures. -
Latest version, error when uploading default profile image: error uploading, code : 0I'm running on Windows 7, I've tried running via command prompt as admin, as well as power shell.
I launch using node app.js, since ./nodebb start doesn't seem to run anything on localhost.Here's the error.
26/2 10:55 [5940] - error: /api/admin/uploadDefaultAvatar Error: Can't set headers after they are sent. at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:335:11) at ServerResponse.header (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\response.js:718:10) at ServerResponse.send (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\response.js:163:12) at ServerResponse.json (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\response.js:249:15) at C:\Users\Jacob\Desktop\Forum\src\routes\index.js:176:16 at Layer.handle [as handle_request] (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\layer.js:95:5 ) at trim_prefix (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:312:13) at C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:280:7 at Function.process_params (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:330:12) at next (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:271:10) at serveStatic (C:\Users\Jacob\Desktop\Forum\node_modules\express\node_modules\serve-static\index.js:74:16) at Layer.handle [as handle_request] (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\layer.js:95:5 ) at trim_prefix (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:312:13) at C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:280:7 at Function.process_params (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:330:12) at next (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:271:10) Error: Can't set headers after they are sent. at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:335:11) at ServerResponse.header (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\response.js:718:10) at ServerResponse.send (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\response.js:163:12) at ServerResponse.json (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\response.js:249:15) at C:\Users\Jacob\Desktop\Forum\src\routes\index.js:204:8 at Layer.handle_error (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\layer.js:71:5) at trim_prefix (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:310:13) at C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:280:7 at Function.process_params (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:330:12) at next (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:271:10) at Layer.handle [as handle_request] (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\layer.js:97:5 ) at trim_prefix (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:312:13) at C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:280:7 at Function.process_params (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:330:12) at next (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:271:10) at serveStatic (C:\Users\Jacob\Desktop\Forum\node_modules\express\node_modules\serve-static\index.js:74:16)
-
Call to Socket.IO from register.js returning err, as an empty object { }Ooops! I'm sorry haha, this headache is giving me coding troubles. Thanks!
-
Call to Socket.IO from register.js returning err, as an empty object { }I'm making a call from register.js to socket.io using the following function
function validateInviteCode(code, use, callback) { callback = callback || function() {}; var invite_code_notify = $('#invite_code_notify'); if (!code.includes(':') || code.split(':')[1].length != 8) { showError(invite_code_notify, 'Invalid invite code'); return callback(); } socket.emit('plugins.invite.checkInviteCode', { code: code, use: use }, function(err, valid) { if (err) { console.log(err); app.alertError(err.message); return callback(); } console.log(valid); if (valid) { showSuccess(invite_code_notify, successIcon); } else { showError(invite_code_notify, 'Invalid invite code'); } callback(); }); }
and it's returning err as an empty object { }. This is my server-side listen for it:
checkInviteCode: function (socket, data, fn) {
checkCode(data.code, data.use, function(valid) {
console.log(data, valid);
fn(!socket.uid, valid);
});
} -
[meta/dependencies] Could not read: heapdumpI'm setting up NodeBB, running Node V0.12.0, with Redis for Windows V 3.0.X.
After running npm install, and then node app --setup, I ran node app and I get the following
error:
[meta/dependencies] Could not read: heapdumpAny ideas?
-
Getting user data from UIDJust saw this section on the git! Thank you so much for showing me an example ^_^
-
Grabbing multiple database objectsWonderful explanation! You are always on point when it comes to explaining things! Thank you so much!
-
Getting user data from UIDHello, I was wondering how I can get user data from the UID of the user,
I'm looking for groups they are in, and rep points. -
Grabbing multiple database objectsHi! I'm looking for a good way to store multiple objects, and be able to safely parse/edit them.
As-well as grab the objects by different data (ex: product_id, owner_uid, cost, etc.) such as you would be able to do with MySQL ("SELECT * FROMxxxx
WHERE data='value' ").Is it safe to just make an array of objects in a hash such as plugin:market:products and when I need to access it, grab the array parse it, remove/edit whatever data I need, and update the hash with the new array? Or would that be unsafe (Unsure how database calls are processed within NodeBB).
-
Proper way to store JSON data under a user?@psychobunny Perfect! I sent you a PM regarding such.
-
Proper way to store JSON data under a user?Plugin. Thanks! And yeah, that would be super helpful!
-
Why did you choose NodeBB?Pretty simple list
- Sexy base design
- Easy to use Admin panel
- Open Source
- NodeJS
- Real-time updates
-
Proper way to store JSON data under a user?Is there a proper way to store JSON data under a user in the database (via the UID), and if so what would be the best way to retrieve such?
-
Getting UID from socket.io event & managing events@yariplus Ahh, I should do such! Thanks
-
User images work fine locally, but not externally (online)Yes! latest build
-
Getting UID from socket.io event & managing eventsI see! Thanks! Is there a Doc for this? I haven't had luck finding anything
-
User images work fine locally, but not externally (online)Whenever a user uploads an image, I can see it perfectly fine on the server. Once I go online on my laptop, or anything other than the server the image doesn't show up for any user.