• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Can't upload pictures!

Scheduled Pinned Locked Moved Bug Reports
8 Posts 3 Posters 2.9k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • aaronA Offline
    aaronA Offline
    aaron
    wrote on last edited by
    #1

    I need to fix this ASAP and I have no idea where to begin! Thanks in advance for any help.

    I just launched my forum and I can't upload images anywhere. I've tried uploading them as avatars, in new topics, and in replies. I always get either "Error: Undefined" or "Error: 0" in a faded red popup.

    Help me Obi Wan Kenobi; you are my only help. Thanks!
    Aaron

    1 Reply Last reply
    0
  • F Offline
    F Offline
    finid
    wrote on last edited by
    #2

    So what's the link to your site?

    1 Reply Last reply
    0
  • aaronA Offline
    aaronA Offline
    aaron
    wrote on last edited by
    #3

    It's down at the moment. Do you have something in mind for troubleshooting?

    1 Reply Last reply
    0
  • F Offline
    F Offline
    finid
    wrote on last edited by
    #4

    @aaron

    Nope, but if ou post any error message from your log files, that'll help the devs troubleshoot it better.

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #5

    Did you create an imgur app and put your client id in the admin panel? Or did you enable file uploading from admin > settings > post? Also make sure you are on the latest code. And as @planner mentioned if you have any errors in your console post them here.

    1 Reply Last reply
    0
  • aaronA Offline
    aaronA Offline
    aaron
    wrote on last edited by
    #6

    Thanks everyone! So here's the error:

    info: NodeBB Ready
    4567 0.0.0.0
    info: [Auth] Session tLx5sgq86JqT-9qEM1ImdJ4y logout (uid: 1)
    info: Attempting upload to: /var/www/forum/public/uploads/1-profileimg.jpg

    /var/www/forum/src/routes/user.js:218
    winston.err(err);
    ^
    TypeError: Object #<Object> has no method 'err'
    at WriteStream.<anonymous> (/var/www/forum/src/routes/user.js:218:13)
    at WriteStream.EventEmitter.emit (events.js:117:20)
    at WriteStream.<anonymous> (fs.js:1655:12)
    at Object.oncomplete (fs.js:107:15)

    Any ideas?

    1 Reply Last reply
    0
  • aaronA Offline
    aaronA Offline
    aaron
    wrote on last edited by
    #7

    @baris Under admin > settings > post, I checked the box "Allow users to upload regular files" and I set the "Maximum File Size" to 5000, which I assume is in kb.
    As for the imgur app, I thought I could just store the images in /public/uploads. That worked for me when I was hosting it locally. Is that not the case?

    Thanks!
    Aaron

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #8

    Yes you can host locally, can you update to https://github.com/designcreateplay/NodeBB/commit/18075b85c7642bd19e63cd8c57ac2e845f35e878 and try again let me know what error message you get. Thanks.

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development