@Daijobou opened this Issue on December 14th 2022

Expected Behavior

Show box for "Visits Overview"

Current Behavior

"Visitors > overview" shows instead box "Visits Overview" this:
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /var/www/vhosts/example.com/core/DataTable/Row.php on line 361

Possible Solution

Increase memory limit? ;)

Steps to Reproduce (for Bugs)

https://example.com/index.php?module=CoreHome&action=index&idSite=1&period=range&date=last30#?period=range&date=2022-01-01,2022-12-14&idSite=1&category=General_Visitors&subcategory=General_Overview
I want see data for this year. Last year working fine.

Context

Your Environment

  • Matomo Version: 4.13
  • PHP Version: 8.1.13
  • Server Operating System: AlmaLinux 8.7
@sgiehl commented on December 15th 2022 Member

This is most likely a memory issue, as the chart when using a range will try to load the data for each day in the range.
I'll close this one as an improvement is already in progress with #20100.
Meanwhile there is nothing else you can do except of increasing the memory limit.

@Daijobou commented on December 15th 2022

@sgiehl The "Overview" is not the "Chart". The chart is displayed correctly. It is the box below, the "overview". With the numerical values for visitors.

here for 01.01. - 15.12.2022
image

here for 01.01. - 31.12.2021 (here are more days and working fine)
image

@sgiehl commented on December 19th 2022 Member

@Daijobou We are currently implementing some improvements around loading archives for date ranges.
But the difference for the data above is easy to explain:
The second one displays a full year, so the numbers displayed in the report can simply use the prepared year archive. If you request a range, that does not contain the full year, Matomo tries to sum up best matching archives. E.g. some month archives for jan. to nov. together with some day archives for dec. This might consume a lot more time and memory.

This Issue was closed on December 15th 2022
Powered by GitHub Issue Mirror