Skip to content

Braintree Payment's error only with Litespeed & not Apache #3473

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

Closed
rudik99 opened this issue Feb 19, 2016 · 4 comments
Closed

Braintree Payment's error only with Litespeed & not Apache #3473

rudik99 opened this issue Feb 19, 2016 · 4 comments

Comments

@rudik99
Copy link

rudik99 commented Feb 19, 2016

Hi,

Firstly, I understand that M2 is officially compatible with only apache and nginx.

I use Litespeed which is a drop in replacement for Apache. I have never had compatibility issues in the past with Magento1.

With Magento 2, everything seems to work perfectly except for the Braintree Payment module.

The symptom: On Checkout the payment method is not shown.
How i replicated: Setup apache server, built site.
Went to migrate to production which is litespeed (yeah i know should use the same for dev and production.)
Copied the exact database and files.

The error: in the chrome console:

Uncaught TypeError: Cannot read property 'addErrorMessage' of undefined
/pub/static/frontend/Magento/luma/en_US/Magento_Braintree/js/view/payment/method-renderer/cc-form.js:159

In Safari:
error

This actually looks like its trying to give me an error message but it can't.

Any help would be appreciated!

@rudik99
Copy link
Author

rudik99 commented Feb 19, 2016

After some further testing, this might be a PHP version issue. Not a web server issue.
Seems to appear when using PHP 7.02 and not php 5.6.*
Also potentially a related issue with #2878 ?

@rudik99
Copy link
Author

rudik99 commented Feb 19, 2016

Can replicate on php 5.6 as well for the original issue

@rudik99
Copy link
Author

rudik99 commented Feb 20, 2016

I am no longer having this issue, i am going to close this

@chiragayartops
Copy link

Hi,
I use braintree payment method(Credit card) in my store.
It is working in some time but some time it is not working. gives error like 'Unable to place order. Please try again later'.
Please give me solution for this.
Thanks.

pdohogne-magento pushed a commit that referenced this issue Nov 28, 2018
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

2 participants