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.

This topic contains 2 replies, has 2 voices.

Last updated by kristofV-3 3 months, 3 weeks ago.

Assigned support staff: Yvette.

Author Posts
December 2, 2019 at 3:35 pm #5055231


With the Woocommerce Multilingual plugin disabled, the woocommerce function get_available_variations() works fine. When enabling the Woocommerce Multilingual plugin, get_available_variations() returns a fatal PHP error.

'Fatal error: Uncaught Error: Call to undefined method WP_Post::get_id()'

Yes, all WPML versions are up to date.

Is this a known issue?

December 4, 2019 at 12:13 pm #5068169


Languages: English (English ) Spanish (Español )

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


I looked through our internal issues database and I did not find anything related to this.

Is this something that you could easily replicate in a sandbox site pre-configured with WPML and Woocommerce?

If so, then I can provide access to the sandbox site and would ask you to please replicate the issue so that I can escalate this to our 2nd tier/developers team for feedback.

Normally, our plugins should not interfere with any STANDARD WordPress or Woocommerce functionality.

December 9, 2019 at 8:00 am #5090481


My issue is resolved now. Thank you!