• Resolved surver

    (@surver)


    Getting the following 500 error when trying to sync data via the rest API:

    [13-Aug-2024 15:01:07 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_applied_coupons() on null in /home/sacredconnection/webapps/scared-connection/wp-content/plugins/yaypricing/includes/helper/class-yaydp-helper.php:433
    Stack trace: 0 /home/sacredconnection/webapps/scared-connection/wp-content/plugins/yaypricing/includes/helper/class-yaydp-helper.php(473): YAYDP\Helper\YAYDP_Helper::get_applied_coupons() 1 /home/sacredconnection/webapps/scared-connection/wp-content/plugins/yaypricing/includes/abstracts/abstract-yaydp-product-pricing-rule.php(97): YAYDP\Helper\YAYDP_Helper::check_applied_coupons_in_cart() 2 /home/sacredconnection/webapps/scared-connection/wp-content/plugins/yaypricing/includes/core/sale-display/class-yaydp-product-sale.php(147): YAYDP\Abstracts\YAYDP_Product_Pricing_Rule->can_apply_adjustment() 3 /home/sacredconnection/webapps/scared-connection/wp-content/plugins/yaypricing/includes/core/sale-display/class-yaydp-product-sale.php(309): YAYDP\Core\Sale_Display\YAYDP_Product_Sale->get_relative_min_max_percent_per_product() 4 /home/sacredconnection/webapps/scared-connection/wp-content/plugins/yaypricing/includes/core/sale-display/class-yaydp-product-sale.php(289): YAYDP\Core\Sale_Display\YAYDP_Product_Sale->get_relative_min_max_discounted_price_per_product() 5 /home/sacredconnection/webapps/scared-connection/wp-content/plugins/yaypricing/includes/core/sale-display/class-yaydp-product-sale.php(264): YAYDP\Core\Sale_Display\YAYDP_Product_Sale->get_relative_min_max_discounted_price() 6 /home/sacredconnection/webapps/scared-connection/wp-content/plugins/yaypricing/includes/core/sale-display/class-yaydp-discounted-price.php(46): YAYDP\Core\Sale_Display\YAYDP_Product_Sale->get_min_max_discounted_price() 7 /home/sacredconnection/webapps/scared-connection/wp-includes/class-wp-hook.php(324): YAYDP\Core\Sale_Display\YAYDP_Discounted_Price->change_product_price_html() 8 /home/sacredconnection/webapps/scared-connection/wp-includes/plugin.php(205): WP_Hook->apply_filters() 9 /home/sacredconnection/webapps/scared-connection/wp-content/plugins/woocommerce/includes/class-wc-product-variable.php(186): apply_filters() 10 /home/sacredconnection/webapps/scared-connection/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php(611): WC_Product_Variable->get_price_html() 11 /home/sacredconnection/webapps/scared-connection/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php(522): WC_REST_Products_V2_Controller->api_get_price_html() 12 /home/sacredconnection/webapps/scared-connection/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php(862): WC_REST_CRUD_Controller->fetch_fields_using_getters() 13 /home/sacredconnection/webapps/scared-connection/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php(165): WC_REST_Products_V2_Controller->get_product_data() 14 /home/sacredconnection/webapps/scared-connection/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php(391): WC_REST_Products_V2_Controller->prepare_object_for_response()

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.