We cannot access our Session Recordings anymore since upgrading Matomo to 4.0.0. The datatable reports an error like "Oops… there was a problem during the request."
I was able to identify the problem by activating the logs:
ERROR Piwik\FrontController[2020-12-01 11:16:46 UTC] [b8603] Uncaught exception: Error: Class 'Piwik\Plugins\UserCountry\LocationProvider\GeoIp' not found in /var/www/matomo/plugins/HeatmapSessionRecording/Columns/Metrics/Location.php:76
ERROR Piwik\FrontController[2020-12-01 11:16:46 UTC] [b8603] Stack trace:
ERROR Piwik\FrontController[2020-12-01 11:16:46 UTC] [b8603] <a href='/0'>#0</a> /var/www/matomo/plugins/HeatmapSessionRecording/Reports/GetRecordedSessions.php(250): Piwik\Plugins\HeatmapSessionRecording\Columns\Metrics\Location->format()
ERROR Piwik\FrontController[2020-12-01 11:16:46 UTC] [b8603] <a href='/1'>#1</a> [internal function]: Piwik\Plugins\HeatmapSessionRecording\Reports\GetRecordedSessions->Piwik\Plugins\HeatmapSessionRecording\Reports\{closure}()
ERROR Piwik\FrontController[2020-12-01 11:16:46 UTC] [b8603] <a href='/2'>#2</a> /var/www/matomo/core/DataTable.php(507): call_user_func_array()
ERROR Piwik\FrontController[2020-12-01 11:16:46 UTC] [b8603] <a href='/3'>#3</a> /var/www/matomo/core/DataTable.php(613): Piwik\DataTable->filter()
ERROR Piwik\FrontController[2020-12-01 11:16:46 UTC] [b8603] <a href='/4'>#4</a> /var/www/matomo/core/API/DataTablePostProcessor.php(303): Piwik\DataTable->applyQueuedFilters()
ERROR Piwik\FrontController[2020-12-01 11:16:46 UTC] [b8603] <a href='/5'>#5</a> /var/www/matomo/core/API/DataTablePostProcessor.php(133): Piwik\API\DataTablePostProcessor->applyQueuedFilters()
ERROR Piwik\FrontController[2020-12-01 11:16:46 UTC] [b8603] <a href='/6'>#6</a> /var/www/matomo/core/Plugin/Visualization.php(536): Piwik\API\DataTablePostProcessor->process()
ERROR Piwik\FrontController[2020-12-01 11:16:46 UTC] [b8603] <a href='/7'>#7</a> /var/www/matomo/core/Plugin/Visualization.php(193): Piwik\Plugin\Visualization->applyFilters()
ERROR Piwik\FrontController[2020-12-01 11:16:46 UTC] [b8603] <a href='/8'>#8</a> /var/www/matomo/core/Plugin/Report.php(320): Piwik\Plugin\Visualization->render()
ERROR Piwik\FrontController[2020-12-01 11:16:46 UTC] [b8603] <a href='/9'>#9</a> /var/www/matomo/plugins/CoreHome/Controller.php(58): Piwik\Plugin\Report->render()
ERROR Piwik\FrontController[2020-12-01 11:16:46 UTC] [b8603] <a href='/10'>#10</a> [internal function]: Piwik\Plugins\CoreHome\Controller->renderReportWidget()
ERROR Piwik\FrontController[2020-12-01 11:16:46 UTC] [b8603] <a href='/11'>#11</a> /var/www/matomo/core/FrontController.php(605): call_user_func_array()
ERROR Piwik\FrontController[2020-12-01 11:16:46 UTC] [b8603] <a href='/12'>#12</a> /var/www/matomo/core/FrontController.php(166): Piwik\FrontController->doDispatch()
ERROR Piwik\FrontController[2020-12-01 11:16:46 UTC] [b8603] <a href='/13'>#13</a> /var/www/matomo/core/dispatch.php(32): Piwik\FrontController->dispatch()
ERROR Piwik\FrontController[2020-12-01 11:16:46 UTC] [b8603] <a href='/14'>#14</a> /var/www/matomo/index.php(25): require_once('/var/www/stack/...')
ERROR Piwik\FrontController[2020-12-01 11:16:46 UTC] [b8603] <a href='/15'>#15</a> {main}
So I guess the problem is related to the changes made in #15521.
Using Piwik\Plugins\GeoIp2\LocationProvider\GeoIp2
instead of Piwik\Plugins\UserCountry\LocationProvider\GeoIp
fixes the error for us.
I am sorry if this issue is not supposed to be submited in this repo because Session Recordings are not part of the Matomo Core.
Hi,
Can you please make sure you are using the latest version of the session recordings plugin?
We are using v4.0.4
which should be the latest version.
@ThorbenOermann Thanks for creating the issue. I've fixed the issue in the code. We will release a new version soon.
ping @tsteur