I am getting this error when someone tries to checkout from the shopping cart?

Parse error: syntax error, unexpected '[' in /home/baskzcom/public_html/app/code/core/Mage/Checkout/Model/Type/Onepage.php on line 732

  • Hi there, you can check answers & give feedback Dec 3, 2018 at 14:43

1 Answer 1


It seems your php version doesn't support [] notation for arrays (php version lower than 5.4), you should use array() instead to fix the error

A better idea could be upgrading php to 5.* (5.4 at least), as once you have fixed the concrete reported error some others could appear if you don't upgrade

More info here https://stackoverflow.com/a/29505827/1073040

Your Answer

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

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