• Hi Alex!
    Its the old pest again!
    I have run across an issue in the method in which your plugin uses to locate/verify images.
    I am using a plugin that uploads images to an external storage service and then deletes them on the WordPress origin server.
    All is working fine, excepting for the fact that the thumbnail image shows fine on the posts page up and until the image file is deleted from the origin server, and then your plugin shows the dreaded red ‘X’ (not found). The image WILL show briefly until it is deleted.
    The plugin that I’m using is the ‘Media Cloud’ plugin (https://ww.wp.xz.cn/plugins/ilab-media-tools/).
    From the plugin description:

    “Media Cloud works by moving your images, media and other files from your WordPress server to online cloud storage such as Amazon S3, Google Cloud Storage, DigitalOcean Spaces and many others. You can then serve that media through a CDN like Amazon Cloud front, Cloudflare, Fastly and others.”

    So, I guess my question is: Where (what script) and how are you testing for the presence (or absence) or an image? It appears that you might be just using a php fopen on the local server or some similar scenario.
    As this might be an issue with other plugins (for instance, Remote Images, Image from URL, etc.) this ought to be addressed.
    If you give me the location of the relevant code (save me the time to search for it), I’ll have a crack at seeing if this can be easily remedied and let you know.
    Thanks, as always,
    @brianbrown

Viewing 1 replies (of 1 total)
  • Plugin Author Alexandre Gaboriau

    (@mcurly)

    Hi Brian, I hope you are going well!

    Ok, I didn’t test yet but I understand, I didn’t know this plugin. I guess the issue is the same with similar plugins.

    I think on line 728 of the main file, there is what you are searching for. No fopen, but there is file_put_contents.

    So I added this problem to my todo list, but I’m not very available for improving the plugin these days, so maybe later. But if you find a solution, it will be happily integrated into the plugin.

    Regards.

Viewing 1 replies (of 1 total)

The topic ‘Problem locating offsite images’ is closed to new replies.