[DigitalPoint] App for Cloudflare®

[DigitalPoint] App for Cloudflare® 1.9.4

No permission to download
@digitalpoint

Code:
    ErrorException: [E_WARNING] Undefined array key "cloudflarePreload" src/addons/DigitalPoint/Cloudflare/Listener/AppPubComplete.php:29

    Generated by: Unknown account Jul 1, 2025 at 10:52 PM

Stack trace

#0 src/addons/DigitalPoint/Cloudflare/Listener/AppPubComplete.php(29): XF::handlePhpError(2, '[E_WARNING] Und...', '/home/***/...', 29)
#1 src/XF/Extension.php(81): DigitalPoint\Cloudflare\Listener\AppPubComplete::run(Object(XF\Pub\App), Object(XF\Http\Response))
#2 src/XF/App.php(3020): XF\Extension->fire('app_pub_complet...', Array, NULL)
#3 src/XF/Pub/App.php(478): XF\App->fire('app_pub_complet...', Array)
#4 src/XF/App.php(2516): XF\Pub\App->complete(Object(XF\Http\Response))
#5 src/XF.php(524): XF\App->run()
#6 index.php(20): XF::runApp('XF\\Pub\\App')
#7 {main}

Request state

array(4) {
  ["url"] => string(66) "/***/***/blabla.123456/page-3?amp=1"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["amp"] => string(1) "1"
  }
  ["_POST"] => array(0) {
  }
}

Code:
Stack trace

#0 src/addons/DigitalPoint/Cloudflare/Listener/AppPubComplete.php(29): XF::handlePhpError(2, '[E_WARNING] Und...', '/home/***/...', 29)
#1 src/XF/Extension.php(81): DigitalPoint\Cloudflare\Listener\AppPubComplete::run(Object(XF\Pub\App), Object(XF\Http\Response))
#2 src/XF/App.php(3020): XF\Extension->fire('app_pub_complet...', Array, NULL)
#3 src/XF/Pub/App.php(478): XF\App->fire('app_pub_complet...', Array)
#4 src/XF/App.php(2516): XF\Pub\App->complete(Object(XF\Http\Response))
#5 src/XF.php(524): XF\App->run()
#6 index.php(20): XF::runApp('XF\\Pub\\App')
#7 {main}

Request state

array(4) {
  ["url"] => string(36) "/sosyal/bolum/opencore.233/index.rss"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
@digitalpoint
I have a question about the data and internal_data/attachments folders.
Is the full data folder sync with r2 automatically ?
For internal_data/, Is only the internal_data/attachments folder sync ?
 
@digitalpoint

Code:
    ErrorException: [E_WARNING] Undefined array key "cloudflarePreload" src/addons/DigitalPoint/Cloudflare/Listener/AppPubComplete.php:29

    Generated by: Unknown account Jul 1, 2025 at 10:52 PM

Stack trace

#0 src/addons/DigitalPoint/Cloudflare/Listener/AppPubComplete.php(29): XF::handlePhpError(2, '[E_WARNING] Und...', '/home/***/...', 29)
#1 src/XF/Extension.php(81): DigitalPoint\Cloudflare\Listener\AppPubComplete::run(Object(XF\Pub\App), Object(XF\Http\Response))
#2 src/XF/App.php(3020): XF\Extension->fire('app_pub_complet...', Array, NULL)
#3 src/XF/Pub/App.php(478): XF\App->fire('app_pub_complet...', Array)
#4 src/XF/App.php(2516): XF\Pub\App->complete(Object(XF\Http\Response))
#5 src/XF.php(524): XF\App->run()
#6 index.php(20): XF::runApp('XF\\Pub\\App')
#7 {main}

Request state

array(4) {
  ["url"] => string(66) "/***/***/blabla.123456/page-3?amp=1"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["amp"] => string(1) "1"
  }
  ["_POST"] => array(0) {
  }
}

Code:
Stack trace

#0 src/addons/DigitalPoint/Cloudflare/Listener/AppPubComplete.php(29): XF::handlePhpError(2, '[E_WARNING] Und...', '/home/***/...', 29)
#1 src/XF/Extension.php(81): DigitalPoint\Cloudflare\Listener\AppPubComplete::run(Object(XF\Pub\App), Object(XF\Http\Response))
#2 src/XF/App.php(3020): XF\Extension->fire('app_pub_complet...', Array, NULL)
#3 src/XF/Pub/App.php(478): XF\App->fire('app_pub_complet...', Array)
#4 src/XF/App.php(2516): XF\Pub\App->complete(Object(XF\Http\Response))
#5 src/XF.php(524): XF\App->run()
#6 index.php(20): XF::runApp('XF\\Pub\\App')
#7 {main}

Request state

array(4) {
  ["url"] => string(36) "/sosyal/bolum/opencore.233/index.rss"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}


Umm @digitalpoint what should we do?
 
How can i make the full folder internal_data to be sync ?
What specifically are you wanting to do? Caches and keys and things like that would be a terrible idea to move to the cloud, but you can if you really wanted to for some reason.
 
i am loking to keep a backup sync
Are you actually using XenForo’s abstracted filesystem to do the writing of the files (via an addon)? If it’s just a directory you are copying files to, it wouldn’t work with a XenForo filesystem adapter.
 
i was using a script with rclone but i can find an add-on for that on ?
It sounds like you are complicating things unnecessarily. If you are using rclone, just send it to an R2 bucket directly. That’s going to be a lot simpler than you building an addon just so you can use XenForo’s abstracted filesystem.
 
Anyone have any issues with IPv6, seeing slow connections for certain UK providers over IPv6, had some users test switching to a VPN or turning off IPv6 on their router and they've reported instant improvements. Considering turning off IPv6 entirely but don't know how common IPv6 only is and don't want to risk hard-locking users out.

I see the Pseudo IPv4 option but looking at the docs for that I noticed this note:
Class E IPv4 addresses are designated as experimental and are not used for production Internet traffic.
which makes me think that it should only be used during testing.
Yes - been having issues for the last month.

It seems to be any provider using Openreach (so BT, EE amongst others) - there are multiple complaints about it on the Cloudflare forums, but with no current resolution.

Using the CloudFlare API (you can't do it from the control panel), I just disabled IPv6 and everyone stopped complaining.
 
I'm curious what people are seeing for page lighthouse/speed scores when using the new preload option. XenForo was already fast before, but it's made a noticeable speed increase for me.

1752348830627.webp

...and that's with "mobile" mode and the absurdly slow artificial throttling:

1752348878635.webp

Same scores for desktop mode, but a lot faster:

1752348993504.webp
 
I wanted to try this add-on again but I am getting this error under Cloudflare>Settings tab only:

Code:
ErrorException: [E_WARNING] Trying to access array offset on false in src/addons/DigitalPoint/Cloudflare/Repository/Cloudflare.php at line 1143
XF::handlePhpError() in src/addons/DigitalPoint/Cloudflare/Repository/Cloudflare.php at line 1143
DigitalPoint\Cloudflare\Repository\CloudflareAbstract->getZoneSettings() in src/addons/DigitalPoint/Cloudflare/Repository/Cloudflare.php at line 837
DigitalPoint\Cloudflare\Repository\CloudflareAbstract->organizeSettings() in src/addons/DigitalPoint/Cloudflare/Admin/Controller/Cloudflare.php at line 50
DigitalPoint\Cloudflare\Admin\Controller\Cloudflare->actionIndex() in src/XF/Mvc/Dispatcher.php at line 362
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
XF\App->run() in src/XF.php at line 806
XF::runApp() in admin.php at line 15

This happens most of the time, but other times it does work. I have checked all my API settings and have deleted/re-created them many times. Any ideas?
 
I wanted to try this add-on again but I am getting this error under Cloudflare>Settings tab only:

Code:
ErrorException: [E_WARNING] Trying to access array offset on false in src/addons/DigitalPoint/Cloudflare/Repository/Cloudflare.php at line 1143
XF::handlePhpError() in src/addons/DigitalPoint/Cloudflare/Repository/Cloudflare.php at line 1143
DigitalPoint\Cloudflare\Repository\CloudflareAbstract->getZoneSettings() in src/addons/DigitalPoint/Cloudflare/Repository/Cloudflare.php at line 837
DigitalPoint\Cloudflare\Repository\CloudflareAbstract->organizeSettings() in src/addons/DigitalPoint/Cloudflare/Admin/Controller/Cloudflare.php at line 50
DigitalPoint\Cloudflare\Admin\Controller\Cloudflare->actionIndex() in src/XF/Mvc/Dispatcher.php at line 362
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
XF\App->run() in src/XF.php at line 806
XF::runApp() in admin.php at line 15

This happens most of the time, but other times it does work. I have checked all my API settings and have deleted/re-created them many times. Any ideas?
Thats going to be a general network connectivity issue with your server. Specifically, it’s not able to fetch settings from the Cloudflare API. The fact that it works sometimes makes me think it’s probably not something like very high packet loss or very, very slow connection between your server and Cloudflare.

Basically the same issues and looks like the same thing as when you tried it before:

 
Thats going to be a general network connectivity issue with your server. Specifically, it’s not able to fetch settings from the Cloudflare API. The fact that it works sometimes makes me think it’s probably not something like very high packet loss or very, very slow connection between your server and Cloudflare.

Basically the same issues and looks like the same thing as when you tried it before:

What's crazy is I have switched servers since then, same company but totally different server. I will check in with them and see, thanks for the help and the addon. :)
 
Back
Top Bottom