-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Braintree doesn't work on Magento CE 2.1.0 when using table prefixing (HTTP/1.1 400 Bad Request) #5902
Comments
Related to #5714 |
@asemenenko can you have the team check into this one? |
WAR for now is to get rid of table prefixing, to do this in an existing store:
I used a simple bash script to rename all SQL tables.
|
Hi @flecxie, please, attach debug and exception log. |
Sorry, no longer have this environment but should be easy to replicate this issue locally. Debug.log showed a successful Braintree transaction & the transaction did show up on the Braintree dashboard. Nothing in exception.log, but using Xdebug I could see an exception being triggered... |
Didn't enable Vault |
Just to add a note (since I just fixed it after 3 full days), renaming the tables and removing the table prefix also solved the 400 error for PayFlow Pro. |
Thanks @flecxie , |
Hello SQLSTATE[42S02]: Base table or view not found: 1146 Table 'datbasename.mgxa_catalogrule_product_cl' doesn't exist, query was: INSERT INTO Any ideas on how to fix my db? |
Hi @redline10000 , check this thread about the process on how to rename the tables. |
Hi @gabriel-sf Thank you, the article makes sense but how do I figure out which table is looking for mgxa_catalogrule_product_cl? |
Upon digging deeper into my database it appears that the triggers are still referencing the wrong table names. They all still have mgxa_ in them. But my tables no longer have mgxa_ |
@redline10000 to be honest, I removed the prefix of all the tables and then followed those instructions. Sorry I dont have more info. Have you cleared your cache and index? |
Hi @gabriel-sf I have cleared the cache and indexes. I removed the triggers and everything seems fine now. Yet I am still getting the 400 error when making a braintree payment. |
I would suggest using xdebug to see what errors you are getting and try to debug it from there. There might be a table or something missing. |
Hi @redline10000, |
@romeof1980 thank you for the suggestion but I ended up just making a new db. My install was a new install and was not really worth all of the effort to fix. Fresh install w/o table prefixes fixed everything. |
Sounds very good. Personally, when editing dtb and ending with errors, I'd not just delete the cache but I'd also delete and redeploy static content ---- On Fri, 19 Aug 2016 23:00:51 +0200 notifications@github.com wrote ---- @romeof1980 thank you for the suggestion but I ended up just making a new db. My install was a new install and was not really worth all of the effort to fix. Fresh install w/o table prefixes fixed everything. — |
Fixed issues: - MAGETWO-56344: [Github] #5902 Braintree doesn't work when using table prefixing - MAGETWO-55953: Exception occurs when tracking shipment with invalid FedEx tracking number - MAGETWO-56801: [GITHUB] Fixed column description for "website_id" column #4388 - MAGETWO-56745: [Github] PayPal Express Checkout "Display on Shopping Cart -> NO" does not work - MAGETWO-56467: Free shipping threshold fields are mixed up in UPS and Fedex configurations - MAGETWO-56342: [Github] #5910 Braintree sandbox errors when using alternative Merchant Account ID - MAGETWO-56115: [Github] #5857 Impossible to configure custom availability gateway validator - MAGETWO-54134: CE module depends on EE code - MAGETWO-56447: UPS not providing shipping rates for Puerto Rico
Any ETA on a fix? |
This fix already merged to develop branch ce1160f and will be available in some of 2.1.x releases. |
Hi @flecxie! Closing the issue, please feel free to reopen if the issue still reproducible for you. |
Is the fix available in 2.1.1? |
This fix will be available in Magento 2.1.3 version. |
hi Or Give me some hint how can i solve this issue in mangeto2 Because it's argent |
It worked for me with M2.1 after I reinstalled without prefixing on the database. It was a pain to reinstall and migrate everything around – took about 4 full days that I neither had in my schedule or budget. There are no good tools for migrating M2 data. The whole situation stinks. But, I look at things for the good - I got more practice installing M2.1. And I got it fixed. If I could do this project over again I'd think long and hard about using Magento. They've lost almost all of my trust. |
You don't need to reinstall in order to remove table-prefixing.. Just google around and you'll find a lot of answers. It's a matter of running a SINGLE command and editing a line in env.php ---- On Fri, 23 Sep 2016 20:58:31 +0200 notifications@github.com wrote ---- It worked for me with 2.1 after I reinstalled without prefixing on the database. It was a pain to reinstall and migrate everything around – took about 4 full days that I neither had in my schedule or budget. There are no good tools for migrating M2 data. The whole situation stinks. But, I look at things for the good - I got more practice installing M2.1. The reinstall had lots of problems. — |
My managed Magento hosting firm (a big one that knows M2.1) did not like romeof1980's solution. They thought it safest to reinstall. I would have liked to do what romeof1980 says. |
Hi @davidaddison, |
…abled to address magento/magento2#5902, add logging to VaultHandler, version 1.0.8
…abled to address magento/magento2#5902, add logging to VaultHandler, version 1.0.8 (#3)
The Magento CE 2.1.0 Braintree module seems to be broken when using table prefixing during installation. When setting up 2 stores (1 without table prefixing and 1 with table prefixing) then payments from the site with table prefixing fail.
Steps to reproduce
Expected result
Actual result
See screenshot below for error:
The text was updated successfully, but these errors were encountered: