September 4, 2019 at 11:40 am #1133784
I use ENFOLD’s Instagram Widget and added this to a page created with ALB and this “widget area”.
In ENFOLD 4.5.7 it worked perfectly.
In ENFOLD 4.6 as well as in version 4.6.1, that I just installed, it worked so far as it fetches the images from Instagram correctly.
It works, when I use the setting to open the images in a new browser tab, so it is not an issue of being something wrong with the images from Instagram itself.
But when clicking on these images, they don’t open any more in the lightbox.
Error message: “Image could not be loaded”.
Don’t know if this has something to do with the new privacy settings, because I need an opt-in setting there?
See private data below. Thank you.September 6, 2019 at 12:37 pm #1134901
Thank you for the inquiry.
Did you verify your instagram account, or do you have a verified badge?
We are still not sure why the widget is not working. All we know is that it’s not returning a valid data. Not being verified might have something to do with it.
IsmaelSeptember 6, 2019 at 5:38 pm #1135019
The widget is working, it fetches the images and caches them, but opening these images in the lightbox does not work.
Guess this is something different …
No, I do not have a verified account or badge.September 9, 2019 at 11:23 am #1135902
Sorry about that. I misunderstood your inquiry. The lightbox is not working properly because the href value is invalid. The protocol in the url is duplicated. Please edit the framework > php > class-framework-widgets.php file, look for this code around line 2947:
echo '<a href="https:' . esc_url( $item['link'] ) . '" target="' . esc_attr( $targeting ) . '" class="' . $aclass . ' ' . $imgclass . '" title="' . esc_attr( $item['description'] ) . '" style="background-image:url(' . esc_url( $item[ $size ] ) . ');">';
Replace the “https” part in the href attribute:
echo '<a href="' . esc_url( $item['link'] ) . '" target="' . esc_attr( $targeting ) . '" class="' . $aclass . ' ' . $imgclass . '" title="' . esc_attr( $item['description'] ) . '" style="background-image:url(' . esc_url( $item[ $size ] ) . ');">';
IsmaelSeptember 11, 2019 at 5:16 pm #1137107
Thank you very much, this works fine now!
Is this a bug with v4.6.2, where it still does not work like in v4.6 and v4.6.1?
Because in 4.5.7 it worked fine – and with your fix it is also working fine now (my site is indeed running with https).September 13, 2019 at 6:09 am #1137789
You’re welcome! Glad it worked.
Yes, this seems to be a bug. The protocol in the URL is not included previously, but now they added it in the image data, so it’s duplicated and broke the script. We’ll report the issue to the dev team.
IsmaelSeptember 13, 2019 at 9:20 am #1137841September 13, 2019 at 5:17 pm #1138088
The topic ‘v4.6.1: Instagram Feed with cached images: lightbox not working any more’ is closed to new replies.