# Constante não inicializada EXIFR::JPEG

**URL:** https://meta.discourse.org/t/uninitialized-constant-exifr-jpeg/90281
**Category:** Bug
**Created:** [20 Junho , 2018 08:53 UTC](https://meta.discourse.org/t/uninitialized-constant-exifr-jpeg/90281 "2018-06-20T08:53:41Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [20 Junho , 2018 08:53 UTC](https://meta.discourse.org/t/uninitialized-constant-exifr-jpeg/90281/1 "2018-06-20T08:53:41Z")

</div>

Continuing the discussion from [Uninitialized constant when uploading JPG](https://meta.discourse.org/t/uninitialized-constant-when-uploading-jpg/89362):

This bug is back. Happening right now here on meta…

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [20 Junho , 2018 09:25 UTC](https://meta.discourse.org/t/uninitialized-constant-exifr-jpeg/90281/2 "2018-06-20T09:25:38Z")

</div>

Let’s see.. yep confirmed, why did we regress here @tgxworld?

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [20 Junho , 2018 09:30 UTC](https://meta.discourse.org/t/uninitialized-constant-exifr-jpeg/90281/3 "2018-06-20T09:30:25Z")

</div>

Because the gem was accidentally upgraded again as we didn’t pin the gem version when it was fixed previously.

[https://github.com/discourse/discourse/commit/bb959e85e6a360372298107b31151ac18190fc14](https://github.com/discourse/discourse/commit/bb959e85e6a360372298107b31151ac18190fc14)

The proper solution is still to update our fork of the `image_optim` gem but that contains our patch to support timeout but I don’t expect an easy time updating it. There is some history to our fork of the gem, the timeout support that I work on previously was at the per worker level which isn’t ideal which is why the PR didn’t land into the gem. The plan is to add a global timeout across the worker.

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [20 Junho , 2018 09:31 UTC](https://meta.discourse.org/t/uninitialized-constant-exifr-jpeg/90281/5 "2018-06-20T09:31:08Z")

</div>

I faced this problem while importing. I think this [PR](https://github.com/discourse/image_optim/pull/2) from @gerhard can fix this issue.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [5 Julho , 2018 05:22 UTC](https://meta.discourse.org/t/uninitialized-constant-exifr-jpeg/90281/6 "2018-07-05T05:22:20Z")

</div>

> [@tgxworld](#):
>
> The plan is to add a global timeout across the worker.

Done in

[https://github.com/toy/image\_optim/pull/162](https://github.com/toy/image_optim/pull/162)

Hopefully it gets merged into the official gem this time 🤞

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [9 Julho , 2018 02:31 UTC](https://meta.discourse.org/t/uninitialized-constant-exifr-jpeg/90281/7 "2018-07-09T02:31:49Z")

</div>

I updated our fork in

[https://github.com/discourse/discourse/commit/72a34573796dedcba8a9275f6d45f5c83603c14f](https://github.com/discourse/discourse/commit/72a34573796dedcba8a9275f6d45f5c83603c14f)

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [16 Julho , 2018 10:00 UTC](https://meta.discourse.org/t/uninitialized-constant-exifr-jpeg/90281/8 "2018-07-16T10:00:13Z")

</div>

This topic was automatically closed after 7 days. New replies are no longer allowed.
