Statistik missing old Orders

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
rvhelp
Posts: 24
Joined: 06 Sep 2022, 08:43

Statistik missing old Orders

Post by rvhelp » 21 Oct 2022, 15:41

Hello, after the update (22.10.1) the entries in the statistics are missing. Only new orders are displayed.

What determines which orders are displayed here? Have I possibly deleted references or what could be the reason for that?
Last edited by rvhelp on 28 Oct 2022, 10:40, edited 1 time in total.

User avatar
aimeos
Administrator
Posts: 7919
Joined: 01 Jan 1970, 00:00

Re: Statistik missing old Orders

Post by aimeos » 24 Oct 2022, 17:30

There's a check for if orders contain products from the same site or from the site subtree (important for marketplaces):
https://github.com/aimeos/aimeos-core/b ... #L447-L463

You should check if the site IDs are migrated property in all tables (from "1" to "1." for example if you only have one site).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

rvhelp
Posts: 24
Joined: 06 Sep 2022, 08:43

Re: Statistik missing old Orders

Post by rvhelp » 28 Oct 2022, 10:42

The Site IDs are all migrated to "1."

I tried again to go through the update process.

When updating from 22.4.4 to 22.7.1 / 22.7.2 / 22.10.1, the statistics from previous months are no longer displayed in the backend statistics.
Last edited by rvhelp on 28 Oct 2022, 11:42, edited 1 time in total.

User avatar
aimeos
Administrator
Posts: 7919
Joined: 01 Jan 1970, 00:00

Re: Statistik missing old Orders

Post by aimeos » 28 Oct 2022, 11:40

You only have one site with "1." as value allover?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

rvhelp
Posts: 24
Joined: 06 Sep 2022, 08:43

Re: Statistik missing old Orders

Post by rvhelp » 28 Oct 2022, 11:45

Yes only one site and "1." in every mshop_order table.

User avatar
aimeos
Administrator
Posts: 7919
Joined: 01 Jan 1970, 00:00

Re: Statistik missing old Orders

Post by aimeos » 28 Oct 2022, 11:52

No clue why the old orders are not loaded.
Can you enable debug mode (madmin/log/manager/loglevel = 7) and check the SQL statements, why the old orders are not returned or used for aggregation?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

rvhelp
Posts: 24
Joined: 06 Sep 2022, 08:43

Re: Statistik missing old Orders

Post by rvhelp » 28 Oct 2022, 12:59

I tried, but there are only new entries when I open the frontend and not when I go to the Aimeos Dashboard.

But I did find out something: An older order is displayed as soon as I delete a newer one - only the last 25 orders are displayed.

User avatar
aimeos
Administrator
Posts: 7919
Joined: 01 Jan 1970, 00:00

Re: Statistik missing old Orders

Post by aimeos » 28 Oct 2022, 17:14

In the latest order section, only the last 25 orders are listed.
The order heatmap should show the number of orders from the last months per day.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

rvhelp2
Posts: 29
Joined: 29 Oct 2022, 10:10

Re: Statistik missing old Orders

Post by rvhelp2 » 29 Oct 2022, 10:15

In my case latest orders sections at the top contains 10 orders. The heatmap and everything else are somehow limited to the last 25 orders:

Image
Image

User avatar
aimeos
Administrator
Posts: 7919
Joined: 01 Jan 1970, 00:00

Re: Statistik missing old Orders

Post by aimeos » 22 Nov 2022, 15:30

The only way to find out why only these orders are shown is to enable debug logs:

Code: Select all

madmin/log/manager/loglevel = 7
Then, open the dashboard and afterwards the Log panel to see the executed queries and check the order related queries which use SQL aggregation functions like COUNT() or SUM().
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply