# Lightbox not working for some locally stored images

**URL:** <https://meta.discourse.org/t/lightbox-not-working-for-some-locally-stored-images/100116>\
**Category:** Product Support\
**Created:** [10월 22, 2018, 1:11오전 UTC](https://meta.discourse.org/t/lightbox-not-working-for-some-locally-stored-images/100116 "2018-10-22T01:11:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![AdamAndrews](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@AdamAndrews](https://meta.discourse.org/u/AdamAndrews)\
**Post date:** [10월 22, 2018, 1:11오전 UTC](https://meta.discourse.org/t/lightbox-not-working-for-some-locally-stored-images/100116/1 "2018-10-22T01:11:27Z")

</div>

I recently setup a spaces bucket on Digital Ocean. Currently I have a mix of locally stored images on a DO droplet along with that spaces bucket. After initially not configuring the S3 CDN for spaces, I went back and did that and rebaked all posts so the images would have CDN links. Since then it looks like a portion of the locally stored images are not getting lightboxed, everything on spaces seems fine. In Sidekiq the posts associated with these local images pile up in the retries queue and cycle through with the following error below. Clearing out the queue then choosing the rebuild html option in the admin tools for the post reproduces the same problem. The puzzling thing is it only effecting some posts, typically those with multiple images within one post. Have all the latest updates and have done the use update/rebuild to ensure latest code. Thanks in advance for any pointers as to how this might be fixed.

`Arguments: {"post_id"=>952, "bypass_bump"=>true, "cooking_options"=>nil, `

`Error: "current_site_id"=>"default"} Jobs::HandledExceptionWrapper: Wrapped NoMethodError: undefined method 'id' for nil:NilClass`

---

_[View the full topic](https://meta.discourse.org/t/lightbox-not-working-for-some-locally-stored-images/100116)._
