› Forums › Post Pay Counter PRO › Support › google analytics error
We are based in Europe with a GMT+1/GMT+2 time zone - support replies may be delayed due to time zone differences with your country.
- This topic has 15 replies, 2 voices, and was last updated 6 years, 11 months ago by Stefano.
-
AuthorPosts
-
December 22, 2017 at 3:19 am #59663byron millerGuest
tried authorizing google analytics and immediately upon adding my access token i get the following error:
December 21, 2017 20:17:09
An error was thrown with code “ga_profile_retrieve_error”, message “Error: 401: {“error”:{“errors”:[{“domain”:”global”,”reason”:”required”,”message”:”Login Required”,”locationType”:”header”,”location”:”Authorization”}],”code”:401,”message”:”Login Required”}}” and debug data “array (
)”.is this normal?
December 22, 2017 at 3:28 am #59668byron millerGuestsee this in nginx
2017/12/22 02:25:48 [error] 21131#21131: *292 FastCGI sent in stderr: “PHP message: PHP Warning: json_decode() expects parameter 1 to be string, array given in /var/www/html/wp-content/plugins/post-pay-counter-pro/classes/ppcp_google_analytics_class.php on line 96” while reading response header from upstream
not sure if its related, seems to happen since trying to re-connect analytics
December 22, 2017 at 11:36 am #59669StefanoKeymasterHi Byron,
I think something went wrong during the initial authentication routine. Please revoke the authentication and do it all over again. May be helpful to have a look at the apt tutorial ๐Let me know if this solves!
Have a nice day,
StefanoDecember 22, 2017 at 4:02 pm #59681byron millerGuestI folled that tutorial and the last screen asking me which property to enable never shows up. I’ve added/revoked the google auth token now a couple of times.
I use the same process with my analytics and other plugins without fail.
December 22, 2017 at 4:02 pm #59683byron millerGuestThis reply has been marked as private.December 23, 2017 at 6:49 am #59689StefanoKeymasterYou seem to be encountering unseen issues I don’t have much advice for. May I have a look personally through a temp admin account? This applies to your other issue as well ๐
December 23, 2017 at 7:46 am #59692byron millerGuestThis reply has been marked as private.December 23, 2017 at 7:50 am #59696StefanoKeymasterThanks! I’ll let you know as soon as I get to something ๐
December 23, 2017 at 8:15 am #59700StefanoKeymasterI am not able to edit plugin files through the standard WP editor to gather more details. Upon saving, it says “Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.” Maybe temp FTP access as well?
December 23, 2017 at 8:21 am #59703StefanoKeymasterI have also tried deactivating the “Google Analytics” plugin, to see whether a conflict was involved, but no matter how many times I click Deactivate, the header says “Plugin deactivated”, but the plugin it’s still there, active :\
December 23, 2017 at 8:59 am #59706byron millerGuestSo the plugin editor should work if you de-activate the plugin. I just tried it. I don’t have FTP/SFTP setup right now, i’d have to go and try and set that up. Can you try de-activating post-pay-counter-pro and see if edit works then?
December 23, 2017 at 9:00 am #59708byron millerGuestYou may have caught me in the middle of enabling debug logging in PHP or a server 500 error. I’m not doing anything else on the server for the time being.
December 23, 2017 at 9:00 am #59710byron millerGuestI see that Google Analytics module is de-activated too.
December 23, 2017 at 9:18 am #59712byron millerGuestSo disabling WD Google Analytics allowed me to do the google analytics integration of this module. Guessing there is definitely a conflict there.
December 23, 2017 at 9:26 am #59716byron millerGuestsee this in my wordpress debug log after authorizing the app: just a warning but figured i’d post it.
[23-Dec-2017 08:16:40 UTC] PHP Warning: Creating default object from empty value in /var/www/html/wp-content/plugins/post-pay-counter-pro/classes/ppcp_google_analytics_class.php on line 156
December 24, 2017 at 9:34 am #59739StefanoKeymasterAgain, sorry for the delay.
It looks to me like both are now active: does it work fine? ๐
Have a nice day,
Stefano -
AuthorPosts
- The topic ‘google analytics error’ is closed to new replies.