Chrome browser and image proxy plugin

By JayT

We recently opened our elgg site for people 40 years and older - elgg Release - 1.12.2, Version - 2015041400. It is https. We are using the image proxy plugin https://elgg.org/plugins/1874086 so that our members can embed comment graphics from any site.

A few days ago, a member reported having problems viewing images embedded from http sites (Windows 10 Chrome browser). She had no trouble viewing the images before, but now each image from an http site appears for less than a second and then it disappears leaving a small icon in its place. I tried using the Chrome browser and have the same experience. However, the images show when using Firefox, IE, and a few other browsers we've tried.

Apparently, the Chrome browser doesn't like the proxy and is throwing a 403 error instead of showing the image. Has anyone encountered such a problem with Chrome and the image proxy plugin? If so, were you able to find a solution? Does someone have a suggestion about a tweak for the plugin so that Chrome will play nice?

Thanks

  • Have you checked the logs for errors?

  • @Cim
    The error log doesn't show anything. However, when using the devloper tools with Chrome, there is a list of errors. For one image from photobucket, it gives the image proxy url with the image url following it, then the token info. In the image url, the colon and slash marks are replaced by character entities %3A and %2F respectively.
    The image was shown 2 times in the list with two different error messages, "Failed to load resource: the server responded with a status of 403 ()" and "Failed to load resource: net::ERR_SPDY_PROTOCOL_ERROR"

    The other 2 items in this group also had the "Failed to load resource: the server responded with a status of 403 ()" message
    One if is video from Facebook and one is an image from facebook. Both also had the character entities instead of the colon and slash mark in the direct link. I used Firefox to get the direct links to both the video and facebook image and then was able to use Chrome to view them.

    @ Steve Clay, Thank you for the link. I will do as you suggest.

  • Just an FYI for those who have an https site and who are using the "Image Proxy" plugin:

    If images posted from photobucket don't show for members using Chrome and sometimes for members using IE, Safari and Firefox, there is a work around. Ask your members to add an "s" after the http in the image tag for images stored on photobucket before they post. This includes images for the comment sharing site, Satisfaction.com, whose images are stored on photobucket.

    We have not found out why the plugin does not work "as is" with images from photobucket, and may never know, but adding the "s" works for now.

  • I guess it depends on the SSL and browser. I remember Elgg didn't show any of my images from non-secured links.