• Resolved proller

    (@proller)


    Hi. I have no issue with plugin’s functionality but REST API and woocommerce mobile app can’t get orders when plugin is enabled. Rest API leaves no trace. But when woocommerce mobile app tries to get orders, it gives me these errors on php log:

    Got error 'PHP message: PHP Fatal error: Uncaught Error: Cannot instantiate interface ADP\\BaseVersion\\Includes\\Cart\\Structures\\Coupon in /var/www/vhosts/*mydomain.com*/httpdocs/wp-includes/functions.php:624\nStack trace:\n#0 /var/www/vhosts/*mydomain.com*/httpdocs/wp-includes/functions.php(624): unserialize()\n#1 /var/www/vhosts/*mydomain.com*/httpdocs/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php(560): maybe_unserialize()\n#2 /var/www/vhosts/*mydomain.com*/httpdocs/wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-item-type-data-store.php(144): WC_Data->read_meta_data()\n#3 /var/www/vhosts/*mydomain.com*/httpdocs/wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-item-coupon-data-store.php(34): Abstract_WC_Order_Item_Type_Data_Store->read()\n#4 /var/www/vhosts/*mydomain.com*/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Order_Item_Coupon_Data_Store->read()\n#5 /var/www/vhosts/*mydomain.com*/httpdocs/wp-content/plugins/woocommerce/i...', referer: https://*mydomain.com*/?rest_route=%2Fwc%2Fv3%2Forders&_method=get&status=any&_fields=id%2Cparent_id%2Cnumber%2Cstatus%2Ccurrency%2Ccustomer_id%2Ccustomer_note%2Cdate_created_gmt%2Cdate_modified_gmt%2Cdate_paid_gmt%2Cdiscount_total%2Cdiscount_tax%2Cshipping_total%2Cshipping_tax%2Ctotal%2Ctotal_tax%2Cpayment_method_title%2Cline_items%2Cshipping%2Cbilling%2Ccoupon_lines%2Cshipping_lines%2Crefunds&per_page=25&page=1&_for=jetpack&token=*token*&timestamp=1604765549&nonce=JFPHlmoOyK&body-hash&signature=FcoGUsTKHcChrfrc1fKR%2FJ0Or8Q%3D

    Got error 'PHP message: PHP Fatal error: Uncaught Error: Cannot instantiate interface ADP\\BaseVersion\\Includes\\Cart\\Structures\\Coupon in /var/www/vhosts/*mydomain.com*/httpdocs/wp-includes/functions.php:624\nStack trace:\n#0 /var/www/vhosts/*mydomain.com*/httpdocs/wp-includes/functions.php(624): unserialize()\n#1 /var/www/vhosts/*mydomain.com*/httpdocs/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php(560): maybe_unserialize()\n#2 /var/www/vhosts/*mydomain.com*/httpdocs/wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-item-type-data-store.php(144): WC_Data->read_meta_data()\n#3 /var/www/vhosts/*mydomain.com*/httpdocs/wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-item-coupon-data-store.php(34): Abstract_WC_Order_Item_Type_Data_Store->read()\n#4 /var/www/vhosts/*mydomain.com*/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Order_Item_Coupon_Data_Store->read()\n#5 /var/www/vhosts/*mydomain.com*/httpdocs/wp-content/plugins/woocommerce/i...', referer: https://*mydomain.com*/?rest_route=%2Fwc%2Fv3%2Forders&_method=get&_fields=id%2Cparent_id%2Cnumber%2Cstatus%2Ccurrency%2Ccustomer_id%2Ccustomer_note%2Cdate_created_gmt%2Cdate_modified_gmt%2Cdate_paid_gmt%2Cdiscount_total%2Cdiscount_tax%2Cshipping_total%2Cshipping_tax%2Ctotal%2Ctotal_tax%2Cpayment_method_title%2Cline_items%2Cshipping%2Cbilling%2Ccoupon_lines%2Cshipping_lines%2Crefunds&per_page=25&before=2020-11-07T21%3A00%3A00Z&status=any&page=1&_for=jetpack&token=*token*&timestamp=1604765556&nonce=ACpXkWV5Ux&body-hash&signature=JxlxcKdnDwU2ak5GkLEH8Bqo3ts%3D

    Disabling ADP is eliminating this issue.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Rest API cant get orders’ is closed to new replies.