Quote from leandroprz on March 23, 2023, 08:54
I just tried to set a fixed price for a new product and the page won't load, it stays blank.
Then I set WP_DEBUG, WP_DEBUG_LOG and WP_DEBUG_DISPLAY to true and this is the error I got:
Notice: La función is_internal_meta_key ha sido llamada de forma incorrecta. Los métodos meta add/update/get no deberían usarse para los metadatos internos, incluido «_sale_price». Utiliza getters y setters. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/plugins/woocommerce/templates/single-product.php'), wc_get_template_part, load_template, require('/plugins/woocommerce/templates/content-single-product.php'), do_action('woocommerce_single_product_summary'), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_template_single_add_to_cart, do_action('woocommerce_variable_add_to_cart'), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_variable_add_to_cart, WC_Product_Variable->get_available_variations, WC_Product_Variation->variation_is_visible, WC_Product->get_price, WC_Data->get_prop, apply_filters('woocommerce_product_variation_get_price'), WP_Hook->apply_filters, WOOCS->raw_woocommerce_price, apply_filters('woocs_fixed_raw_woocomm in www/**********/wp-includes/functions.php on line 5835
This is how my product price looks like: https://i.ibb.co/0tjPCcp/fixed-woocs-error.png
I tried removing the sale price but the error still shows up. It only disappears when removing the fixed price.
I'm not sure when this started happening, but I remember a few versions ago it was working just fine.
I'm using WordPress v6.1.1, WooCommerce v7.5.1 and FOX v2.4.0.
I just tried to set a fixed price for a new product and the page won't load, it stays blank.
Then I set WP_DEBUG, WP_DEBUG_LOG and WP_DEBUG_DISPLAY to true and this is the error I got:
Notice: La función is_internal_meta_key ha sido llamada de forma incorrecta. Los métodos meta add/update/get no deberían usarse para los metadatos internos, incluido «_sale_price». Utiliza getters y setters. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/plugins/woocommerce/templates/single-product.php'), wc_get_template_part, load_template, require('/plugins/woocommerce/templates/content-single-product.php'), do_action('woocommerce_single_product_summary'), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_template_single_add_to_cart, do_action('woocommerce_variable_add_to_cart'), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_variable_add_to_cart, WC_Product_Variable->get_available_variations, WC_Product_Variation->variation_is_visible, WC_Product->get_price, WC_Data->get_prop, apply_filters('woocommerce_product_variation_get_price'), WP_Hook->apply_filters, WOOCS->raw_woocommerce_price, apply_filters('woocs_fixed_raw_woocomm in www/**********/wp-includes/functions.php on line 5835
This is how my product price looks like: https://i.ibb.co/0tjPCcp/fixed-woocs-error.png
I tried removing the sale price but the error still shows up. It only disappears when removing the fixed price.
I'm not sure when this started happening, but I remember a few versions ago it was working just fine.
I'm using WordPress v6.1.1, WooCommerce v7.5.1 and FOX v2.4.0.