I have installed Magento 2.2.1 and set up my custom theme but checkout page looks broken and consoles showing errors:

enter image description here

Not sure how to resolve this issue. Need help how can this be resolved.

How can i trace it?

  • If you already done static content deploy then please check by enabling display error in app/bootstrap.php and rename pub/errors/local.xml.sample to local.xml and then clear cache and reload page. When you open page source of checkout page you may see error appears there. It seems some script has been broken while page load.
    – Kumar M
    Dec 22, 2017 at 7:03
  • Yes already did
    – jack
    Dec 23, 2017 at 5:23
  • Were you able to resolve this issue? If yes, could you please share? I am facing the exact same problem. Mar 25, 2018 at 15:46
  • @SanjayKumar Yes , to resolve this issue upgraded php to 7.1X, soap extension and did run upgrade, and cache flush command. that resolved my issue.
    – jack
    Mar 26, 2018 at 5:09
  • @jack Can you try to take a look into exception.log, support_report.log or nginx/php-fpm error log? There should be something there before we digging in deeper. Feb 17, 2020 at 2:07

1 Answer 1


Run this command from command line interface.

php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento indexer:reindex
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
  • Did run all the commands but still showing broken checkout page. What could be the issue? i did remove my custom Js but still showing some errors.
    – jack
    Dec 23, 2017 at 5:23
  • can you tell me have you run command for locale you are using? Dec 23, 2017 at 10:49
  • I have multi store so i run command for each store.
    – jack
    Dec 25, 2017 at 6:47
  • I don't think this is an answer based on what the author asks. It should just a comment before making a final answer and be more specified to what author asking. Feb 17, 2020 at 2:05

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.