It’s intentional that there’s no mention of Sidekiq there, this is all supposed to work magically in the background without any action on your side. We make sure that it does.
The fact that it’s not working on your site points to a problem in your configuration.
It’s difficult to diagnose what the issue is without much context. So Please try to provide as much information as you can.
can I get a link to the site you’re having trouble with?
can you try safe-mode?
are you using Cloudflare?
do you see any errors in the browser console on pages with images that are supposed to be lightboxed?
do you see anything unusual in your.site.com/logs?
Also running on DO, followed installation guide, no CDN (everything loading from the VPS)
Magic is great, but perhaps it might be helpful and about time to have a section in the guide mentioning the magic and how to work around it should it not work as expected.
Not really, most admins don’t care how it works, just that it does, which again, is something that we care about a lot and we make sure that it works. I just set up a new test environment and everything seems to be working just fine on my end. If you’re a developer and really want to dig down into how it works, the please feel free to look at the source code.
I understand, but browsing through that site, I only see two public topics that have images
The images in both of those topics are too small to be lightboxed. You can control the minimum height and width for an image to be lightboxed via the max_image_width and the max_image_height
Images with dimensions bigger than those will be lightboxed. So, feel free to change those values according to your needs.
But I’m not saying that adding bigger images will work there.
Image dimension is 5471 x 2878, way bigger than what triggers the lightbox.
Still, lightbox not working. The magic is failing us (or me) this time. And because it’s magic, I wouldn’t even know where to begin debugging. No errors in console. No errors in logs, except this:
TypeError: Cannot read property 'create' of undefined
at https://africa.khophi.com/assets/vendor-fae393575cd14697b31e9fdbeb8c016d165a8a3af765ec8ca719a454585aedf4.js:5:2332
at https://africa.khophi.com/assets/vendor-fae393575cd14697b31e9fdbeb8c016d165a8a3af765ec8ca719a454585aedf4.js:5:3286
@Johani It’s interesting you run it on yours and lightbox worked. I am following the install guide, verbatim from a literary entirely new droplet.
If need be, I’ll screencast the entire process of setting up later, so that you guys know I’m not pulling any ‘anti-magic’ tricks anywhere. Lightbox outta the box (pun intended) ain’t working, at least for me.
Now I’ve done all possible troubleshooting I can think of. Blank installation, still lightbox not working.
Otherwise I might screencast me installing a new discourse instance which leads lightbox not working, because something ain’t right, and I have a feeling the docs ain’t mentioning something.
Anyway, any more troubleshooting tips for me to look into?