Skip to content
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

Incorrect destination #1

Open
karolinakr opened this issue Jan 19, 2018 · 37 comments
Open

Incorrect destination #1

karolinakr opened this issue Jan 19, 2018 · 37 comments

Comments

@karolinakr
Copy link

Hi,
I just tested Raiblocks Payment plugin on my website and couldn't proceed with the payment.
Error: Incorrect destination: expected (my Raiblocks Address)

Do you have any suggestions on how I can fix it? Should I try to reinstall the plugin?

Thanks,

@bluepnume
Copy link
Contributor

Hi! Is it still enabled on your site? Can I try it out? Also, any chance you could share the address to help me debug?

@karolinakr
Copy link
Author

Of course,
www.innerlightyoga.ie

Thank you

@bluepnume
Copy link
Contributor

bluepnume commented Jan 19, 2018

Hmm, strange. I can't even get the BrainBlocks button to display on your site. Do you have an idea of what WooCommerce version you have, and I can try to install it on my dev server and reproduce the problem? Thanks so much

@charlesLF
Copy link

@bluepnume : I took the liberty to edit the code a bit and replaced file_get_contents with wp_remote_get and added a check on the returned status code from the API.

I think this may solve @karolinakr 's problem.

The updated code is here: https://github.com/charlesLF/woocommerce-brainblocks/blob/master/woocommerce-gateway-brainblocks/woocommerce-gateway-brainblocks.php

@karolinakr
Copy link
Author

I just updated WooCommerce and reinstalled the plugin. The error is still there.
Maybe I messed up the installation. First I downloaded the woocommerce-gateway-brainblocks.zip then I installed it and activated. Next I went on configuring the plugin. Is there anything else I suppose to do?
Thanks

@bluepnume
Copy link
Contributor

(just to let you know -- I haven't forgotten about this one. I have some updates I need to do to the core brainblocks platform, then I'll spend some time looking into this plugin. In the mean time it would be really helpful to know your exact wordpress and woocommerce version, and the name of your woocommerce theme)

@karolinakr
Copy link
Author

karolinakr commented Jan 29, 2018 via email

@thecopperhat
Copy link

Sorry I posted basically this question on the wrong project. I've had a successful payment go through and then someone ran a test payment as far as I can tell and the order status on the back side says Incorrect Destination

@BeardlessDuck
Copy link

BeardlessDuck commented Feb 12, 2018

I'm getting this same error on my website:

http://mnms.io

WordPress 4.9.4

WooCommerce Version 3.3.1

Theme: ShopIsle

I have also tried versions of PHP 5.4 through 7.1

I also don't have an SSL certificate, do I need one to make this work?

@tjoryk
Copy link

tjoryk commented Feb 13, 2018

Same error here.

I tried it on two separate sites. Both have the same error.

Let me know if I can help! I could even let you take a look at the installation if you'd like.

@bluepnume
Copy link
Contributor

bluepnume commented Feb 13, 2018

For anyone getting this issue -- would you be able to try out the forked version @charlesLF posted, at https://raw.githubusercontent.com/charlesLF/woocommerce-brainblocks/master/woocommerce-gateway-brainblocks/woocommerce-gateway-brainblocks.php and let me know if it solves the problem? So far I've been unable to repro the problem, so not sure if this fork fixes it.

That file should be uploaded to wordpress/wp-content/plugins/woocommerce-gateway-brainblocks/woocommerce-gateway-brainblocks.php on your server -- if anyone can confirm it solves the issue, I'll merge it back into this repo and publish a new version for everyone to use.

@iinde
Copy link

iinde commented Feb 13, 2018

Doesn't work for me. Now all I get is 'Incorrect response code from API (404)'

@bluepnume
Copy link
Contributor

Damn... @iinde -- can you confirm your wordpress and woocommerce version?

@BeardlessDuck
Copy link

BeardlessDuck commented Feb 13, 2018

I am getting the same "Incorrect response code from API (404)". Thank you so much for your work in the Nano community. I sincerely appreciate your help trying to fix this too! I'd like to add that I'm using GoDaddy and I've even tried switching hosting plans and migrating over to a new server on their end.

@iinde
Copy link

iinde commented Feb 13, 2018

@bluepnume WP version 4.9.4 and WC 3.3.1

Noticed this also: https://imgur.com/a/ufXrC

@iinde
Copy link

iinde commented Feb 13, 2018

Was hoping to have this implemented this morning on a clients site.

@bluepnume
Copy link
Contributor

Thanks for the versions. I think I managed to get something close to the issue to occur.

Questions:

  1. When you saw this issue, did you see the brainblocks button as it appears at https://brainblocks.io, or a different button?

  2. Does the following script fix the problem for you? https://raw.githubusercontent.com/brainblocks/woocommerce-brainblocks/master/woocommerce-gateway-brainblocks/woocommerce-gateway-brainblocks.php

Again, thanks for your patience testing this out!

@BeardlessDuck
Copy link

Thanks for all the help! My button has never displayed properly. I'll try the fix ASAP and get back to you.

@iinde
Copy link

iinde commented Feb 13, 2018

The button didn't display correctly prior, but using your new script it does seem to work. Formatting is a little off but that's likely my template.

@iinde
Copy link

iinde commented Feb 13, 2018

Hmm oddly however, when clicking on the pay button, it seems to open the box, close it and repeat a few times.

@bluepnume
Copy link
Contributor

Yeah, I'm seeing the same issue. Looking into it as we speak

@bluepnume
Copy link
Contributor

OK, should hopefully be working again now. Looking into the root cause. Please let me know if you continue to see any problems.

@iinde
Copy link

iinde commented Feb 13, 2018

I'll do some testing now chap and report back.

@BeardlessDuck
Copy link

BeardlessDuck commented Feb 13, 2018

You fixed it!!! The new version you posted works perfectly for me. Thank you so much. I will send you a donation when I make my first sale.

Edit: It was working and then suddenly stopped. I'll stop messing with it for now and try again later.

@bluepnume
Copy link
Contributor

bluepnume commented Feb 13, 2018

Sorry guys, still seeing some more problems with the rai node on my server. Working on getting it ship shape as we speak.

@BeardlessDuck
Copy link

No problem, it's amazing that this even exists.

@iinde
Copy link

iinde commented Feb 13, 2018

Let us know when you've got another update mate. @bluepnume

@bluepnume
Copy link
Contributor

OK, should be good to go once more. Got the server in a stable state again. Please let me know if you see any further issues and we can debug.

@BeardlessDuck
Copy link

THANKS! It works and looks great!

@karolinakr
Copy link
Author

Okay, little help needed. Do I uninstall the plugin and then install it again, or do you I need to get into the editor and paste the file that's here: https://raw.githubusercontent.com/charlesLF/woocommerce-brainblocks/master/woocommerce-gateway-brainblocks/woocommerce-gateway-brainblocks.php

I would greatly appreciate your suggestions as I don't have experience with coding.

@BeardlessDuck
Copy link

BeardlessDuck commented Feb 13, 2018

@karolinakr

All you need to do is replace that .php file with the new one but the one you linked is not the newest version.

https://raw.githubusercontent.com/brainblocks/woocommerce-brainblocks/master/woocommerce-gateway-brainblocks/woocommerce-gateway-brainblocks.php

"That file should be uploaded to wordpress/wp-content/plugins/woocommerce-gateway-brainblocks/woocommerce-gateway-brainblocks.php on your server"

It should also be fine to do it the way you described, by opening up that php file in the Wordpress editor and replacing the text with the new file's text.

@tjoryk
Copy link

tjoryk commented Feb 14, 2018

@bluepnume

The newest code you posted fixed the issue for me!

@bluepnume
Copy link
Contributor

@karolinakr -- I've also updated https://brainblocks.io/static/woocommerce-gateway-brainblocks.zip so hopefully, you should be able to just re-install this over the original plugin, by uploading it on the wordpress plugin page. Please let me know if that doesn't work.

@karolinakr
Copy link
Author

karolinakr commented Feb 15, 2018 via email

@bluepnume
Copy link
Contributor

@karolinakr -- I've tried on your site again and narrowed down some more potential issues. Seems like every woocommerce install is slightly different :) Anyway, could you try installing the latest code from https://brainblocks.io/static/woocommerce-gateway-brainblocks.zip please?

@thecopperhat
Copy link

@bluepnume
I've installed the newest plugin from the above link you posted and just had someone attempt a payment and received the following error:

Incorrect response code from API:https://brainblocks.io/api/session//verify (404)

The customer mentioned from his view it looked like there is an extra slash in the api endpoint ( I'm not sure what that means or if it helps but him mentioning that seemed to be more knowledgeable than I.)

I'm running the plugin on my site www.thecopperhat.ca

Cheers
Brad

@bluepnume
Copy link
Contributor

bluepnume commented Mar 11, 2018

FYI, I've uploaded a new version of this plugin, which includes an option (enabled by default) to do a full-page redirect rather than showing the brainblocks button inline. Would appreciate if you can try this instead if you're still seeing problems, as it should resolve some compatibility issues.

https://brainblocks.io/static/woocommerce-gateway-brainblocks.zip

screen shot 2018-03-11 at 2 46 09 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants