Fatal error on getting customer license keys
-
There is a fatal error on trying to retrieve customer license keys from the orders with non-existing products.
File plugins/license-manager-for-woocommerce/includes/Integrations/WooCommerce/Controller.php
Method getCustomerLicenseKeys
Potential fix: check if product exists before using its method get_meta.
/** @var WC_Product_Simple|WC_Product_Variation $product */
$product = $item_data->get_product();
// Check if the product has been activated for selling.
if (!$product || !$product->get_meta( 'lmfwc_licensed_product', true)) {
continue;
}Please fix it or tell me how to avoid the error.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.