somewherewarm / woocommerce-subscribe-all-the-things

Experimental mini-extension for WooCommerce Subscriptions that explored the possibility of adding subscription plans to non-subscription product types. Now available on WooCommerce.com as "All Products For WooCommerce Subscriptions".
https://woocommerce.com/products/all-products-for-woocommerce-subscriptions/?aff=46147&cid=5699243
151 stars 50 forks source link

Throwing error log on product? #415

Closed arcinnovate closed 5 years ago

arcinnovate commented 5 years ago

We are getting this error in our logs "Incorrect subscription scheme". Any ideas?

2019-01-30T04:41:25+00:00 NOTICE Incorrect subscription scheme applied to cart item 3fcf7a3221c6a1f154a9b5310bd8a5ba (GLX3 - Extra Strength Omega 3 - 1 Count). Scheme to apply: "'0'". Applied scheme: "false".

2019-01-30T14:53:09+00:00 NOTICE Incorrect subscription scheme applied to cart item d8aa8cc8a82d05d4a57655c72c87431e (GLX3 - Extra Strength Omega 3 - 1 Count). Scheme to apply: "'0'". Applied scheme: "false".

manospsyx commented 5 years ago

Hey @arcinnovate

Thanks for reporting this! Have you been able to replicate this one? When does this happen?

arcinnovate commented 5 years ago

Hey @franticpsyx - it happens on our site when the plugin is enabled only. Super strange - have you ever seen this "Incorrect subscription scheme"? It happens in the error logs even when the product is a single purchase

manospsyx commented 5 years ago

@arcinnovate Looking at the code I can't find a branch of execution that could yield this outcome -- this would be certainly possible if you have extended SATT with custom code, or overridden its templates. See https://cl.ly/8dbca9717599 -- if the posted scheme key is 0, then it gets converted to false internally.

arcinnovate commented 5 years ago

Thank you @franticpsyx - going to be asking my devs about it!

Cenay commented 5 years ago

We have a similar situation, with zero customizations. We are using it "out of the box" so to speak. My logs are showing hundreds of these entries (I am posting a couple below). It is still happening on every single day of the month (except where no purchases happened (only two days this month).

Sample from the logs: 2019-03-14T23:25:26+00:00 NOTICE Incorrect subscription scheme applied to cart item cdca4c9690b229779d1e58e631e3b52e (Garlic Herb Chicken, Asparagus, Roasted Redskin Potatoes). Scheme to apply: "'0'". Applied scheme: "false". 2019-03-14T23:25:26+00:00 NOTICE Incorrect subscription scheme applied to cart item 54b55e60155bd7083e801e72e4439ccd (Scrambled Egg Whites with Spinach, Mushrooms & Mozzarella and Roasted Redskin Potatoes). Scheme to apply: "'0'". Applied scheme: "false".

I am happy to let you or your dev inside the back office, just reach out @franticpsyx

manospsyx commented 5 years ago

Hey @Cenay

Wondering if you could reach out to WooCommerce Subscriptions support and reference this conversation there?

I'll be happy to take a closer look at this and figure out if there's an issue in SATT that needs to be patched.

Thanks!

arcinnovate commented 5 years ago

Hi @franticpsyx - any idea where their actual support is? This is the only forum I could find

manospsyx commented 5 years ago

@arcinnovate If you have a valid WooCommerce.com subscription, then you can open a ticket from your account Dashboard @ WooCommerce.com 🙂

Otherwise, please reach out to support [at] somewherewarm.gr and I'll do my best to help.