[DigitalPoint] App for Cloudflare®

[DigitalPoint] App for Cloudflare® 1.9.1.1

No permission to download
It’s probably not going to change anything. I think the biggest issue is just that you didn’t have an external data URL set?

I was messing around with the data url last night. All my images were gone so I went over to cloudflare and copied the url from one of the images and set that as the data url. That worked and all my images came back. The issue with the images not displaying in the attachment manager and that new add on still don’t work.
 
Are you getting any errors?

Just the same issue as before. On regular threads they don't appear on the attachment manager and no matter what type of image file it always displays as webp. I upload jpegs, psds but always shows up in that box as webp extension. I'm able to insert the photo on to the post it'll show there no problem.

image333.webp

Now as for my news add I inspected the photo and I noticed that there's two backslashes // in between data and news thumbnails. Do you think that might be the issue why they appear as a broken image? That started happening after the transfer to the r2 bucket.
 
JPEG to WEBP conversion is a XenForo thing, if you don’t want stuff changed to WEBP, disable it on XenForo.

What is your external data URL set to?

Really not sure why your external data URL is missing/screwed up. If you let the addon create the public domain when you create the bucket, everything is automatic. Did you go in after the fact and change it/delete it or try to reconfigure your bucket manually in the Cloudflare R2 dashboard? Any changes you made manually, you really probably want to undo all that unless you have a very specific reason that only you know.
 
JPEG to WEBP conversion is a XenForo thing, if you don’t want stuff changed to WEBP, disable it on XenForo.

What is your external data URL set to?

Really not sure why your external data URL is missing/screwed up. If you let the addon create the public domain when you create the bucket, everything is automatic. Did you go in after the fact and change it/delete it or try to reconfigure your bucket manually in the Cloudflare R2 dashboard? Any changes you made manually, you really probably want to undo all that unless you have a very specific reason that only you know.

Oh I didn't know that. I thought it was doing that by error.


I don't remember and I might of. A few weeks ago I was going to transfer to the r2 bucket and removed the data.mysite.com from it. When I finally decided to do the transfer I didn't realize that data link wasn't in there. I only noticed after the transfer and when I added the original link which was data.mysite.com all the images disappeared. So I clicked properties on of the missing images and saw the url to it and added that as the data url. All my images came back that were missing.
 
JPEG to WEBP conversion is a XenForo thing, if you don’t want stuff changed to WEBP, disable it on XenForo.

What is your external data URL set to?

Really not sure why your external data URL is missing/screwed up. If you let the addon create the public domain when you create the bucket, everything is automatic. Did you go in after the fact and change it/delete it or try to reconfigure your bucket manually in the Cloudflare R2 dashboard? Any changes you made manually, you really probably want to undo all that unless you have a very specific reason that only you know.

Ok so somehow the URLs in my browser console show double slashes (/data//), which suggests a potential misconfiguration with the file path. How that happened beats me and according to the news publisher add on developer that’s the reason behind the problems that I’m having and it makes sense. All that started happening after the transfer to the R2 bucket. Any ideas on how I could correct that?

<br><br>Failed to load resource: the server responded with a status of 404 (Not Found)<br>https://www.example.com/data<strong><span>//</span></strong>news_thumbnails/0/248.jpg?1726088307
 
Last edited:
If that’s what you intend your external data URL to be, it shouldn’t have a trailing slash.

Different (but related maybe) topic… that’s not an R2 URL.
 
If that’s what you intend your external data URL to be, it shouldn’t have a trailing slash.

Different (but related maybe) topic… that’s not an R2 URL.

That’s the only url that we’re displaying my images. I tried with the bucketname.greekexample.com and data.example.com and my existing would all disappear. Only when I added it with example.com/data/ my images appeared.
 
That’s the only url that we’re displaying my images. I tried with the bucketname.greekexample.com and data.example.com and my existing would all disappear. Only when I added it with example.com/data/ my images appeared.
Okay, but that URL is your origin server, not R2. So if your files exist on your origin server, that would work I guess. But you aren't serving from R2 if that's your intention.

But if it works for you, great I guess. Honestly, until you "undo" all the manual things you did to R2 (for example anything you did on your own in the R2 dashboard), it's probably not going to work as intended.
 
Okay, but that URL is your origin server, not R2. So if your files exist on your origin server, that would work I guess. But you aren't serving from R2 if that's your intention.

But if it works for you, great I guess. Honestly, until you "undo" all the manual things you did to R2 (for example anything you did on your own in the R2 dashboard), it's probably not going to work as intended.

I don’t know what I did to undo lol. All I really did was create my bucket at cloudflare, enabled the r2 options and boom. Knownhost volunteered to migrate all the files to my cloudflare bucket for me. Anyway I’ll figure it out somehow. I was just curious to see if had an idea on how I could remove the two backslashes in my configuration. Thank you
 
Last edited:
I tried with the bucketname.greekexample.com and data.example.com and my existing would all disappear. Only when I added it with example.com/data/ my images appeared.
When you create the bucketname.greekexample.com subdomain, make sure first that it is accessible before configuring R2. When you create that subdomain in your host, it will be inaccessible since it's CloudFlare that handles your domain. So you have to add a subdomain record first at CloudFlare so that it will be accessible. Once you can access bucketname.greekexample.com, (it's blank of course) that's the time you configure/click those R2 settings in this addon.

At least, that's how I make mine works. At first, I wonder why it's not working, I just realized that my subdomain is unaccessible due to lack of DNS record at CloudFlare.

Edit: I follow this instruction on adding the record: https://www.namehero.com/blog/how-to-add-a-subdomain-in-cloudflare/
When you switch your DNS servers to Cloudflare, all your traffic to your main domain is proxied through Cloudflare. However, if you add subdomains, it doesn’t automatically route that traffic as well.
 
Last edited:
I don’t know what I did to undo lol. All I really did was create my bucket at cloudflare, enabled the r2 options and boom. Knownhost volunteered to migrate all the files to my cloudflare bucket for me.
I guess one option is to migrate your files back to your origin server, make sure they are all there, disable R2, delete the bucket and just start fresh. Let the addon create your bucket and do all the configuration for you and migrate the data back to R2 (and don't go in and do anything extra/try to outsmart what the addon is doing). It seems the underlying issue is you did things on your own (even just creating the bucket manually or having a third party migrate things to that bucket), and if you don't know what you did, I definitely don't either. Trying to setup everything manually/on your own really is just bypassing all the normal things the addon does for you (like create the public domain and set the external URL as needed). There are other things as well, and it's really just going to be easier to start fresh and do things as intended (and not do anything manually).
 
I guess one option is to migrate your files back to your origin server, make sure they are all there, disable R2, delete the bucket and just start fresh. Let the addon create your bucket and do all the configuration for you and migrate the data back to R2 (and don't go in and do anything extra/try to outsmart what the addon is doing). It seems the underlying issue is you did things on your own (even just creating the bucket manually or having a third party migrate things to that bucket), and if you don't know what you did, I definitely don't either. Trying to setup everything manually/on your own really is just bypassing all the normal things the addon does for you (like create the public domain and set the external URL as needed). There are other things as well, and it's really just going to be easier to start fresh and do things as intended (and not do anything manually).

I migrated everything back to my forum deleted the buckets too. Can I ask you how many buckets do I need to create? Just one?

Also I uninstalled and reinstalled the add on and when I go to click on Cloudflare/Settings I get. Any ideas?

ErrorException: [E_WARNING] Trying to access array offset on false in src/addons/DigitalPoint/Cloudflare/Repository/Cloudflare.php at line 1056
  1. XF::handlePhpError() in src/addons/DigitalPoint/Cloudflare/Repository/Cloudflare.php at line 1056
  2. DigitalPoint\Cloudflare\Repository\CloudflareAbstract->getZoneSettings() in src/addons/DigitalPoint/Cloudflare/Repository/Cloudflare.php at line 762
  3. DigitalPoint\Cloudflare\Repository\CloudflareAbstract->organizeSettings() in src/addons/DigitalPoint/Cloudflare/Admin/Controller/Cloudflare.php at line 49
  4. DigitalPoint\Cloudflare\Admin\Controller\Cloudflare->actionIndex() in src/XF/Mvc/Dispatcher.php at line 362
  5. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
  6. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
  7. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
  8. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
  9. XF\App->run() in src/XF.php at line 806
  10. XF::runApp() in admin.php at line 15

Also when I click on other settings like firewall I get
10000: Authentication error. Does this mean that I need to get a new ap key from cloudflare?
 
Last edited:
You normally have 2 buckets… one for public, one for internal data… but again, let the addon do it all for you. Don’t try to be smarter than the addon and go trying to manually set things up.

You can use the same API token you used before.
 
You normally have 2 buckets… one for public, one for internal data… but again, let the addon do it all for you. Don’t try to be smarter than the addon and go trying to manually set things up.

You can use the same API token you used before.

Any ideas about this error? I tried clearing the cache over at cloudflare like it suggest for the 10000: Authentication error but it did nothing.
 
Probably an incorrect API token.

I deleted the api and created a new one. That fixed it.

So now I'm having an issue with r2 for data. These are the steps I followed which. I clicked on admin, scrolled down to cloudflare, and clicked on R2 for data. So I created a new bucket, checked the while I understand checkbox and then click enable r2. I then get this error.

Client error: GET https://api.cloudflare.com/client/v4/zones/bbeb2b22f3be0fffeeee8d5817fdb9e0/rulesets/phases/http_request_cache_settings/entrypoint resulted in a 403 Forbidden response: { "result": null, "success": false, "errors": [ { "message": "missing the permissions required to read z (truncated...) / {"result":null,"success":false,"errors":[{"message":"missing the permissions required to read zone rulesets in the http_request_cache_settings phase at the zone level"}],"messages":null}

I exit out of the screen and by curiosity I visit cloudflare and the bucket with the data url is created. On my xenforo r2 for data remains unchecked. So I tried following the previous steps. I went to admin, cloudflare, r2 for data, clicked on enable and this time chose existing bucket because it was already created over cloudflare the first time when I attempted to create the bucket and click enable. It then says domain already in use. The funny thing is this didn't happen to me when with r2 for R2 for /internal-data/attachments/. That worked 100% fine.


, but I get an error saying, "Oops! We ran into some problems. Please try again later." It suggests that more error details might be in the browser console.

When I go back, I notice that data isn't enabled. On the Cloudflare site, the bucket does get created with a data URL domain, like data.example.com. So, I head back to my XenForo dashboard, click on R2, and try to enable R2 for data. I choose the existing bucket that I created earlier, but when I click "enable," it says the domain is already in use, and R2 for data remains unchecked.
 
Last edited:
Back
Top Bottom