-
AuthorPosts
-
September 4, 2019 at 11:40 am #1133784
Hi,
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?
I deleted the Instagram cache folder in wp-content as @ismael suggested here, but this had not helped.
See private data below. Thank you.
- This topic was modified 5 years, 3 months ago by Jordan Shannon.
September 6, 2019 at 12:37 pm #1134901Hey COLORIT,
Thank you for the inquiry.
Did you verify your instagram account, or do you have a verified badge?
// https://help.instagram.com/854227311295302
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.
Best regards,
IsmaelSeptember 6, 2019 at 5:38 pm #1135019The 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 #1135902Hi,
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 ] ) . ');">';
Best regards,
IsmaelSeptember 11, 2019 at 5:16 pm #1137107Thank 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 #1137789Hi,
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.
Best regards,
IsmaelSeptember 13, 2019 at 9:20 am #1137841Thank you, Ismael, you can close this ticket now, appreciate your help!
September 13, 2019 at 5:17 pm #1138088Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘v4.6.1: Instagram Feed with cached images: lightbox not working any more’ is closed to new replies.