ERROR No such product
-
Reporting this error although I think I found the source and work-around…
Using WordPress 5.9.3, WooCommerce 6.5.1 with WooCommerce Payments 4.2.1
After exporting products from one domain and importing to another domain (live->test) using the export/import buttons on the “All Products” admin page, I get this error in the woocommerce-payments log when attempting a new purchase/subscription:
ERROR No such product: 'prod_LlyBPjME9cxIJI' (resource_missing) INFO There was a problem creating the WCPay subscription. Error: No such product: 'prod_LlyBPjME9cxIJI'
Apparently this product id (prod_LlyBPjME9cxIJI) is related to / used by Stripe and was created on my live site (still in test mode), imported to my test site, but does not exist in Stripe under the test domain context.
Word-around:
The error / problem seems to be resolved by deleting from postmeta any record(s) with meta_value = ‘prod_LlyBPjME9cxIJI’ (specifically) OR meta_key = wcpay_product_id_test (or wcpay_product_id_live as the case may be).
My concerns are that if I continually repeat this process of exporting/importing, (1) am I creating a flood of orphaned wcpay product ids in Stripe, and (2) that I can’t export/import through WP admin without manual phpmyadmin intervention to clean-up after the import.
The page I need help with: [log in to see the link]
- The topic ‘ERROR No such product’ is closed to new replies.