Better Analytics

Better Analytics 3.1.1

No permission to download
Just did a little research.... apparently that PHP function array dereferencing wasn't added until PHP 5.4 (I wasn't aware of that... thought it was before that).

http://php.net/manual/en/migration54.new-features.php
Function array dereferencing has been added, e.g. foo()[0].

It's easy enough to change the code to work with PHP 5.3 (which I already have done in the source).

Upgrading to PHP 5.5 would fix it, although if I were you, I would upgrade to PHP 5.5 simply because it's faster and uses less memory than PHP 5.3. :)

Either way, I'll be putting out a 3.0.1 version later today that fixes the incompatibility with PHP 5.3.
 
Just did a little research.... apparently that PHP function array dereferencing wasn't added until PHP 5.4 (I wasn't aware of that... thought it was before that).

http://php.net/manual/en/migration54.new-features.php


It's easy enough to change the code to work with PHP 5.3 (which I already have done in the source).

Upgrading to PHP 5.5 would fix it, although if I were you, I would upgrade to PHP 5.5 simply because it's faster and uses less memory than PHP 5.3. :)

Either way, I'll be putting out a 3.0.1 version later today that fixes the incompatibility with PHP 5.3.

I'll upgrade to PHP 5.5 then, sounds like it's gaining me either way :)

Super thanks for the quick replies.

Edit // @digitalpoint it's working as intended with PHP 5.5!
 
Last edited:
For a moment I thought I need to restore my forum backup. While trying to update to the 3.0. version, my forum stopped running and I couldn't access it. It showed me just a blank page for 10 minutes.

Now after some minutes I can reach it.

upload_2015-3-4_1-38-5.webp

First and last error message:
Code:
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}

Request State

Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
["url"] => string(112) "http://xxx.com/admin.php?tools/run-deferred&redirect=http%3A%2F%2Fxxx.com%2Fadmin.php%3Fadd-ons%2F"
["_GET"] => array(2) {
["tools/run-deferred"] => string(0) ""
["redirect"] => string(40) "http://xxx.com/admin.php?add-ons/"
}
["_POST"] => array(0) {
}
}



Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
["url"] => string(22) "http://xxx.com/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
Is your server caching PHP files by chance? Like if you are using opcache if you have it set to only check for updated files after 5 minutes, you could end up with the old PreDispatch with a new PostDispatch file for up to 5 minutes.
 
I use Zend OpCache (Centmin Mod) but I have no idea how it works. I don't know much about server administration stuff.
 
When try to "link/authenticate your google analytics code" after page refresh (after sign in into google analytics) this error show up

Code:
Unknown Google API Error:

stdClass::__set_state(array(
'error' => 'invalid_client',
))

Also, option after that "Google analytics profile (Pick the Google Analytics Profile that corresponds to this site (requires authentication credentials to be set up properly) is blank, I can not choose nothing.
 
Site Search Setup:
Found in Google Analytics account under View Settings -> Query Parameter (should be set to "q").

Is the Query Parameter named "Exclude URL Query Parameters"? (because I can't find Query parameter, and have tried adding p there too)


Correction: I had to enable Site search settings first to find Query Parameter!
 
When try to "link/authenticate your google analytics code" after page refresh (after sign in into google analytics) this error show up

Code:
Unknown Google API Error:

stdClass::__set_state(array(
'error' => 'invalid_client',
))

Also, option after that "Google analytics profile (Pick the Google Analytics Profile that corresponds to this site (requires authentication credentials to be set up properly) is blank, I can not choose nothing.

Having the same issue.
 
I have the forum dimension set up, but I have no idea how to access the report that will show forum data.... does anyone know?
 
Well that error ultimately is coming from Google, and I'd guess it means they don't like your authentication credentials. Maybe generate a new set?
 
I have the forum dimension set up, but I have no idea how to access the report that will show forum data.... does anyone know?
How exactly do you want to see it? If you want to break an existing report by forum, use the secondary dimension option in Google Analytics (should be on the report page).
 
Top Bottom