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

Lemmy Support

4651 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

top 8 comments
sorted by: hot top controversial new old
[–] electric_nan@lemmy.ml 2 points 2 years ago (1 children)

I tried installing Lemmy on yunohost, but wasn't able to set it up once installed. Some kind of "user" error. Did you have any problems like that?

[–] paula@fediverse.town 3 points 2 years ago (1 children)

I had that with the previous version, but now it works for me.

[–] electric_nan@lemmy.ml 2 points 2 years ago (1 children)

I'll have to try it again, thanks.

[–] paula@fediverse.town 2 points 2 years ago (1 children)

Have you managed to set up lemmy? And do you run into the same issue with images?

[–] electric_nan@lemmy.ml 1 points 2 years ago

I haven't gotten back to it yet. I've been pretty busy with school.

[–] jorge@lemmy.ml 2 points 2 years ago

I have exactly the same issue with a recent ynh installation. I have created the following issue: https://github.com/YunoHost-Apps/lemmy_ynh/issues/31

[–] 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