Post Pay Counter

The best way to pay authors on WordPress

  • Features
    • PRO version
  • Cart
    • Addons
  • Documentation
  • Support

google analytics error

by

› 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 7 years, 6 months ago by Stefano.
Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • December 22, 2017 at 3:19 am #59663
    byron miller
    Guest

    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 #59668
    byron miller
    Guest

    see 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 #59669
    Stefano
    Keymaster

    Hi 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,
    Stefano

    December 22, 2017 at 4:02 pm #59681
    byron miller
    Guest

    I 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 #59683
    byron miller
    Guest
    This reply has been marked as private.
    December 23, 2017 at 6:49 am #59689
    Stefano
    Keymaster

    You 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 #59692
    byron miller
    Guest
    This reply has been marked as private.
    December 23, 2017 at 7:50 am #59696
    Stefano
    Keymaster

    Thanks! I’ll let you know as soon as I get to something ๐Ÿ™‚

    December 23, 2017 at 8:15 am #59700
    Stefano
    Keymaster

    I 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 #59703
    Stefano
    Keymaster

    I 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 #59706
    byron miller
    Guest

    So 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 #59708
    byron miller
    Guest

    You 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 #59710
    byron miller
    Guest

    I see that Google Analytics module is de-activated too.

    December 23, 2017 at 9:18 am #59712
    byron miller
    Guest

    So 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 #59716
    byron miller
    Guest

    see 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 #59739
    Stefano
    Keymaster

    Again, sorry for the delay.

    It looks to me like both are now active: does it work fine? ๐Ÿ™‚

    Have a nice day,
    Stefano

  • Author
    Posts
Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘google analytics error’ is closed to new replies.

Your cart

Number of items in cart: 0

  • Your cart is empty.
  • Total: €0.00
  • Checkout

What are you looking for?

BEFORE POSTING

Before posting, please please please do have a look at our Documentation section. Your problem may be addressed there, allowing you to solve it without help from us :)

Copyright © 2025 ยท Centric Theme on Genesis Framework ยท WordPress ยท Log in