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 3 replies, has 2 voices.

Last updated by Carlos Rojas 3 months, 3 weeks ago.

Assigned support staff: Carlos Rojas.

Author Posts
June 25, 2019 at 7:36 am #4081807

general-estudisL

Hi there,

I have this: CRITICAL Uncaught Error : Call to a member function get_stock_quantity() on boolean in /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php:318.

Thanks

June 25, 2019 at 1:26 pm #4084911

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hello,
Thank you for contacting WPML support.

I would like to ask you to follow this steps in order to isolate the cause of the issue:
- Back up your site first before making any change, this is for security reasons.
- Update all outdated plugins and themes.
- Flush any cache memory that might exists.
- Deactivate all the plugins that are not related to WPML.
- Switch for a moment to a WordPress default theme like Twenty Seventeen.
- If the issue is gone, activate one by one to see with which one there is an interaction issue.

Could you tell me the result of this steps?

Kind regards,
Carlos

June 25, 2019 at 1:33 pm #4084957

general-estudisL

This is the issue::::

2019-06-25T07:05:18+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_quantity() on boolean in /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php:318
Stack trace:
#0 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-variations-data.php(176): WCML_Synchronize_Product_Data->sync_product_stock(false, Object(WC_Product_Variation))
#1 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-variations-data.php(49): WCML_Synchronize_Variations_Data->sync_product_variations(1937, '6853', 'ca')
#2 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(286): WCML_Synchronize_Variations_Data->sync_product_variations_action(1937)
#3 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#4 /wordpress/core/5.2.2/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#5 /wordpress/plugins/woocommerce/3.6.4/includes/class-wc-ajax.php(2079): do_action('woocommerce_aja...', 1937)
#6 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(286): WC_AJAX::save_variations('')
#7 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#8 /wordpress/core/5.2.2/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#9 /wordpress/core/5.2.2/wp-admin/admin-ajax.php(173): do_action('wp_ajax_woocomm...')
#10 {main}
thrown en /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php en la línea 318

2019-06-25T07:05:43+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_quantity() on boolean in /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php:318
Stack trace:
#0 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-variations-data.php(176): WCML_Synchronize_Product_Data->sync_product_stock(false, Object(WC_Product_Variation))
#1 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php(168): WCML_Synchronize_Variations_Data->sync_product_variations(1937, '6853', 'ca')
#2 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php(132): WCML_Synchronize_Product_Data->sync_product_data(1937, '6853', 'ca')
#3 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(288): WCML_Synchronize_Product_Data->synchronize_products(1937, Object(WP_Post))
#4 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#5 /wordpress/core/5.2.2/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#6 /wordpress/core/5.2.2/wp-includes/post.php(3951): do_action('save_post', 1937, Object(WP_Post), true)
#7 /wordpress/core/5.2.2/wp-includes/post.php(4028): wp_insert_post(Array, false)
#8 /wordpress/core/5.2.2/wp-admin/includes/post.php(405): wp_update_post(Array)
#9 /wordpress/core/5.2.2/wp-admin/post.php(218): edit_post()
#10 {main}
thrown en /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php en la línea 318

2019-06-25T07:05:54+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_quantity() on boolean in /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php:318
Stack trace:
#0 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-variations-data.php(176): WCML_Synchronize_Product_Data->sync_product_stock(false, Object(WC_Product_Variation))
#1 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php(168): WCML_Synchronize_Variations_Data->sync_product_variations(1937, '6853', 'ca')
#2 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php(132): WCML_Synchronize_Product_Data->sync_product_data(1937, '6853', 'ca')
#3 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(288): WCML_Synchronize_Product_Data->synchronize_products(1937, Object(WP_Post))
#4 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#5 /wordpress/core/5.2.2/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#6 /wordpress/core/5.2.2/wp-includes/post.php(3951): do_action('save_post', 1937, Object(WP_Post), true)
#7 /wordpress/core/5.2.2/wp-includes/post.php(4028): wp_insert_post(Array, false)
#8 /wordpress/core/5.2.2/wp-admin/includes/post.php(405): wp_update_post(Array)
#9 /wordpress/core/5.2.2/wp-admin/post.php(218): edit_post()
#10 {main}
thrown en /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php en la línea 318

2019-06-25T07:06:26+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_quantity() on boolean in /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php:318
Stack trace:
#0 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-variations-data.php(176): WCML_Synchronize_Product_Data->sync_product_stock(false, Object(WC_Product_Variation))
#1 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php(168): WCML_Synchronize_Variations_Data->sync_product_variations(1937, '6853', 'ca')
#2 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php(132): WCML_Synchronize_Product_Data->sync_product_data(1937, '6853', 'ca')
#3 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(288): WCML_Synchronize_Product_Data->synchronize_products(1937, Object(WP_Post))
#4 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#5 /wordpress/core/5.2.2/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#6 /wordpress/core/5.2.2/wp-includes/post.php(3951): do_action('save_post', 1937, Object(WP_Post), true)
#7 /wordpress/core/5.2.2/wp-includes/post.php(4028): wp_insert_post(Array, false)
#8 /wordpress/core/5.2.2/wp-admin/includes/post.php(405): wp_update_post(Array)
#9 /wordpress/core/5.2.2/wp-admin/post.php(218): edit_post()
#10 {main}
thrown en /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php en la línea 318

2019-06-25T07:06:38+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_quantity() on boolean in /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php:318
Stack trace:
#0 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-variations-data.php(176): WCML_Synchronize_Product_Data->sync_product_stock(false, Object(WC_Product_Variation))
#1 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php(168): WCML_Synchronize_Variations_Data->sync_product_variations(1937, '6853', 'ca')
#2 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php(132): WCML_Synchronize_Product_Data->sync_product_data(1937, '6853', 'ca')
#3 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(288): WCML_Synchronize_Product_Data->synchronize_products(1937, Object(WP_Post))
#4 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#5 /wordpress/core/5.2.2/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#6 /wordpress/core/5.2.2/wp-includes/post.php(3951): do_action('save_post', 1937, Object(WP_Post), true)
#7 /wordpress/core/5.2.2/wp-includes/post.php(4028): wp_insert_post(Array, false)
#8 /wordpress/core/5.2.2/wp-admin/includes/post.php(405): wp_update_post(Array)
#9 /wordpress/core/5.2.2/wp-admin/post.php(218): edit_post()
#10 {main}
thrown en /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php en la línea 318

2019-06-25T07:07:08+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_quantity() on boolean in /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php:318
Stack trace:
#0 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-variations-data.php(176): WCML_Synchronize_Product_Data->sync_product_stock(false, Object(WC_Product_Variation))
#1 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php(168): WCML_Synchronize_Variations_Data->sync_product_variations(1937, '6853', 'ca')
#2 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php(132): WCML_Synchronize_Product_Data->sync_product_data(1937, '6853', 'ca')
#3 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(288): WCML_Synchronize_Product_Data->synchronize_products(1937, Object(WP_Post))
#4 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#5 /wordpress/core/5.2.2/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#6 /wordpress/core/5.2.2/wp-includes/post.php(3951): do_action('save_post', 1937, Object(WP_Post), true)
#7 /wordpress/core/5.2.2/wp-includes/post.php(4028): wp_insert_post(Array, false)
#8 /wordpress/core/5.2.2/wp-admin/includes/post.php(405): wp_update_post(Array)
#9 /wordpress/core/5.2.2/wp-admin/post.php(218): edit_post()
#10 {main}
thrown en /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php en la línea 318

2019-06-25T07:19:16+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_quantity() on boolean in /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php:318
Stack trace:
#0 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-variations-data.php(176): WCML_Synchronize_Product_Data->sync_product_stock(false, Object(WC_Product_Variation))
#1 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-variations-data.php(49): WCML_Synchronize_Variations_Data->sync_product_variations(1937, '6853', 'ca')
#2 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(286): WCML_Synchronize_Variations_Data->sync_product_variations_action(1937)
#3 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#4 /wordpress/core/5.2.2/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#5 /wordpress/plugins/woocommerce/3.6.4/includes/class-wc-ajax.php(2079): do_action('woocommerce_aja...', 1937)
#6 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(286): WC_AJAX::save_variations('')
#7 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#8 /wordpress/core/5.2.2/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#9 /wordpress/core/5.2.2/wp-admin/admin-ajax.php(173): do_action('wp_ajax_woocomm...')
#10 {main}
thrown en /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php en la línea 318

2019-06-25T07:44:15+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_quantity() on boolean in /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php:318
Stack trace:
#0 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-variations-data.php(176): WCML_Synchronize_Product_Data->sync_product_stock(false, Object(WC_Product_Variation))
#1 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-editor-ui-product-job.php(723): WCML_Synchronize_Variations_Data->sync_product_variations(1937, 6853, 'ca', Array, true)
#2 /srv/htdocs/wp-content/plugins/wpml-translation-management/classes/menu/translation-editor/class-wpml-editor-ui-job.php(89): WCML_Editor_UI_Product_Job->save_translations(Array)
#3 /srv/htdocs/wp-content/plugins/wpml-translation-management/inc/ajax.php(46): WPML_Editor_UI_Job->save(Array)
#4 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(286): wpml_save_job_ajax('')
#5 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#6 /wordpress/core/5.2.2/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#7 /wordpress/core/5.2.2/wp-admin/admin-ajax.php(173): do_action('wp_ajax_wpml_sa...')
#8 {main}
thrown en /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php en la línea 318

2019-06-25T07:52:44+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_quantity() on boolean in /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php:318
Stack trace:
#0 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-variations-data.php(176): WCML_Synchronize_Product_Data->sync_product_stock(false, Object(WC_Product_Variation))
#1 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php(168): WCML_Synchronize_Variations_Data->sync_product_variations(1937, '6853', 'ca')
#2 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php(132): WCML_Synchronize_Product_Data->sync_product_data(1937, '6853', 'ca')
#3 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(288): WCML_Synchronize_Product_Data->synchronize_products(1937, Object(WP_Post))
#4 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#5 /wordpress/core/5.2.2/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#6 /wordpress/core/5.2.2/wp-includes/post.php(3951): do_action('save_post', 1937, Object(WP_Post), true)
#7 /wordpress/core/5.2.2/wp-includes/post.php(4028): wp_insert_post(Array, false)
#8 /wordpress/core/5.2.2/wp-admin/includes/post.php(405): wp_update_post(Array)
#9 /wordpress/core/5.2.2/wp-admin/post.php(218): edit_post()
#10 {main}
thrown en /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php en la línea 318

2019-06-25T07:53:54+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_quantity() on boolean in /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php:318
Stack trace:
#0 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-variations-data.php(176): WCML_Synchronize_Product_Data->sync_product_stock(false, Object(WC_Product_Variation))
#1 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php(168): WCML_Synchronize_Variations_Data->sync_product_variations(1937, '6853', 'ca')
#2 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php(132): WCML_Synchronize_Product_Data->sync_product_data(1937, '6853', 'ca')
#3 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(288): WCML_Synchronize_Product_Data->synchronize_products(1937, Object(WP_Post))
#4 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#5 /wordpress/core/5.2.2/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#6 /wordpress/core/5.2.2/wp-includes/post.php(3951): do_action('save_post', 1937, Object(WP_Post), true)
#7 /wordpress/core/5.2.2/wp-includes/post.php(4028): wp_insert_post(Array, false)
#8 /wordpress/core/5.2.2/wp-admin/includes/post.php(405): wp_update_post(Array)
#9 /wordpress/core/5.2.2/wp-admin/post.php(218): edit_post()
#10 {main}
thrown en /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php en la línea 318

2019-06-25T08:01:15+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_quantity() on boolean in /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php:318
Stack trace:
#0 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-variations-data.php(176): WCML_Synchronize_Product_Data->sync_product_stock(false, Object(WC_Product_Variation))
#1 /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-editor-ui-product-job.php(723): WCML_Synchronize_Variations_Data->sync_product_variations(1937, 6853, 'ca', Array, true)
#2 /srv/htdocs/wp-content/plugins/wpml-translation-management/classes/menu/translation-editor/class-wpml-editor-ui-job.php(89): WCML_Editor_UI_Product_Job->save_translations(Array)
#3 /srv/htdocs/wp-content/plugins/wpml-translation-management/inc/ajax.php(46): WPML_Editor_UI_Job->save(Array)
#4 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(286): wpml_save_job_ajax('')
#5 /wordpress/core/5.2.2/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#6 /wordpress/core/5.2.2/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#7 /wordpress/core/5.2.2/wp-admin/admin-ajax.php(173): do_action('wp_ajax_wpml_sa...')
#8 {main}
thrown en /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php en la línea 318

Best regards

June 25, 2019 at 1:35 pm #4084969

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi,

Please follow the steps described in my previous message and let me know the results.

Regards,
Carlos