I'm using the Responsive Lightbox & Gallery to display images on my WordPress sites.
Since enabling R2 for media storage - I've found that the lightbox doesn't open.
Actually, it's a bit strange - from the testing I've done so far, it seems that if I was to save the post while R2 for media is disabled, and then enable R2 for media, it still works.
But if I create a new post or save an existing post once R2 for media is enabled, it doesn't work - the image just loads directly rather than in the lightbox.
The way the lightbox works, you insert a WordPress image or gallery block, add images and then for each image, link it to the image file in the editor - all standard stuff. Without the lightbox, the image just loads directly in the browser.
Looking at the source code, it's clear that the
I was hoping to run the code through a debugger to see if I can identify the exact cause of the issue, but have been having difficulty given the licensing of this plugin and the fact that it's operation is tied so closely to Cloudflare.
Shawn - I was hoping perhaps you had some insight into what might be causing the issue or at least point me in the right direction so I can try and work out the issue and a potential fix?
Since enabling R2 for media storage - I've found that the lightbox doesn't open.
Actually, it's a bit strange - from the testing I've done so far, it seems that if I was to save the post while R2 for media is disabled, and then enable R2 for media, it still works.
But if I create a new post or save an existing post once R2 for media is enabled, it doesn't work - the image just loads directly rather than in the lightbox.
The way the lightbox works, you insert a WordPress image or gallery block, add images and then for each image, link it to the image file in the editor - all standard stuff. Without the lightbox, the image just loads directly in the browser.
Looking at the source code, it's clear that the
data-rel that the lightbox relies on isn't being added to the media link if the post was created or saved with R2 for media enabled.I was hoping to run the code through a debugger to see if I can identify the exact cause of the issue, but have been having difficulty given the licensing of this plugin and the fact that it's operation is tied so closely to Cloudflare.
Shawn - I was hoping perhaps you had some insight into what might be causing the issue or at least point me in the right direction so I can try and work out the issue and a potential fix?

