[DigitalPoint] App for Cloudflare®

[DigitalPoint] App for Cloudflare® 1.8.8

No permission to download
If you happen to have developer mode enabled, and you can see the Development menu in the admin area, check Admin -> Development -> Class extensions.

Chances are high that the issue exists in a class that extended one of these:

XF\Pub\Controller\Attachment
XF\Entity\Attachment
XF\Entity\AttachmentData

The only class that I found is XF\Entity\AttachmentData and it’s enabled. I looked up and down that list quite a few times to make sure I didn’t miss anything. I even put on middle age man Rite Aid reading glasses lol
 
I’m running the latest version. 2.3.3.
Tried it on a 2.3.3 install (with R2 enabled) and it works as expected for me... lands in R2 as it's supposed to and also the thumbnails work when uploading.

1726176864490.webp
There's a lot of things that could affect it... Check Admin -> Options -> Cloudflare -> External data URL (need to have advanced options enabled). I wouldn't think that's missing if avatars and other things are working as expected, but something to double check.

Check if you have something special you added to your config.php (for example if you set a externalDataUrl in there for some reason (it shouldn't be there).

Beyond that, I'm not really sure... it's working as expected for me under 2.3.3 (and I presume others because I guarantee one of the hundreds of sites using R2 would have posted here if it wasn't working for them).

Maybe try updating the addon (even if it's from/to the same version) in case some listeners or class extensions somehow got deleted in your setup.

Under Admin -> Development, there should be 3x code event listeners for this addon and 12x class extensions.
 
Tried it on a 2.3.3 install (with R2 enabled) and it works as expected for me... lands in R2 as it's supposed to and also the thumbnails work when uploading.

View attachment 310795
There's a lot of things that could affect it... Check Admin -> Options -> Cloudflare -> External data URL (need to have advanced options enabled). I wouldn't think that's missing if avatars and other things are working as expected, but something to double check.

Check if you have something special you added to your config.php (for example if you set a externalDataUrl in there for some reason (it shouldn't be there).

Beyond that, I'm not really sure... it's working as expected for me under 2.3.3 (and I presume others because I guarantee one of the hundreds of sites using R2 would have posted here if it wasn't working for them).

Maybe try updating the addon (even if it's from/to the same version) in case some listeners or class extensions somehow got deleted in your setup.

Under Admin -> Development, there should be 3x code event listeners for this addon and 12x class extensions.

I have no doubt that it’s something on my end. It doesn’t happen to anyone I just wish I knew what lol. The external data url isn’t in the config and I updated the cloudflare app too and there’s 12 and 3 in development.


This what that looks like.

IMG_2836.webp
 
Last edited:
Your external data URL is missing. Normally the addon creates it and sets that option automatically. Where it went or how it got unset, I’m not sure. Also not sure why avatar URLs would work for you without it. Fill that in so it’s set to whatever your public domain URL is for your data bucket.
 
Your external data URL is missing. Normally the addon creates it and sets that option automatically. Where it went or how it got unset, I’m not sure. Also not sure why avatar URLs would work for you without it. Fill that in so it’s set to whatever your public domain URL is for your data bucket.

Would that be like my bucket like www.bucket.website,com? I tried data.mywebsite.com and bucketname.url.com all the images vanished. I wonder how that ended up happening with missing external url.
 
It’s whatever you set it to when you created your data bucket. You can see what that was on the R2 setting in your admin (the Domain(s) column). Add an https:// to the beginning of it to make it a valid URL.
 
It’s whatever you set it to when you created your data bucket. You can see what that was on the R2 setting in your admin (the Domain(s) column). Add an https:// to the beginning of it to make it a valid URL.

What if I uninstalled and then reinstalled your add on. Would I lose all my images on my forum?
 
What if I reinstalled it though? Maybe I need to uninstall and reinstall hoping that fixes everything.
You’ll need to do the normal stuff… add your API token, set any settings. Enable R2, etc… but nothing will be “lost” if that’s what you mean? Like R2 files don’t get deleted on uninstall, and when you enable it, you can pick from your existing buckets (don’t need to create a new one).
 
You’ll need to do the normal stuff… add your API token, set any settings. Enable R2, etc… but nothing will be “lost” if that’s what you mean? Like R2 files don’t get deleted on uninstall, and when you enable it, you can pick from your existing buckets (don’t need to create a new one).

Do you think it’s worth a shot? Also does this look right with two links in one r2 bucket?

IMG_2853.webp
 
Kinda goes back to that phase where you were overthinking things. The internal data bucket shouldn’t have any public domains (and doesn’t give you the option to set one up), so if you went into the Cloudflare dashboard to add them on your own, whatever the reason you did that is your own reason (I can’t tell you why you did that or what you are using those public domains for, but it’s nothing with this addon).

If you are using the bucket creation from the addon, it gives you no option to ever create a public domain for the internal data bucket (its internal data, not public data).
 
Kinda goes back to that phase where you were overthinking things. The internal data bucket shouldn’t have any public domains (and doesn’t give you the option to set one up), so if you went into the Cloudflare dashboard to add them on your own, whatever the reason you did that is your own reason (I can’t tell you why you did that or what you are using those public domains for, but it’s nothing with this addon).

If you are using the bucket creation from the addon, it gives you no option to ever create a public domain for the internal data bucket (its internal data, not public data).

Ah I see. Going back to my first question do you think it’s worth a shot uninstalling and reinstalling the app? Also I want to thank you again for all your help. I seriously appreciate it.
 
Back
Top Bottom