Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • I apologise for so many messages, especially since it seems in the end it’s all unrelated to the plugin.

    I think I found the root cause and it’s WooCommerce filtering out some data on the backend now (some info on the change and related issues: https://ww.wp.xz.cn/support/topic/wc-cart-is-null-in-custom-rest-api/ ), in my case, custom WooCommerce functions present in the template (related to session cookie being set – I’m not entirely sure why those were called at all for a backend ajax request, but they were) were not ready for WC()->session to be null when ran in the backend/ajax context.

    So for me the issue is resolved by one simple nullcheck in the theme custom functions.

    Cheers.

    @kokomoweb I can confirm that in my situation the cause of the issue is the theme (it’s a no longer maintained theme from Envato/ThemeForest). Prior to that I checked the plugins leaving only WooCommerce and this plugin activated and the issue persisted.

    I understand that this means the error is not caused by the plugin itself in this situation, but would you have any ideas or suggestions for debugging the issue in my template files?

    Thank you and cheers.

    Hi, I’m not the original poster, but I’m also struggling with this issue. Here are some answers to your questions, the remaining ones (1-2) I’ll need time to test.

    3. Seems to be unrelated, I tested on Windows and OSX as well as Chrome and Edge.
    4. It looks like it’s happening only for products that actually have some customers. On never-bought products it correctly displays zero customers. So the issue seems to be related to how the response from the API is processed, as it throws a 500 server error (see point 6).
    5. I am self-hosted on a shared hosting.
    6. Yes I do:

    Failed to load resource: the server responded with a status of 500 (Internal Server Error) /wp-json/wpcl/v2/order-items/:1

    Hope this helps, I will test the template and plugins later today and get back to you.

Viewing 3 replies - 1 through 3 (of 3 total)