Skip to content

FluentCart: report_sales_growth crashes with 'Class not found' #2

@vcode-sh

Description

@vcode-sh

Summary

The sales growth report endpoint crashes with a fatal error — an empty class name is passed to the autoloader.

Reproduction

curl -s -u "admin:APP_PASSWORD" \
  "https://your-site.com/wp-json/fluent-cart/v2/reports/sales-growth?start_date=2026-01-01&end_date=2026-03-03"

Response: {"message":"Class \"\" not found"} (HTTP 500)

Root Cause

Missing or empty class reference in the report controller. The class name resolves to an empty string before instantiation.

Affected Version

FluentCart 1.3.9

Workaround

Use report_sales_growth_chart (/reports/sales-growth-chart) instead — returns chart data for the same metric without the crash.

MCP Impact

fluentcart_report_sales_growth tool returns a server error. Tool description directs users to the chart alternative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfluentcart-mcpFluentCart MCP ServerupstreamFluentCart upstream bug — cannot fix from MCP side

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions