Critical error when editing a product
-
Hello, we keep getting critical errors while editing products in woocommerce admin. The critical error shows in the admin when selecting the side tab in Product Data, and selecting any of thee below:
Advanced Production Options, Swatches,, WooThumbs, and Get more options.The error is actually generated on load of the admin page, you just only see the error in the UI when you select one of those options.
After this, we receive the email notification of an error that was experienced. The error is always within the integration of your plugin, working with the PolyLangTranslator. And you can also see these errors within the error log.
An error of type E_ERROR was caused in line 44 of the file /sitePath/wp-content/plugins/additional-product-fields-for-woocommerce/Integration/Translations/PolylangTranslator.php. Error message: Uncaught Error: Call to undefined function rednaowooextraproduct\Integration\Translations\icl_get_default_language() in /sitePath/wp-content/plugins/additional-product-fields-for-woocommerce/Integration/Translations/PolylangTranslator.php:44
Stack trace:
#0 /sitePath/wp-content/plugins/additional-product-fields-for-woocommerce/panel/ProductBuilderPanel.php(131): rednaowooextraproduct\Integration\Translations\PolylangTranslator->GetDefaultLanguage()
#1 /sitePath/wp-content/plugins/additional-product-fields-for-woocommerce/core/Loader.php(529): rednaowooextraproduct\panel\ProductBuilderPanel->Execute()
#2 /sitePath/wp-includes/class-wp-hook.php(324): rednaowooextraproduct\core\Loader->AddProductPanel()
#3 /sitePath/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#4 /sitePath/wp-includes/plugin.php(517): WP_Hook->do_action()
#5 /sitePath/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-panel.php(54): do_action()
#6 /sitePath/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php(33): include('...')
#7 /sitePath/wp-admin/includes/template.php(1456): WC_Meta_Box_Product_Data::output()
#8 /sitePath/wp-admin/edit-form-advanced.php(723): do_meta_boxes()
#9 /sitePath/wp-admin/post.php(206): require('...')
#10 {main}
thrownI could replicate this on V 1.2.129 and 1.2.130. I did not test others. We are currently running on latest WP v6.6. All plugins are kept up to date each week. We have the latest Polylang plugin installed, v3.6.3
It looks like there is an error within your integration of polylang.
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.