Can't upload images

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

Jorge S.
link
fedilink
22M

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

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
admin
creator
link
fedilink
12M

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

I’ll have to try it again, thanks.

@paula
admin
creator
link
fedilink
12M

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

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

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

@paula
admin
creator
link
fedilink
12M

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

Support / questions about Lemmy.

  • 0 users online
  • 1 user / day
  • 4 users / week
  • 1 user / month
  • 4 users / 6 months
  • 0 subscribers
  • 1 Post
  • 8 Comments
  • Modlog