• Resolved marv2

    (@marv2)


    Hi, I am getting this error in my logs:

    2021-05-31T17:47:53+00:00 CRITICAL Uncaught Exception: Invalid order. in /var/www/site/htdocs/wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php:104
    Stack trace:
    #0 /var/www/site/htdocs/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): Abstract_WC_Order_Data_Store_CPT->read()
    #1 /var/www/site/htdocs/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(114): WC_Data_Store->read()
    #2 /var/www/site/htdocs/wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/classes/pixels/class-pixel-manager-base.php(142): WC_Abstract_Order->__construct()
    #3 /var/www/site/htdocs/wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/classes/pixels/class-pixel-manager-base.php(107): WGACT\Classes\Pixels\Pixel_Manager_Base->get_order_from_order_received_page()
    #4 /var/www/site/htdocs/wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/classes/pixels/class-pixel-manager-base.php(40) in /var/www/site/htdocs/wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php on line 104
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author alekv

    (@alekv)

    Could you send me the debug information from the support page to [email protected] ?

    One side case where this might be happening is if no orders have been placed in the shop yet. Is it a new shop?

    Thread Starter marv2

    (@marv2)

    Hi, plenty of orders in the shop.

    We recently installed ElasticPress. Could that be messing with the query?

    Plugin Author alekv

    (@alekv)

    Did the error started to happen recently?
    Is it just one error, or has it happened multiple times, or even on every order?

    We recently installed ElasticPress. Could that be messing with the query?

    I don’t know of an incompatibility yet with ElasticPress.

    Has the error only happened after installing ElasticPress?
    If the error is being thrown consistently, does it go away when disabling ElasticPress?

    Plugin Author alekv

    (@alekv)

    I found a similar issue on the ElasticPress bug tracker: https://github.com/10up/ElasticPress/issues/2223

    So the error you see is likely to be caused by ElasticPress.

    Could you test this and let me know the result?

    Plugin Author alekv

    (@alekv)

    Hi @marv2

    Did you disable ElasticPress and did it start to work then properly?

    Our plugin uses a function on the purchase confirmation page to retrieve the current order from WP query.

    On shops that are not using ElasticPress that works just fine.

    I only can assume that ElasticPress is hooking into WP query, changes the default behaviour and thus breaks the function we’re using.

    I’m not sure if there is a workaround or fallback for this from our end. In my opinion the ElasticPress plugin shouldn’t change that default WP query behaviour. But maybe there’s no other way for them to get ElasticPress working.

    Plugin Author alekv

    (@alekv)

    I’m closing the thread due to inactivity.

    Feel free to add a new reply if you have more information.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘CRITICAL Uncaught Exception’ is closed to new replies.