Open peterb776 opened 4 years ago
any solution for the above issue? I am facing same issue
I've had no comments or suggestions, so I've made no progress. As my client needs something 'today' I've had to resort to using the WooCommerce CSV importer just to have something that works even if not very well.
I'm not happy to try and debug the API code, but might try it again sometime if there is a newer version.
I am trying to get the API working on my local development (laptop) server using Laragon 4 (PHP 7.2), setting up the installation without using composer as on the target system I only have limited CPanel access.
The host system is running WordPress 5.2.5 and WooCommerce 3.5.7, with the REST API enabled.
Using the following PHP code (copied from the API documentation, plus a suggested mod to deal with Laragon's self-signed certificates) as the stand-alone index.php on another domain:
All I get as output is the following, with success(?) on creating the API connection but then a critical error:
Is there something else that I should be loading? If not, how can I debug this (I'm not a PHP expert)?
Thanks, Peter