# העלאת תמונות לפרופיל המשתמש נכשלה עקב שגיאת js

**URL:** https://meta.discourse.org/t/uploading-images-to-user-profile-failing-due-to-js-error/323331
**Category:** Bug
**Tags:** uploads, fixed
**Created:** [26 באוגוסט,‏ 2024,‏ 12:34am UTC](https://meta.discourse.org/t/uploading-images-to-user-profile-failing-due-to-js-error/323331 "2024-08-26T00:34:37Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [26 באוגוסט,‏ 2024,‏ 12:34am UTC](https://meta.discourse.org/t/uploading-images-to-user-profile-failing-due-to-js-error/323331/1 "2024-08-26T00:34:37Z")

</div>

I’m not sure if it is related, but the error seems very similar to this: [Uploading of video file fails due to JS error](https://meta.discourse.org/t/uploading-of-video-file-fails-due-to-js-error/322363)

When I

1. go to /my/preferences/account
2. edit the Profile Picture
3. Add a custom picture

I get this:

 ![Screenshot of failed Profile Picture upload](https://global.discourse-cdn.com/meta/original/4X/7/8/e/78ea2a5d3a31d1a5566258bdd89081115c532261.png)

 ![The image is a screenshot of a computer error message. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/a/4/f/a4f581aabfa4f1b362753847584f0105185b5d64.png)

This happens regardless of whether it is an already uploaded file or not. Uploads in posts work just fine. I updated over the weekend. Same in [safe mode](https://meta.discourse.org/t/53504?silent=true).

I can repro this in a clean install, but not here on [meta.discourse.org](http://meta.discourse.org) (nor on Stable).

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [26 באוגוסט,‏ 2024,‏ 6:11pm UTC](https://meta.discourse.org/t/uploading-images-to-user-profile-failing-due-to-js-error/323331/3 "2024-08-26T18:11:35Z")

</div>

Hmmm currently I’m not able to reproduce this myself. I tried locally with my developer setup and on a self-hosted site I just updated and I’m able to change the profile picture without any errors.

Meta is also running the latest so it should be reproducible there as well.

> [@nathank](#):
>
> but not here on [meta.discourse.org](http://meta.discourse.org)

I know you tested in [safe mode](https://meta.discourse.org/t/53504?silent=true), but maybe there is still a plugin or something interfering?

---

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [26 באוגוסט,‏ 2024,‏ 7:53pm UTC](https://meta.discourse.org/t/uploading-images-to-user-profile-failing-due-to-js-error/323331/4 "2024-08-26T19:53:57Z")

</div>

Thank you for trying to repro it! I’ll work through the plugins on my test instance and see if I can find the culprit.

---

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [26 באוגוסט,‏ 2024,‏ 11:27pm UTC](https://meta.discourse.org/t/uploading-images-to-user-profile-failing-due-to-js-error/323331/5 "2024-08-26T23:27:04Z")

</div>

I’ve identified the plugin (Pavilion’s own [Events Plugin 📅](https://meta.discourse.org/t/events-plugin/69776)) and have reported it here:

> **[Events plugin seems to be intefering with user profile image uploads](https://coop.pavilion.tech/t/events-plugin-seems-to-be-intefering-with-user-profile-image-uploads/3766)**
>
> I’ve got no idea why this is happening, and only discovered that it is due to events after a trial and error approach of plugin removal. Here is the original description of the bug on meta.discourse.org:

---

<div class="post-metadata">

### Author: ![raghukamath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/raghukamath/32/160330_2.png) [@raghukamath](https://meta.discourse.org/u/raghukamath)
#### Post date: [30 באוגוסט,‏ 2024,‏ 5:55am UTC](https://meta.discourse.org/t/uploading-images-to-user-profile-failing-due-to-js-error/323331/6 "2024-08-30T05:55:05Z")

</div>

I updated our [forum](https://krita-artists.org) to 3.4.0.beta2-dev yesterday and our users are experiencing this bug too.

We have these plugins enabled

- [Topic Previews Sidecar](https://github.com/paviliondev/discourse-topic-previews-sidecar)
- Topic Voting
- Topic Solved
- Reactions
- Footnote
- Spoiler alert

---

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [30 באוגוסט,‏ 2024,‏ 9:44am UTC](https://meta.discourse.org/t/uploading-images-to-user-profile-failing-due-to-js-error/323331/7 "2024-08-30T09:44:02Z")

</div>

Yeah, it wasn’t the events plugin! Not sure how I messed that up.

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [30 באוגוסט,‏ 2024,‏ 10:16am UTC](https://meta.discourse.org/t/uploading-images-to-user-profile-failing-due-to-js-error/323331/8 "2024-08-30T10:16:03Z")

</div>

Have you tried it without the sidecar plugin? That seems to be the only unofficial one. Maybe the new image processing for [YouTube thumbnails](https://meta.discourse.org/t/topic-list-previews-theme-component/209973/463) interferes with the upload of profile pictures.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [30 באוגוסט,‏ 2024,‏ 10:38am UTC](https://meta.discourse.org/t/uploading-images-to-user-profile-failing-due-to-js-error/323331/9 "2024-08-30T10:38:05Z")

</div>

Is there an error in /logs?

This functionality should only be invoked if the thumbnail has a specific file name.

Could be some related bug though.

Would appreciate some contributions to the repo.

I can’t always offer free business level support.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [30 באוגוסט,‏ 2024,‏ 11:45am UTC](https://meta.discourse.org/t/uploading-images-to-user-profile-failing-due-to-js-error/323331/11 "2024-08-30T11:45:37Z")

</div>

OK this is fixed

[https://github.com/paviliondev/discourse-topic-previews-sidecar/pull/174](https://github.com/paviliondev/discourse-topic-previews-sidecar/pull/174)

Please update the sidecar plugin.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [1 בספטמבר,‏ 2024,‏ 4:59am UTC](https://meta.discourse.org/t/uploading-images-to-user-profile-failing-due-to-js-error/323331/12 "2024-09-01T04:59:29Z")

</div>

@nathank @raghukamath can you please confirm this is resolved?

---

<div class="post-metadata">

### Author: ![raghukamath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/raghukamath/32/160330_2.png) [@raghukamath](https://meta.discourse.org/u/raghukamath)
#### Post date: [1 בספטמבר,‏ 2024,‏ 7:45am UTC](https://meta.discourse.org/t/uploading-images-to-user-profile-failing-due-to-js-error/323331/13 "2024-09-01T07:45:44Z")

</div>

It seems to work now. Thank you very much for fixing this 👍

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [1 בספטמבר,‏ 2024,‏ 8:44am UTC](https://meta.discourse.org/t/uploading-images-to-user-profile-failing-due-to-js-error/323331/14 "2024-09-01T08:44:22Z")

</div>


