Opened 2 years ago

Closed 23 months ago

#3132 closed Bug (fixed)

ImageGraph: The column 'revenue_discount' was not found in this report

Reported by: tsteur Owned by:
Priority: normal Milestone: Piwik 1.8
Component: Core Keywords:
Cc: Sensitive: no


ImageGraph just displays a message "The column 'revenue_discount' was not found in this report" when opening "Ecommerce orders" with metric "Tax" on Piwik Mobile.

Example url:

The metric 'revenue' works but the lines are a bit too big, I'll attach an image to visualize this.

Further not working metrics are 'revenue_tax', 'items', 'revenue_subtotal', 'revenue_shipping' and 'avg_order_revenue'.

I always set the column and filter_sort_column parameter to the current selected metric in Piwik Mobile. This has the advantage that the displayed graph is in accordance with the list of displayed report data. It works fine for reports like "VisitsSummary.get" but just not for Ecommerce report.

Is this a bug? Is it possible to render a graph for these metrics?

Attachments (1)

graphecommerce.png (20.8 KB) - added by tsteur 2 years ago.

Download all attachments as: .zip

Change History (7)

Changed 2 years ago by tsteur

comment:1 Changed 2 years ago by matt (mattab)

  • Milestone set to 1.7.x - Piwik 1.7.2
  • Priority changed from low to normal

Thanks for the report. What are the URLs that have problems?

Screenshot: I don't know why these metrics in particular would have a broken Y axis... ?

Are these "broken" graphs available 1 click away from the main menu? or does the user has to pick to see these graphs? This could change the priority on the ticket I guess

comment:2 Changed 2 years ago by tsteur

Yes. The 'revenue' graph is just one click away from the main menu. The graph is directly displayed when selecting the report "Ecommerce orders". Here is the link (you just have to add the token_auth):

Other metrics look fine. Haven't seen similar issues before.

comment:3 Changed 2 years ago by matt (mattab)

  • Milestone changed from 1.7.x - Piwik 1.7.x to 1.7.2 - Piwik 1.7.2

comment:4 Changed 2 years ago by JulienM (JulienMoumne)

The ImageGraph.get API method does not take $idGoal as a parameter :

Processed reports are retrieved without any idGoal :

The data you get is therefore not related to eCommerce. This explains why eCommerce metrics are not recognized.

comment:5 Changed 23 months ago by matt (mattab)

(In [6428]) Refs #3132 This doesn't seem to be enough yet

comment:6 Changed 23 months ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [6432]) Fixes #3132 The last bug was that the graph expects numbers, but we passing strings containing currency symbol, which was casting as 0

Note: See TracTickets for help on using tickets.