Request had insufficient authentication scopes

Hi, just installed the statistics extension; I did everything to set it up, it worked for a while, but then in the listing page instead of Stats I get “Request had insufficient authentication scopes.”. When I revoke access and grant access back, I get the “Your app is not verified”. My app is verified by Google. What is wrong? Tried to disable Litespeed cache but still doesn’t work. Thanks!

Hello,

Use the search feature :

I did and found the topic, but it seems to me not to have a clear answer…!

Hi,

Please send temporary WP access to support@hivepress.io with details for reproducing this issue, and we’ll check it (please send only the link, without login and password). You can create a temporary access link using this plugin: Temporary Login Without Password – WordPress plugin | WordPress.org. Also, please send PHP logs when this error is displayed. You can view PHP logs using this documentation: How to configure WordPress error logs to identify and resolve problems - HivePress Help Center

Hi gents,

I’m having the same issue, only on listing statistics though. Dashboard stats are working fine.

Keep me posted if you find any fixes for this issue

Hi,
To fix it manually,
After line 80 of this file [hivepress/includes/components/class-google.php at master · hivepress/hivepress · GitHub](hivepress/includes/components/class-google.php at master · hivepress/hivepress · GitHub

Add this:

‘scope’ =>[‘https://www.googleapis.com/auth/analytics.readonly’],

2 Likes

Please make sure that you have the latest HivePress version, and manually revoke/grant access for Google Analytics in HivePress/Settings/Integrations, we fixed this in the recent 1.7.12 update.

Thanks ihor, that method has worked.

@andrii
Yesterday , I purchased the statistics plugin and set it up, and data started to show on my statistics dashboard on hivepress site. But I have to click on ‘Revoke Access’ and then ‘Grant Access’ again for the statistics data to show again. It seems the token expires after 1 hour. I am looking for a permanent fix . Please Guide me

Hi,

Please check the solution in this topic. Please note that the latest version of HivePress is 1.7.13.

I hope it helps

Hi Andrii,
I should tell you that this problem is still occurring even with the last update. I had to add the manual “fix” to it too.

1 Like

Hey @Fabiog80 !!

Can we please connect offline, I need help to fix my statistics plugin as I have to manually revoke and grant access every hour.

Can you please send me a message to my email - autocarcraze@gmail.com

I would really be very thankful for your kind help.

Best Regards,

Hi @andrii and hivepress team,

I am already using the latest hivepress 1.7.13 .
My issue persists, after every one hour. I revoke and grant access to access the analytics otherwise I get the error : request had insufficient authentication scopes.

I have also disabled the litespeed cache, yet the issue persists.

Please help me in this one !

Hi , I sent you an email with the manual fix. Check your inbox or spam folder.

2 Likes

Hey @Fabiog80

Thanks for the code “fix” ( scope adding after line 80 of the class-google.php file )

It worked like magic for me. I did not need to grant or revoke access in last 7 hours. It working fine right now.

Thank you very much for your support !!

Also, @andrii @ihor , request you to please do a permanent fix to this issue in the next update hopefully !

Regards,
Car Craze

Please let me know if you also use Social Login extension, it may still load the broken Google OAuth library. This bug occurs in the library we’re using 2.8.0 breaks exiting scope handling · Issue #1052 · thephpleague/oauth2-client · GitHub and we’ll test it again before releasing the next HivePress version, as per the suggesting we downgraded the library but maybe it’s also loaded by Social Login. If this is the case, we’ll release a quick fix for this.

Yes, I’m also using social login extension!
Thanks

1 Like

Yea, same I am also using social login

Thanks, we’ll test it again and release a fix by the end of the week.

Any updates? im having the same issue