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
Google Analytics Importer depreciated code #351
Comments
This issue has been mentioned on Matomo forums. There might be relevant details there: https://forum.matomo.org/t/warnings-google-analytics-import-plug/48522/3 |
@AltamashShaikh Could you have a quick look at this one? Not sure if it's a problem of the plugin or if core needs to handle something differently here... |
@zigojacko What was the URL where you were getting this error ? |
@zigojacko Thanks for reporting the issue Like adding this line here
|
@AltamashShaikh I'll also prepare a change for core. But the plugin needs to be adjusted as well, as after the changes in core it will still throw an exception if null is provided |
Sorry, I am unsure @AltamashShaikh as I just saw the error in the log however, every hour when the cron job runs, we are getting another error printed to the log:
We just seem to be getting loads of problems running this on PHP8. |
@AltamashShaikh I'll move this issue to the plugin, as it's more an issue with the plugin than with core. |
I mentioned it already in the forum, but if it's helpful to know, I'm also experiencing this issue with the following setup:
I'm glad to see there a solution seems to be coming soon. In the mean time, though, should I put off the process of trying to import my analytics? It seems the Importer still manages to capture some data (though often stops with other error messages), and I'm not sure if the data it's creating will be incomplete or otherwise defective. Thanks! |
@nicksherman a new version with fix should be released next week. |
@AltamashShaikh Good to know, thanks! I'm not sure if the other errors I'm getting are related to this or not, but there are a few that keep popping up in the "Status" reports of my Import Jobs … The first one is an error reaching GA, which may actually be an issue on Google's end(?):
The second one about error reports may be triggered by that:
I've also seen another error about authentication even though it's been nowhere near the expected 7-day re-authentication limit:
If I re-authenticate anyway and resume the process it seems to get the import running again, but only for a limited time before it hits another error. Happy to share further info in a separate thread if it's helpful. I'd definitely appreciate any insight! |
@nicksherman You can now publish your app and don’t need to reauthorize every 7 days also error looks like you are being rate limited |
@AltamashShaikh This was actually the guide I followed to set things up in the first place, which is why I'm a bit confused about the authentication error messages. It is strange because there definitely is some data being imported, but something along the line is tripping it up. |
@AltamashShaikh It seems this is an ongoing issue, as other people are reporting the same situation in the forum: |
Just confirming that the latest update to version 4.5 of the plugin has fixed this issue. Thanks! |
Running PHP 8. Matomo version 4.13.3.
WARNING GoogleAnalyticsImporter[2023-02-13 14:19:56 UTC] [04666] /../core/Date.php(138): Deprecated - urldecode(): Passing null to parameter matomo-org/matomo#1 ($string) of type string is deprecated - Matomo 4.13.3 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) [internal function]: Piwik\ErrorHandler::errorHandler(),#1/core/Date.php(138),#2/plugins/GoogleAnalyticsImporter/GoogleAnalyticsImporter.php(462),#3/plugins/GoogleAnalyticsImporter/Controller.php(614),[internal function]: Piwik\Plugins\GoogleAnalyticsImporter\Controller->pendingImports(),#5/core/FrontController.php(637),#6/core/FrontController.php(169),#7/core/dispatch.php(32),#8/index.php(25)
The text was updated successfully, but these errors were encountered: