WP Woocommerce API Error fixing
Budget: €30 – €250 EUR
Hello,
api on a woocommerce project works until 10 days ago. Without any changes they stop to works.
This the CRON error
Task "files/wp-api/cron.php" completed with error in 7 seconds, output:
<pre>
Fatal error: Uncaught Automattic\WooCommerce\HttpClient\HttpClientException: JSON ERROR: Syntax error in /var/www/vhosts/xxxxxx.it/files/wp-api/vendor/automattic/woocommerce/src/WooCommerce/HttpClient/HttpClient.php:378
Stack trace:
#0 /var/www/vhosts/xxxxxx.it/files/wp-api/vendor/automattic/woocommerce/src/WooCommerce/HttpClient/HttpClient.php(422): Automattic\WooCommerce\HttpClient\HttpClient->processResponse()
#1 /var/www/vhosts/xxxxx.it/files/wp-api/vendor/automattic/woocommerce/s...
405 PUT /wp-json/wc/v3/products/74735?consumer_key=xxxxxxx
Wp keys are right, https is ok, json destination is correct, the php show error is off. I've do everythings to find the problem but now I think I need to go deep in the JSON parsing job.,
api on a woocommerce project works until 10 days ago. Without any changes they stop to works.
This the CRON error
Task "files/wp-api/cron.php" completed with error in 7 seconds, output:
<pre>
Fatal error: Uncaught Automattic\WooCommerce\HttpClient\HttpClientException: JSON ERROR: Syntax error in /var/www/vhosts/xxxxxx.it/files/wp-api/vendor/automattic/woocommerce/src/WooCommerce/HttpClient/HttpClient.php:378
Stack trace:
#0 /var/www/vhosts/xxxxxx.it/files/wp-api/vendor/automattic/woocommerce/src/WooCommerce/HttpClient/HttpClient.php(422): Automattic\WooCommerce\HttpClient\HttpClient->processResponse()
#1 /var/www/vhosts/xxxxx.it/files/wp-api/vendor/automattic/woocommerce/s...
405 PUT /wp-json/wc/v3/products/74735?consumer_key=xxxxxxx
Wp keys are right, https is ok, json destination is correct, the php show error is off. I've do everythings to find the problem but now I think I need to go deep in the JSON parsing job.,