Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are trying to use GraphQL with WPML on your site, but GraphQL is not functioning properly. The issue is identified with the WooGraphQL plugin, which is not officially compatible with WPML. The problem arises because the product model is unexpectedly transformed into a post model when WPML is active.
Solution:
We recommend contacting the WooGraphQL plugin author to discuss joining our compatibility program. Meanwhile, we have escalated this issue as a feature request for a new version of WPML GraphQL; however, it will take some time before this is considered and released. As a workaround, you can use the standard post schema to fetch products and their translations, which bypasses the schema conflict.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 4 replies, has 1 voice.

Last updated by Dražen 2 weeks, 3 days ago.

Assisted by: Dražen.

Author Posts
June 4, 2025 at 1:41 pm #17106675

elinaB-3

Background of the issue:
I am trying to use GraphQL with WPML on my site hidden link.

Symptoms:
GraphQL is not working.

Questions:
How can I get GraphQL to work with WPML?

June 4, 2025 at 2:46 pm #17107138

Laura
WPML Supporter since 05/2018

Languages: English (English ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Hi,

thanks for contacting us. Could you please expand your request? What are you trying to do exactly and what is not working?

June 5, 2025 at 6:32 am #17108591

elinaB-3

i get this error

wpmlgraph.png
June 5, 2025 at 6:53 am #17108701

elinaB-3

i have

WPGraphQL Version 2.3.0
WPGraphQL WooCommerce (WooGraphQL) Version 0.19.0 (does not work with latest versoio)

WPML GraphQL Version 1.1.3

language fllter gives error

June 6, 2025 at 7:19 am #17113013

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for getting back.

Yes, there is an issue with latest WooGraphQL plugin, this plugin is not officially compatible with WPML so there are some issue.

We've identified that the problem stems from how product types are resolved in the GraphQL schema within the WooGraphQL plugin. Specifically, the issue arises because the product model is unexpectedly transformed into a post model when WPML is active.

You can contact plugin author and ask them to join our program and work together on compatibility. From our side we have escalated this issue / plugin as feature request for new version of WPML GraphQL, unfortunately it will take some time before we consider this and release new version.

A potential workaround is to use the standard post schema to fetch products and their translations, which bypasses the schema conflict.

Regards,
Drazen