btcpayserver / woocommerce-plugin

Plugin for connecting Woocommerce with BTCPayServer
https://btcpayserver.org/
Other
51 stars 41 forks source link

Woo Commerce cant disable BTC Pay payment method under Payment Methods #44

Open electronoxic opened 4 years ago

electronoxic commented 4 years ago

BTC Pay Woo Commerce Plugin Logs after trying to disable payment method and clicking save under WooCommerce > Settings > Payments

03-29-2020 @ 16:55:09 - BTCPay Woocommerce payment plugin object constructor called. Plugin is v3.0.10 and server is PHP v7.3 . API DETAILS REDACTED . API DETAILS REDACTED . API DETAILS REDACTED 03-29-2020 @ 16:55:09 - [Info] Entered class level btcpay_decrypt... 03-29-2020 @ 16:55:09 - [Warning] In btcpay_decrypt: data appears to have already been decrypted. Strict base64 check failed. 03-29-2020 @ 16:55:09 - [Info] Leaving class level btcpay_decrypt... 03-29-2020 @ 16:55:09 - [Info] Private Key decrypted successfully. 03-29-2020 @ 16:55:09 - [Info] Entered class level btcpay_decrypt... 03-29-2020 @ 16:55:09 - [Warning] In btcpay_decrypt: data appears to have already been decrypted. Strict base64 check failed. 03-29-2020 @ 16:55:09 - [Info] Leaving class level btcpay_decrypt... 03-29-2020 @ 16:55:09 - [Info] Public Key decrypted successfully. 03-29-2020 @ 16:55:09 - [Info] Entered class level btcpay_decrypt... 03-29-2020 @ 16:55:09 - [Warning] In btcpay_decrypt: data appears to have already been decrypted. Strict base64 check failed. 03-29-2020 @ 16:55:09 - [Info] Leaving class level btcpay_decrypt... 03-29-2020 @ 16:55:09 - [Info] API Token decrypted successfully. 03-29-2020 @ 16:55:09 - [Info] Transaction speed is now set to: default 03-29-2020 @ 16:55:09 - [Info] Plugin is valid for use. 03-29-2020 @ 16:55:09 - [Info] The plugin is ok to use.

Does this 3 times.

I then went to test and recreate this issue with an exact copy of the wordpress site in staging environment. the issue could not be recreated. The only difference between staging and version live version is that the Jetpack plugin is in safe mode. So to me it seems like an issue with Jetpack and woocommere BTC Pay plugin.

oparex commented 4 years ago

I am experiencing the same problem in my woocommerce store. This plugin version is 3.0.10 and your PHP version is 7.0

electronoxic commented 4 years ago

I am experiencing the same problem in my woocommerce store. This plugin version is 3.0.10 and your PHP version is 7.0

do you use Jetpack?

oparex commented 4 years ago

no I do not. tbh this is my friend's store. I am just setting up btcpay. what logs can I provide?

electronoxic commented 4 years ago

I am not sure. I have been trying to find out the same  thing. I don?t know what logs to provide either. it seems for me that when I put jetpack in safe mode i the issue no longer persisted. , but this was on a copy of the production site.What plugins are enabled and installed in the store? maybe we can cross reference the plugins we have that are the same, and try  pinpoint the one with the issue.On Sat, Apr 11, 2020 at 6:55 AM Peter Opara notifications@github.com wrote: no I do not. tbh this is my friend's store. I am just setting up btcpay. what logs can I provide?

?You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

oparex commented 4 years ago

Is there a way to check WP version without any fancy plugins? I suspected that open orders were the problem because the plugin was still handling some unpaid orders. I deleted them but I was still not able to turn off the plugin, so that was not the problem.

oparex commented 4 years ago

I see a "WooCommerce database update required" message under woocommerce section. I will also try to update this and see if it helps solve the problem.

pavlenex commented 4 years ago

Replicated, this is a bug. As a work-around you can just disable a plugin entirely.