[DigitalPoint] Better Google Analytics

[DigitalPoint] Better Google Analytics 1.1.1

No permission to download
That is a constant in Sodium. So if that constant isn’t there, Sodium isn’t installed. What version of Sodium does it say is installed for you?
 
Can't save tracking 2 user groups, whether guests/unregistered or otherwise if registered is saved.

1725465777456.webp

First one saved

1725465794286.webp

Attempting to save second one.

1725465886095.webp

Still

1725465794286.webp

If I remove the groups and save...

1725465938407.webp

Then try to save both at once again (instead of save one, then open it to save a 2nd).

1725465886095.webp

It doesn't save and still get this.

1725465938407.webp

And, then it won't let me change it to registered and save it again with just the one group. I get this again.

1725465938407.webp

Xenforo 2.3.2
 
Yes, same on 2.3.3
I went back and saw that we were tracking 4 usergroups. Moving them out to track only registered usergroup. Saved it but it shows nothing tracked.
 
Looks like it's a XenForo bug with their Nestable function. See:

 
  • Like
Reactions: frm
Not sure what's going on with your install of PHP, but SODIUM_CRYPTO_SECRETBOX_NONCEBYTES is a predefined constant of Sodium no matter what the version of PHP that's installed. So if that's missing, something is definitely mucked somehow with that extension in your PHP setup.


I also just double checked the PHP source, and it's in there (registered if the Sodium extension is compiled in):


It's also part of the simple test PHP does on itself to make sure it compiled properly:


Honestly, I'm not really sure how or why it would be, but the only thing I can think of is somehow you have a non-standard Sodium extension that had the source code altered before it was compiled. Again, not sure why someone would ever do that, but nothing else I can think of that would result in the Sodium extension being installed without the SODIUM_CRYPTO_SECRETBOX_NONCEBYTES constant.
 
@digitalpoint getting this error on XF 2.3.3:
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 Oct 14, 2024 at 4:42 PM
Stack trace
#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('fa1c2d62-efa8-4...', Array, [invalid], Array, true)
#7 src/addons/DigitalPoint/Analytics/Pub/Controller/Beacon.php(35): DigitalPoint\Analytics\Repository\Measurement->collect('fa1c2d62-efa8-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(2826): XF\Mvc\Dispatcher->run()
#13 src/XF.php(806): XF\App->run()
#14 index.php(23): XF::runApp('XF\\Pub\\App')
#15 {main}
Request state
array(4) {
  ["url"] => string(164) "/b/image.gif?p=%2FJ9VDU7Ud6E2e%2BhfuVe5COE%2BoWJaZ0PWjyMgodO%2FQA1Pa6BaUaEJZMEr2o6WJ73iNHynTV0BfxdZpnr3OyMcUMtQYDLtOf1xqvihcImQP5IIBrm%2B9MXK9adPfbaLIHGhhNM%3D"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["p"] => string(132) "/J9VDU7Ud6E2e+hfuVe5COE+oWJaZ0PWjyMgodO/QA1Pa6BaUaEJZMEr2o6WJ73iNHynTV0BfxdZpnr3OyMcUMtQYDLtOf1xqvihcImQP5IIBrm+9MXK9adPfbaLIHGhhNM="
  }
  ["_POST"] => array(0) {
  }
}
 
@digitalpoint getting this error on XF 2.3.3:
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 Oct 14, 2024 at 4:42 PM
Stack trace
#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('fa1c2d62-efa8-4...', Array, [invalid], Array, true)
#7 src/addons/DigitalPoint/Analytics/Pub/Controller/Beacon.php(35): DigitalPoint\Analytics\Repository\Measurement->collect('fa1c2d62-efa8-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(2826): XF\Mvc\Dispatcher->run()
#13 src/XF.php(806): XF\App->run()
#14 index.php(23): XF::runApp('XF\\Pub\\App')
#15 {main}
Request state
array(4) {
  ["url"] => string(164) "/b/image.gif?p=%2FJ9VDU7Ud6E2e%2BhfuVe5COE%2BoWJaZ0PWjyMgodO%2FQA1Pa6BaUaEJZMEr2o6WJ73iNHynTV0BfxdZpnr3OyMcUMtQYDLtOf1xqvihcImQP5IIBrm%2B9MXK9adPfbaLIHGhhNM%3D"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["p"] => string(132) "/J9VDU7Ud6E2e+hfuVe5COE+oWJaZ0PWjyMgodO/QA1Pa6BaUaEJZMEr2o6WJ73iNHynTV0BfxdZpnr3OyMcUMtQYDLtOf1xqvihcImQP5IIBrm+9MXK9adPfbaLIHGhhNM="
  }
  ["_POST"] => array(0) {
  }
}
Are you using the latest version of the addon?
 
Back
Top Bottom