Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Google Analytics Import - Deprecated - Calling get_class() without arguments is deprecated #481

Closed
4 tasks done
GrowthWizard opened this issue Dec 8, 2023 · 2 comments

Comments

@GrowthWizard
Copy link

What happened?

I wanted to use the Google-Analytics-Import Plugin. Matomo 4.16.0. - After authorizing my workspace account, the following problem occurs:

WARNING: /plugins/GoogleAnalyticsImporter/vendor/google/apiclient/src/Http/REST.php(58): Deprecated - Calling get_class() without arguments is deprecated - Matomo 4.16.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: GoogleAnalyticsImporter, Action: processAuthCode, In CLI mode: false)

Bildschirmfoto 2023-12-08 um 22 24 25

What should happen?

The problem doesn't prevent you from authorizing with a Google account. Since the import of Google Analytics 4 Date with an internal Google API Key doesn't work, I suspect this error might be the cause.

How can this be reproduced?

I followed the official tutorial, available on: https://matomo.org/faq/general/set-up-google-analytics-import/.

  1. Created an internal workspace app
  2. Authorized my Account within the MatomoPremise Installation

Matomo major version

Matomo 4

Matomo minor or patch Version

4.16.0

PHP version

8.3

Server operating system

Plesk Obsidian

What browsers are you seeing the problem on?

Chrome

Computer operating system

Mac OS

Relevant log output

No response

Validations

@michalkleiner michalkleiner transferred this issue from matomo-org/matomo Dec 9, 2023
@snake14
Copy link
Contributor

snake14 commented Dec 10, 2023

Hi @GrowthWizard . You mentioned that you were able to authorise alright; Are you saying that when you start an import, it doesn't work? Sadly, that warning is coming from a Google library and they haven't released a fix yet. We've been watching a PR created to fix the issue in their library so that we could upgrade once it's been fixed. You could try manually making that change on your server if you want.
As you mentioned in your description, that warning shouldn't prevent the plugin from operating as expected. Do you see any other errors in your logs? Have you tried starting an import using the console command and the -vvv option?

@AltamashShaikh
Copy link
Contributor

@GrowthWizard Fixed it with #488 and there should be a new version released early next week which will solve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants