1

I am running Magento 2.1.1 in apache2.4.
I always see some random errors in the shopping cart.
The cart cannot calculate the grand total(nothing show) and cannot go to checkout page after clicking the checkout button. This error happens randomly (around 40%) in responsive mobile version.

enter image description here Error 1



This is another error triggered.

enter image description here enter image description here

6
  • Why you run this old version? Update asap to last version.
    – LucScu
    Commented Jul 20, 2017 at 6:51
  • Do you mean 2.1.7? I tried before. But no idea why it slowed down my system.
    – user631607
    Commented Jul 20, 2017 at 8:23
  • I updated to 2.1.7. Same errors happen in mobile view. Seems that the JS crashed in mobile view only.
    – user631607
    Commented Jul 20, 2017 at 8:46
  • have you original luma or custom theme?
    – LucScu
    Commented Jul 20, 2017 at 17:59
  • I am using custom theme
    – user631607
    Commented Jul 21, 2017 at 3:06

1 Answer 1

0

I found the reason why js crashed in mobile only. Because I added a live chat javascript at the footer and this javascript does not support mobile.

I added a screen width checking to remove the plugin in mobile view and fixed it.

<script>
if (screen && screen.width > 480) {
  document.write('<script type="text/javascript" src="foo.js"><\/script>');
}
</script>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.