• Resolved igsayonara

    (@igsayonara)


    Fatal error: Uncaught Automattic\WooCommerce\HttpClient\HttpClientException: JSON ERROR: Syntax error in /opt/bitnami/apps/wordpress/htdocs/back/vendor/automattic/woocommerce/src/WooCommerce/HttpClient/HttpClient.php:378 Stack trace: #0 /opt/bitnami/apps/wordpress/htdocs/back/vendor/automattic/woocommerce/src/WooCommerce/HttpClient/HttpClient.php(422): Automattic\WooCommerce\HttpClient\HttpClient->processResponse() #1 /opt/bitnami/apps/wordpress/htdocs/back/vendor/automattic/woocommerce/src/WooCommerce/Client.php(56): Automattic\WooCommerce\HttpClient\HttpClient->request() #2 /opt/bitnami/apps/wordpress/htdocs/back/back.php(59): Automattic\WooCommerce\Client->post() #3 {main} thrown in /opt/bitnami/apps/wordpress/htdocs/back/vendor/automattic/woocommerce/src/WooCommerce/HttpClient/HttpClient.php on line 378

    I got this error after I moved the site, I changed the links in the request to the actual ones

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi there ??

    Normally this happens when your site has PHP errors, and to fix this, you just have to disable PHP display_errors.

    Nevertheless, I’d recommend checking your site debug log and fixing these issues before using REST API.

    I hope that makes sense. ??

    Thread Starter igsayonara

    (@igsayonara)

    There is no errors at the site

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    I suspect it’s the same issue as described in this bug:

    https://github.com/woocommerce/wc-api-php/issues/266

    If it does indeed sound familiar, please go ahead and add your own comment to the thread if you can. This will give the developers a good idea of the size and impacts of the issue.

    Thank you!

    laceyrod

    (@laceyrod)

    Automattic Happiness Engineer

    Hi @igsayonara

    Since we haven’t heard back from you, and this thread has been inactive for a bit, I’m going to mark it as Resolved now for the overall health of the forums. Please feel free to open a new one if you have any further questions.

    Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘rest api erorr after wp migration’ is closed to new replies.