[DigitalPoint] App for Cloudflare®

[DigitalPoint] App for Cloudflare® 1.9.1.1

No permission to download
You mean I shouldn't connect this bucket (for internal_data/attachments) to a domain like this?

1724697102128.webp

The thumbnails show up after I connect it to the subdomain!
 
Correct. See previous post.

OK, just remove the file.mysite.com connection. The corresponding DNS entry for this bucket is also automatically deleted.

I suppose the following is correct? data goes with domain connection while internal_data doesn't have one.

1724698924478.webp

And the thumbnail still works. I'll check again tomorrow. Too late for my time now. Thank you for your kind help.
 
Ya, that’s one way to do it. You could also just ignore it since it’s really only an issue if you use the token auth option (normally XenForo can handle setting the content-type header).
Copied the "old" images again to R2 with your tool - content-type is updated accordingly and no "strange" issues anymore :) Thanks a lot!
 
digitalpoint updated [DigitalPoint] App for Cloudflare® with a new update entry:

Minor/API update

  • Fixed issue with deleting a Page Cache rule (change to Cloudflare API)
  • Fixed issue with changing Cloudflare settings on XenForo 2.3 (was being done with form submission instead of the intended AJAX request)
  • Ignore full stat rebuilds (too many API calls [11 per day], it will be impossibly slow, and you will hit API rate limit very quickly, so it would fail anyway)

Read the rest of this update entry...
 
Did you change domains/zones? And if so, is the zone actually on your Cloudflare account?
Sorry for deleting my post, didn't expect a reply that fast :D maybe a moderator (@Paul B) can restore it.

I happened to stumble upon the solution: I restricted access to the token from my webservers IP after accessing Cloudflare -> Access in my admin cp (which actually output the correct error).

The firewall page mistakenly stated that I were rate-limited, but the "Access" page showed me the correct error.
 
Is there like a list of commands for the command prompt like how to connect to your server and what command lines to us to transfer images to a bucket? That’s like all Greek to me lol.
 
Congratulations and thank you. I am using your google analytics addon. It was great. The non-working google analytics started working. I will break it and publish the Turkish translation.
 
Aren’t there other commands that one needs to write to connect to my sever? Thank you
There are no other CLI commands in the addon, so not really sure what you are referring to. Can you give a more specific example of what you are trying to do exactly?
 
There are no other CLI commands in the addon, so not really sure what you are referring to. Can you give a more specific example of what you are trying to do exactly?

I mean how does that command prompt know from where to grab the images that it’s going to transfer to the bucket? don’t I need to connect to my server from my windows desktop command prompt and enter the path to the image folders etc? I apologize in advance for my ignorance on this and thanks.
 
The command is run from your server. It looks at your XenForo config and more specifically the abstracted filesystem that’s active for it.

If you don’t have shell access on your server, you can’t run XenForo CLI commands.
 
I'm now starting to receive occasional errors regarding this add-on:
Code:
GuzzleHttp\Exception\InvalidArgumentException: json_encode error: Malformed UTF-8 characters, possibly incorrectly encoded src\vendor\guzzlehttp\guzzle\src\Utils.php:298
Generated by: Unknown account 31 Aug 2024 at 19:25

Stack trace​

Code:
#0 src\vendor\guzzlehttp\guzzle\src\Client.php(377): GuzzleHttp\Utils::jsonEncode(Array)
#1 src\vendor\guzzlehttp\guzzle\src\Client.php(328): GuzzleHttp\Client->applyOptions(Object(GuzzleHttp\Psr7\Request), Array)
#2 src\vendor\guzzlehttp\guzzle\src\Client.php(169): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)
#3 src\vendor\guzzlehttp\guzzle\src\ClientTrait.php(207): GuzzleHttp\Client->requestAsync('POST', Object(GuzzleHttp\Psr7\Uri), Array)
#4 src\addons\DigitalPoint\Analytics\GoogleApi\Measurement.php(47): GuzzleHttp\Client->postAsync('https://www.goo...', Array)
#5 src\addons\DigitalPoint\Analytics\GoogleApi\Measurement.php(74): DigitalPoint\Analytics\GoogleApi\Measurement->makeApiCall('https://www.goo...', Array)
#6 src\addons\DigitalPoint\Analytics\Repository\Measurement.php(11): DigitalPoint\Analytics\GoogleApi\Measurement->collect('24ba96cf-99ce-4...', Array, [invalid], Array, true)
#7 src\addons\DigitalPoint\Analytics\Pub\Controller\Beacon.php(35): DigitalPoint\Analytics\Repository\Measurement->collect('24ba96cf-99ce-4...', Array, [invalid])
#8 src\XF\Mvc\Dispatcher.php(362): DigitalPoint\Analytics\Pub\Controller\Beacon->actionImage(Object(XF\Mvc\ParameterBag))
#9 src\XF\Mvc\Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('DigitalPoint\\An...', 'Image', Object(XF\Mvc\RouteMatch), Object(DigitalPoint\Analytics\Pub\Controller\Beacon), NULL)
#10 src\XF\Mvc\Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(DigitalPoint\Analytics\Pub\Controller\Beacon), NULL)
#11 src\XF\Mvc\Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src\XF\App.php(2813): XF\Mvc\Dispatcher->run()
#13 src\XF.php(802): XF\App->run()
#14 index.php(23): XF::runApp('XF\\Pub\\App')
#15 {main}
Code:
array(4) {
  ["url"] => string(159) "/b/image.gif?p=***"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["p"] => string(132) "***"
  }
  ["_POST"] => array(0) {
  }
}
 
Last edited:
The command is run from your server. It looks at your XenForo config and more specifically the abstracted filesystem that’s active for it.

If you don’t have shell access on your server, you can’t run XenForo CLI commands.

Ah ok. I didn’t know that. Thanks
 
I'm now starting to receive occasional errors regarding this add-on:
Code:
GuzzleHttp\Exception\InvalidArgumentException: json_encode error: Malformed UTF-8 characters, possibly incorrectly encoded src\vendor\guzzlehttp\guzzle\src\Utils.php:298
Generated by: Unknown account 31 Aug 2024 at 19:25

Stack trace​

Code:
#0 src\vendor\guzzlehttp\guzzle\src\Client.php(377): GuzzleHttp\Utils::jsonEncode(Array)
#1 src\vendor\guzzlehttp\guzzle\src\Client.php(328): GuzzleHttp\Client->applyOptions(Object(GuzzleHttp\Psr7\Request), Array)
#2 src\vendor\guzzlehttp\guzzle\src\Client.php(169): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)
#3 src\vendor\guzzlehttp\guzzle\src\ClientTrait.php(207): GuzzleHttp\Client->requestAsync('POST', Object(GuzzleHttp\Psr7\Uri), Array)
#4 src\addons\DigitalPoint\Analytics\GoogleApi\Measurement.php(47): GuzzleHttp\Client->postAsync('https://www.goo...', Array)
#5 src\addons\DigitalPoint\Analytics\GoogleApi\Measurement.php(74): DigitalPoint\Analytics\GoogleApi\Measurement->makeApiCall('https://www.goo...', Array)
#6 src\addons\DigitalPoint\Analytics\Repository\Measurement.php(11): DigitalPoint\Analytics\GoogleApi\Measurement->collect('24ba96cf-99ce-4...', Array, [invalid], Array, true)
#7 src\addons\DigitalPoint\Analytics\Pub\Controller\Beacon.php(35): DigitalPoint\Analytics\Repository\Measurement->collect('24ba96cf-99ce-4...', Array, [invalid])
#8 src\XF\Mvc\Dispatcher.php(362): DigitalPoint\Analytics\Pub\Controller\Beacon->actionImage(Object(XF\Mvc\ParameterBag))
#9 src\XF\Mvc\Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('DigitalPoint\\An...', 'Image', Object(XF\Mvc\RouteMatch), Object(DigitalPoint\Analytics\Pub\Controller\Beacon), NULL)
#10 src\XF\Mvc\Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(DigitalPoint\Analytics\Pub\Controller\Beacon), NULL)
#11 src\XF\Mvc\Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src\XF\App.php(2813): XF\Mvc\Dispatcher->run()
#13 src\XF.php(802): XF\App->run()
#14 index.php(23): XF::runApp('XF\\Pub\\App')
#15 {main}
Code:
array(4) {
  ["url"] => string(159) "/b/image.gif?p=AY5WC%2BOVbfi%2BIoUAn2yrfYbZFD%2BKo05LplnxXDY9nsOPRQ%2FmfQ5EALK3vUqV%2FAHlf8oMdChwagRCbZAp3ja5PDBKJX0v76Pl1XJXv0xVgLaGqwwIEZCSEbp8YdtH0z1Mxiw%3D"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["p"] => string(132) "AY5WC+OVbfi+IoUAn2yrfYbZFD+Ko05LplnxXDY9nsOPRQ/mfQ5EALK3vUqV/AHlf8oMdChwagRCbZAp3ja5PDBKJX0v76Pl1XJXv0xVgLaGqwwIEZCSEbp8YdtH0z1Mxiw="
  }
  ["_POST"] => array(0) {
  }
}
Wrong addon… but my first guess is your site is possibly not using UTF as its character set either for the site or the database. If your site somehow allowed non-utf8 characters in direct message/conversation title, you’d see something like that. But normally XenForo is utf-8.
 
Back
Top Bottom