this post was submitted on 30 Sep 2022
4 points (100.0% liked)

Lemmy Support

4652 readers
1 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

Hey. I just installed a lemmy instance via YunoHost and I can't upload images. This includes an icon and banner for the instance. I get a SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

you are viewing a single comment's thread
view the rest of the comments
[โ€“] OsrsNeedsF2P@lemmy.ml 1 points 2 years ago (1 children)

Sounds like it's returning an HTML page with an error. Check the logs

[โ€“] paula@fediverse.town 1 points 2 years ago

Browser console says:

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data client.js:2:1452249 handleImageUpload https://fediverse.town/static/js/client.js:2 (Async: promise callback) handleImageUpload https://fediverse.town/static/js/client.js:2 n https://fediverse.town/static/js/client.js:2 DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property. client.js:2:544207