-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong default parameter with new installation #92
Comments
Thank you for the issue report! Will look into this tonight as I'm currently unable to test anything. |
Can I assume that you used valid data for the form? If so, not great. |
No worries, I'll do a deep dive and resolve it tonight. I'm already insanely happy with the thorough issue report you've given. Thanks again for that. |
After disabling this piece of code (line 54-56) (I assumed that it should not matter, if it's bool value only, and I have it fixed to "false"), I get another issue at checkout, just as I'm about to enter into "Shipping" (so even before going to choose the payment method). EDIT: That's probably as far as I can get, hope it was/is helpful. Let me know if you'd have some hotfix I can test - my eshop is not online yet, so I'm not in a hurry, but I really would love to start it with BTCPay-enabled sometime this quarter :-) |
I've tried to recreate the issue, but I have not yet been able to. I've tested the flow using the latest Steps taken
Questions
I'll keep digging as well. I can add some "hacks" (like casting the value to a Background informationThe flow when installing and going to configure is that we store a sane default during installation (in this case, false). The form then calls the
That said, the fact it gives an It's all very weird and confusing. It clearly doesn't work for you, but I've tried three times and I cannot reproduce it.
|
If you will be re-using the same database, you might have to remove configuration there as well (or make sure to remove the module before you re-install everything). Otherwise the broken configuration value will still be there. As a quick fix you can also try the ZIP in this MR, which casts the value we get from the configuration for Thank you for providing the versions. I'll try again and test it against your exact versions (module and presta do look up-to-date). |
Quickly tested on fresh install, without any other config, new DB all clean - and I'm still having issues. Once I got error that server is not responding, but other times it's just this... EDIT: Lol, so after just trying to save the same config like 10 times, it eventually got saved :-D... Might be my BTCpay bisheving? EDIT2: After the same issue of the big JSON error, I simply refreshed the screen and went through with order. Although I'm quite sure it's well set and enabled: (Sorry for Czech, I can reupload with EN translation later or tomorrow) |
Is there anything in your PrestaShop/BTCPayServer logs that might explain what went wrong? For PrestaShop logs you can go to:
Maybe. I just can't think of what could go wrong like that. Having said that, this would be a separate issue from this issue, which is nice for me (but still sucks for you). |
Reading the error, that does look like nothing has been received by the plugin. the first argument in
That would be because the plugin could not reach your BTCPay Server. The option is only available if it can reach the server and your node is fully synced (to prevent payment issues). |
Hey, I've tested your latest MR 6.0.3, and it seems to work now. |
Will do! I am working on improving the configuration screen as well speak. I'll also update the README.md and/or the documentation on the BTCPay Server website. Thank you for your report and feedback! |
Describe the bug
When I installed the BTCpay module, out of the box, I was having issue, where the code apparently tried to submit array into bool argument when creating the Configuration object.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Configuration tab shows normally.
Screenshots
Your BTCPay Environment (please complete the following information):
Logs (if applicable)
See image
Setup Parameters
Default
Additional context
It can be fixed by replacing a line in constants:
public const CONFIGURATION_SHARE_METADATA = 'BTCPAY_SHARE_METADATA';
with:
public const CONFIGURATION_SHARE_METADATA = false;
The text was updated successfully, but these errors were encountered: