@Laul0 opened this Issue on July 25th 2019

Summary

I upgraded the Matomo version from 3.10.0 to 3.11.0 yesterday.
Since I upgrade my server (on docker), I can track my visitor anymore.

Current behavior

On my website, from the dev console, I have the following error message:

https://myserver.com/matomo.php?ping=1&idsite=[Site ID]&rec=1&r=645547&h=10&m=29&s=26&url=https%3A%2F%2Fmysite.com%2F&_id=1f281c9653116d4a&_idts=1557243117&_idvc=73&_idn=0&_refts=1564063882&_viewts=1564063882&_ref=https%3A%2F%2Ft.co%2FtuTVpuUy1b&send_image=1&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=0&java=1&gears=0&ag=0&cookie=1&res=1920x1200&gt_ms=889&pv_id=RO2QL2
[Error] Failed to load resource: the server responded with a status of 500 () (matomo.php, line 0)

From my server log, I have this message:

[Thu Jul 25 14:31:03.970646 2019] [php7:error] [pid 56] [client [IP]:57066] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function Piwik\\Tracker\\GoalManager::detectGoalsMatchingUrl(), 2 passed in /bitnami/matomo/plugins/Goals/Tracker/GoalsRequestProcessor.php on line 92 and exactly 4 expected in /opt/bitnami/matomo/core/Tracker/GoalManager.php:131\nStack trace:\n<a href='/0'>#0</a> /bitnami/matomo/plugins/Goals/Tracker/GoalsRequestProcessor.php(92): Piwik\\Tracker\\GoalManager->detectGoalsMatchingUrl(1, Object(Piwik\\Tracker\\ActionPageview))\n<a href='/1'>#1</a> /opt/bitnami/matomo/core/Tracker/Visit.php(152): Piwik\\Plugins\\Goals\\Tracker\\GoalsRequestProcessor->afterRequestProcessed(Object(Piwik\\Tracker\\Visit\\VisitProperties), Object(Piwik\\Tracker\\Request))\n<a href='/2'>#2</a> /opt/bitnami/matomo/core/Tracker.php(138): Piwik\\Tracker\\Visit->handle()\n<a href='/3'>#3</a> /opt/bitnami/matomo/core/Tracker/Handler.php(49): Piwik\\Tracker->trackRequest(Object(Piwik\\Tracker\\Request))\n<a href='/4'>#4</a> /opt/bitnami/matomo/core/Tracker.php(120): Piwik\\Tracker\\Handler->process(Object(Piwik\\Tracker), Object(Piwik\\Tracker\\RequestSet))\n<a href='/5'>#5</a> /opt/bitnami/matomo/core/Tracker.php(97): Pi in /opt/bitnami/matomo/core/Tracker/GoalManager.php on line 131, referer: https://mysite.com/

Thx for your help

@scysys commented on July 25th 2019

Maybe you should try the update over your console again: ./path/to/matomo/console core:update

@tsteur commented on July 25th 2019 Member

@Laul0 it seems like one file wasn't updated correctly maybe? Very likely the file plugins/Goals/Tracker/GoalsRequestProcessor.php.

Could you try the manual three step update here? https://matomo.org/docs/update/#the-manual-three-step-update or try to update the content of that file only?

@Laul0 commented on July 26th 2019

I'll try to update from the console firstly because as I said, I'm using a Docker container (bitnami/matomo).

I'll keep you in touch

Thx for you help

@Laul0 commented on July 26th 2019

core:update doesn't change anythings:

Screen Shot 2019-07-26 at 16 47 30
@Laul0 commented on July 26th 2019

heyyy @tsteur, I performed the update manually and analytics works again ! 🤩

Thank you guys, you rock 👍🏻

@tsteur commented on July 26th 2019 Member

Glad it works now 👍

This Issue was closed on July 26th 2019
Powered by GitHub Issue Mirror