Skip to content

FluentCart: Attribute term creation crashes with 'Information mismatch' #1

@vcode-sh

Description

@vcode-sh

Summary

Creating an attribute term via the REST API always returns HTTP 500 with "Information mismatch".

Reproduction

curl -s -u "admin:APP_PASSWORD" -X POST \
  "https://your-site.com/wp-json/fluent-cart/v2/options/attr/group/1/term" \
  -H "Content-Type: application/json" \
  -d '{"title":"Test Term","slug":"test-term"}'

Response: {"code":404,"message":"Information mismatch.","data":null} (HTTP 500)

Root Cause

AttrTermResource::create() queries fct_atts_terms instead of fct_atts_groups when validating the parent group ID. The group ID lookup hits the wrong table and returns null, triggering the "Information mismatch" error.

Affected Version

FluentCart 1.3.9

Workaround

Create attribute terms via the WordPress admin UI instead of the API.

MCP Impact

fluentcart_attribute_term_create tool always fails. Documented in troubleshooting and tool description.

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