• hello, I thought the idea of this plugin was great, but unfortunately I didn’t have much success in using it.

    1) when I upload an image in wordpress or manually via the media library, it is not uploaded to Cloudflare Images. I was only able to send images through the “Bulk upload images” option.

    2) the images I uploaded (by Bulk Upload) are shown in the frontend as
    https://www.mydomain.com/cdn-cgi/imagedelivery/heOaEO3Mn24tvphDHjaV-Q/1e91f22e-ba0d-4fc4-0f6a-a0113056bc00/w=600,h=600
    I would like to make cloudflare use something like “cdn.mydomain.com/” is it possible? how do I do?

    3) does not work with WP All Import https://www.ads-software.com/plugins/wp-all-import/
    I use product data import in woocommerce a lot via WP All Import. I tested an import with your plugin active, and the images were not uploaded to Cloudflare Image.

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Anton Vanyukov

    (@vanyukov)

    Hi @moisb,

    Thank you for the feedback. Let me try to address each point below.

    1) Have you enabled the option “Auto offload new images”? If it is enabled and images are not offloading automatically on upload, can you please enable WordPress debug.log and see if there are any errors during upload?

    2) If you create a new cdn.mydomain.com domain, I can add a filter in the plugin that will allow you to replace the https://www.mydomain.com with cdn.mydomain.com. However the cdn-cgi/imagedelivery part will stay regardless. Will that work?

    3) This was reported and will be fixed in the upcoming version.

    Best regards,
    Anton

    Thread Starter moisb

    (@moisb)

    Hi @vanyukov thanks for answering.

    1) yes, “Auto offload new images” is enabled. I don’t see any error logs related to uploading images when enabling debug.log

    2) In this case, I don’t think it’s worth it. I wanted to use https://cdn.mydomain.com/uploads/image.png

    3) great, I look forward to this compatibility with WP All Import.

    Hi – on moisb’s third item – I use the WooCommerce API to upload products and their images to our website. The images added through this method are not being offloaded even though the auto-offload setting is on. I presume your fix for WP All Import will cover this, but mentioning just in case.

    Cheers

    Plugin Author Anton Vanyukov

    (@vanyukov)

    I’ve released a beta version that should support bulk uploads from various plugins (I’ve verified on WooCommerce product imports).

    https://github.com/av3nger/cf-images/releases/download/1.1.2-beta.2/cf-images-1.1.2-beta.2.zip

    @moisb, which hosting are you using. I think I might have found the problem with images not offloading. The plugin uses an async process to offload, and I’ve seen this be an issue with some hosts.

    Best regards,
    Anton

    Thread Starter moisb

    (@moisb)

    Hi @vanyukov I tested version 1.1.2 beta2 and unfortunately nothing changed. Product images imported by WP All Import and images uploaded from the media library are not sent to Cloudflare

    my server is Openlitespeed 1.7.16 managed with Litespeed Cache plugin V5.3, and PHP 7.4

    P.S: before testing your plugin I disabled all image optimization options in Litespeed Cache plugin

    Plugin Author Anton Vanyukov

    (@vanyukov)

    @moisb,

    This is really strange… One of my websites also runs on openlitespeed with the litespeed cache plugin, and it runs fine.

    I’ve looked at several websites that had similar issues, and there was always some problem with API keys. Could I ask you to email me at [email protected] and we can continue the discussion via email?

    Best regards,
    Anton

    @vanyukov I am having this issue with Scala Hosting. Is there a way to resolve it via the hosting provider?

    Plugin Author Anton Vanyukov

    (@vanyukov)

    Hi @aabri, I’m assuming that your issue is that images are not shown on the frontend?

    The most common issue for that is some sort of issue with credentials. An easy way to verify – open the media library in list mode, and see if images have an Offload status column on the right. If it’s not there, this is related to issues with the credentials.

    I’ve talked with Scala Hosting support and there should not be any restrictions on wp-config.php files, so the plugin should be able to save the credentials without problems, which can be an issue.

    To verify that your account ID/API token are correct, you can follow the instructions here: https://developers.cloudflare.com/images/cloudflare-images/api-request/

    And the last possible option is that you do not have the Cloudlfare image subscription on your account. I think these are the most common cases for images not offloading.

    Best regards,
    Anton

    @vanyukov yes they do not show on the front end using Cloudflare images.

    It has successfully connected and the offload status for newly uploaded images is ‘Offloaded’. It does upload to Cloudflare images and I can see it in there. However the URL in the media library and on the front end stays as the in the wp-content/uploads folder and uploads to my website server too.

    I also have the setting ‘Auto-offload new images’ turned on, in the settings.

    I tested this on Cloudways and it all worked as expected however for another clients website hosted on Scala Hosting it doesn’t work.

    • This reply was modified 2 years, 1 month ago by aabri.

    @vanyukov note that this is on a subdomain, could that be something to do with it?

    Plugin Author Anton Vanyukov

    (@vanyukov)

    @aabri, yeah, subdomain could be an issue. Could you please give me some details on how I can replicate? Just a regular subdomain multisite? And the images are not working on any of the sites? Or maybe they work on the main site?

    @vanyukov it isn’t a multi site it’s just WordPress installed on a sub domain. There isn’t a main site on this domain as the use case for this is a holding site for multiple clients. I effectively have sub domains for my client’s clients for demo purposes.

    I will try launching the same site on the main domain and see if it works. I’ll let you know.

    @vanyukov I just copied all of the files to the main domain and switched the URLs in the DB to test and it’s still doing the same. So I don’t think the subdomain is the issue.

    I will try launching the same site on Cloudways and see what that does.

    Plugin Author Anton Vanyukov

    (@vanyukov)

    @aabri , would you be able to set up a test site for me so I can debug this a bit? If you can, please send me the details via our website -> https://vcore.au/contact-us/

    @vanyukov sure let me do that.

    Am I right in thinking that the expected behaviour is the image should not upload to my website storage and the url in the media library should be that of the Cloudflare not ‘/uploads’?

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Images are not being uploaded to Cloudflare Images’ is closed to new replies.