Перейти к содержимому Перейти к боковой панели

Помечено: 

Эта тема содержит 0 ответ, имеет 0 voices.

Последнее обновление: danielD-143 2 месяца назад.

При содействии: Bruno Kos.

Автор Сообщения
17 октября, 2025 в 6:28 дп #17492825

danielD-143

Background of the issue:
I am trying to enable WPML Multilingual & Multicurrency for WooCommerce and the WP Desk Omnibus plugin (скрытая ссылка). When enabled separately, each plugin works correctly. However, when both are enabled together, the Omnibus plugin returns a fatal error. The problem seems to be with the function $original_id = WCMLfunctionsgetWooCommerceWpml()->products->get_original_product_id( $post->ID ); which returns null even though $post->ID is correct. Currently, WPML Multilingual & Multicurrency for WooCommerce is disabled on production.

Symptoms:
The Omnibus plugin returns a fatal error when enabled with WPML Multilingual & Multicurrency for WooCommerce. The error message is: [17-Oct-2025 04:10:13 UTC] PHP Warning: Attempt to read property "products" on null in plugins/wp-desk-omnibus/src/WPDesk/Omnibus/Core/Admin/PriceTableMetabox.php on line 77 [17-Oct-2025 04:10:13 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_original_product_id() on null in wp-desk-omnibus/src/WPDesk/Omnibus/Core/Admin/PriceTableMetabox.php:77.

Questions:
Why does the Omnibus plugin return a fatal error when enabled with WPML Multilingual & Multicurrency for WooCommerce?
How can I resolve the issue of the function returning null?