Consumer secret key invalid.
-
Migrated site today from https:// to https://.
Domain changed from a .com to a .co.uk – nothing else changed.
Generated new API keys and pasted into my woocommerce class that I use for connection, using the call :
$this->wc_api = new Client( $store_url, $consumer_key, $consumer_secret );
But now I get a fatal error that the secret key is invalid:
Fatal error: Uncaught exception ‘Automattic\WooCommerce\HttpClient\HttpClientException’ with message ‘Error: Consumer Secret is invalid [woocommerce_api_authentication_error]’ in /home/fs000002/stocksuite/Automattic/WooCommerce/HttpClient/HttpClient.php:318 Stack trace: #0 /home/fs000002/stocksuite/Automattic/WooCommerce/HttpClient/HttpClient.php(348): Automattic\WooCommerce\HttpClient\HttpClient->lookForErrors(Array) #1 /home/fs000002/stocksuite/Automattic/WooCommerce/HttpClient/HttpClient.php(384): Automattic\WooCommerce\HttpClient\HttpClient->processResponse() #2 /home/fs000002/stocksuite/Automattic/WooCommerce/Client.php(82): Automattic\WooCommerce\HttpClient\HttpClient->request(‘products’, ‘GET’, Array, Array) #3 /home/fs000002/stocksuite/mainstock/includes/new_class_woo_api.php(66): Automattic\WooCommerce\Client->get(‘products’, Array) #4 /home/fs000002/stocksuite/mainstock/includes/new_class_woo_api.php(225): woo_api->API_Call(‘get’, ‘products’, NULL, Array) #5 /home/fs000002/stocksuite/mainstock/bin/stocks_prices/ in /home/fs000002/stocksuite/Automattic/WooCommerce/HttpClient/HttpClient.php on line 318
Any thoughts as to why this is occurring?
Dennis
- The topic ‘Consumer secret key invalid.’ is closed to new replies.