Title: WooCommerce returns raw HTML and "Missing user_id parameter" error during Klaviyo plugin connection
Hi everyone,
We are experiencing a critical issue when trying to connect the official Klaviyo plugin to WooCommerce. The authentication flow breaks down internally within our WordPress setup.
The issue details:
- When clicking the "Connect Account" button, the site fails to redirect us to the standard, formatted WooCommerce page where we should approve the connection. Instead, the browser outputs raw HTML code (plain text).
- If we inspect that raw HTML and manually extract the redirect link to force the connection, the URL fails within WordPress, throwing the following error:
"Missing user_id parameter"
Troubleshooting already done:
- We have completely deactivated our caching plugins (WP Fastest Cache) to rule out caching conflicts. The issue persists exactly the same way even with no cache active.
It seems that WooCommerce is failing to process the REST API authentication request correctly, or the internal endpoint is returning an incorrect format (raw HTML) instead of executing the proper redirect. As a result, the vital user_id parameter is stripped or never appended to the query string.
Has anyone encountered this raw HTML output during the API handshake, or does anyone know what server directive or WooCommerce configuration could be causing the user_id parameter to drop?
Thank you in advance for your help!
