Critical Error with REST after activating the plugin
-
Hi,
First of all, the plugin is awesome! I found this error with REST API call to get the product list via /wp-json/wc/v2/products
Here’s the log. The problem disappears once I deactivate the plugin. Please kindly advise.
Appreciate your help.
[26-Jun-2020 14:14:15 UTC] PHP Notice: register_rest_route was called incorrectly. Namespace must not start or end with a slash. Please see Debugging in WordPress for more information. (This message was added in version 5.4.2.) in /var/www/blog/wp-includes/functions.php on line 5167
[26-Jun-2020 14:14:15 UTC] PHP Fatal error: Uncaught Error: Call to undefined function ADP\BaseVersion\Includes\External\WC\wc_get_cart_item_data_hash() in /var/www/blog/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/External/WC/WcCartItemFacade.php:687
Stack trace:
#0 /var/www/blog/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/Product/Processor.php(206): ADP\BaseVersion\Includes\External\WC\WcCartItemFacade::createFromProduct(Object(ADP\BaseVersion\Includes\Context), Object(WC_Product_Simple), Array)
#1 /var/www/blog/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/Product/Processor.php(109): ADP\BaseVersion\Includes\Product\Processor->calculate(Object(WC_Product_Simple), 1)
#2 /var/www/blog/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/External/PriceDisplay.php(191): ADP\BaseVersion\Includes\Product\Processor->calculateProduct(Object(WC_Product_Simple), 1)
#3 /var/www/blog/wp-includes/class-wp-hook.php(287): ADP\Base in /var/www/blog/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/External/WC/WcCartItemFacade.php on line 687
- The topic ‘Critical Error with REST after activating the plugin’ is closed to new replies.