When WPML is active the error appears. No way to solve if WPML is active.
[03-Feb-2021 10:36:01 UTC] PHP Fatal error: Uncaught TypeError: Argument 2 passed to WCML\Rest\Wrapper\Products\Prices::__construct() must be of the type array, null given, called in /home/customer/www/xxx.com/public_html/wp-content/plugins/woocommerce-multilingual/classes/Rest/Wrapper/Factory.php on line 38 and defined in /home/customer/www/xxx.com/public_html/wp-content/plugins/woocommerce-multilingual/classes/Rest/Wrapper/Products/Prices.php:16
-
This reply was modified 5 years, 4 months ago by entrebits.
Same problem. This is the error:
Failed to load resource: the server responded with a status of 500 ()
wpApiMiddleware.js:97 Error: https://xxxx.com/wp-json/wc/v3/products?per_page=50
500
(anonymous) @ wpApiMiddleware.js:97
I have deactivated YOAST and the problem persist.
Hello, I´ve the same issue. It works fine when WordFence is disable. I´ve the Pro version.
How can I fix it?